From 7739e2e8c37d412bc44faff493512f816c347ed2 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Wed, 23 Sep 2020 22:36:31 -0400 Subject: [PATCH] refactor!: move actions up to project root BREAKING CHANGE action path has been changed to remove `packages/` --- .github/README.md | 22 ++++++------- .github/workflows/awscli.yml | 17 +++------- .github/workflows/cloudfront_invalidate.yml | 6 ++-- .github/workflows/iam_access_credentials.yaml | 10 ++---- .github/workflows/release.yml | 33 +++++++++++++++++++ .github/workflows/s3_sync.yml | 15 +++------ {packages/awscli => awscli}/CHANGELOG.md | 0 {packages/awscli => awscli}/README.md | 8 ++--- {packages/awscli => awscli}/action.yml | 0 awscli/dist/index.js | 1 + {packages/awscli => awscli}/index.ts | 0 {packages/awscli => awscli}/package.json | 0 .../CHANGELOG.md | 0 .../README.md | 6 ++-- .../action.yml | 0 cloudfront_invalidate/dist/index.js | 1 + .../index.ts | 0 .../package.json | 0 .../CHANGELOG.md | 0 .../README.md | 8 ++--- .../action.yml | 0 iam_access_credentials/dist/index.js | 1 + .../index.ts | 0 .../package.json | 0 package.json | 6 +++- packages/awscli/dist/index.js | 1 - packages/cloudfront_invalidate/dist/index.js | 1 - packages/iam_access_credentials/dist/index.js | 1 - packages/s3_sync/dist/index.js | 1 - {packages/s3_sync => s3_sync}/CHANGELOG.md | 0 {packages/s3_sync => s3_sync}/README.md | 10 +++--- {packages/s3_sync => s3_sync}/action.yml | 0 s3_sync/dist/index.js | 1 + {packages/s3_sync => s3_sync}/index.ts | 0 {packages/s3_sync => s3_sync}/package.json | 0 35 files changed, 83 insertions(+), 66 deletions(-) create mode 100644 .github/workflows/release.yml rename {packages/awscli => awscli}/CHANGELOG.md (100%) rename {packages/awscli => awscli}/README.md (90%) rename {packages/awscli => awscli}/action.yml (100%) create mode 100644 awscli/dist/index.js rename {packages/awscli => awscli}/index.ts (100%) rename {packages/awscli => awscli}/package.json (100%) rename {packages/cloudfront_invalidate => cloudfront_invalidate}/CHANGELOG.md (100%) rename {packages/cloudfront_invalidate => cloudfront_invalidate}/README.md (89%) rename {packages/cloudfront_invalidate => cloudfront_invalidate}/action.yml (100%) create mode 100644 cloudfront_invalidate/dist/index.js rename {packages/cloudfront_invalidate => cloudfront_invalidate}/index.ts (100%) rename {packages/cloudfront_invalidate => cloudfront_invalidate}/package.json (100%) rename {packages/iam_access_credentials => iam_access_credentials}/CHANGELOG.md (100%) rename {packages/iam_access_credentials => iam_access_credentials}/README.md (91%) rename {packages/iam_access_credentials => iam_access_credentials}/action.yml (100%) create mode 100644 iam_access_credentials/dist/index.js rename {packages/iam_access_credentials => iam_access_credentials}/index.ts (100%) rename {packages/iam_access_credentials => iam_access_credentials}/package.json (100%) delete mode 100644 packages/awscli/dist/index.js delete mode 100644 packages/cloudfront_invalidate/dist/index.js delete mode 100644 packages/iam_access_credentials/dist/index.js delete mode 100644 packages/s3_sync/dist/index.js rename {packages/s3_sync => s3_sync}/CHANGELOG.md (100%) rename {packages/s3_sync => s3_sync}/README.md (89%) rename {packages/s3_sync => s3_sync}/action.yml (100%) create mode 100644 s3_sync/dist/index.js rename {packages/s3_sync => s3_sync}/index.ts (100%) rename {packages/s3_sync => s3_sync}/package.json (100%) diff --git a/.github/README.md b/.github/README.md index 0e10353..fb39549 100644 --- a/.github/README.md +++ b/.github/README.md @@ -13,21 +13,21 @@ Collection of GitHub actions for interacting with AWS services. -| Action | Local Action Tests | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| [`clowdhaus/aws-github-actions/packages/awscli@master`](../packages/awscli) | ![AWS Command Line Interface](https://github.com/clowdhaus/aws-github-actions/workflows/awscli/badge.svg) | -| [`clowdhaus/aws-github-actions/packages/cloudfront_invalidate@master`](../packages/cloudfront_invalidate) | ![CloudFront Invalidate](https://github.com/clowdhaus/aws-github-actions/workflows/CloudFront%20Invalidation/badge.svg) | -| [`clowdhaus/aws-github-actions/packages/iam_access_credentials@master`](../packages/iam_access_credentials) | ![IAM Access Credentials](https://github.com/clowdhaus/aws-github-actions/workflows/IAM%20Credentials/badge.svg) | -| [`clowdhaus/aws-github-actions/packages/s3_sync@master`](../packages/s3_sync) | ![S3 Sync](https://github.com/clowdhaus/aws-github-actions/workflows/S3%20Sync/badge.svg) | +| Action | Local Action Tests | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| [`clowdhaus/aws-github-actions/awscli@master`](../awscli) | ![AWS Command Line Interface](https://github.com/clowdhaus/aws-github-actions/workflows/awscli/badge.svg) | +| [`clowdhaus/aws-github-actions/cloudfront_invalidate@master`](../cloudfront_invalidate) | ![CloudFront Invalidate](https://github.com/clowdhaus/aws-github-actions/workflows/CloudFront%20Invalidation/badge.svg) | +| [`clowdhaus/aws-github-actions/iam_access_credentials@master`](../iam_access_credentials) | ![IAM Access Credentials](https://github.com/clowdhaus/aws-github-actions/workflows/IAM%20Credentials/badge.svg) | +| [`clowdhaus/aws-github-actions/s3_sync@master`](../s3_sync) | ![S3 Sync](https://github.com/clowdhaus/aws-github-actions/workflows/S3%20Sync/badge.svg) | ## Usage See individual action directory for details on usage and examples. -- [AWS Command Line Interface](../packages/awscli) - execute awscli commands -- [CloudFront Invalidate](../packages/cloudfront_invalidate) - invalidate AWS CloudFront distribution to force cache refresh -- [IAM Access Credentials](../packages/iam_access_credentials) - ensure GitHub actions workflow environment has necessary AWS IAM credentials available for subsequent AWS actions -- [S3 Sync](../packages/s3_sync) - synchronize local files to remote AWS S3 bucket +- [AWS Command Line Interface](../awscli) - execute awscli commands +- [CloudFront Invalidate](../cloudfront_invalidate) - invalidate AWS CloudFront distribution to force cache refresh +- [IAM Access Credentials](../iam_access_credentials) - ensure GitHub actions workflow environment has necessary AWS IAM credentials available for subsequent AWS actions +- [S3 Sync](../s3_sync) - synchronize local files to remote AWS S3 bucket ## Getting Started @@ -50,7 +50,7 @@ See [here](https://yarnpkg.com/en/docs/install#debian-stable) for instructions o `lerna` is used to managed the project as a monorepo - where each action is packaged and managed individually, and some packages are internal modules shared across the actions. -To install locally on your machine, it is recommended to install globally via npm or yarn: +To install locally on your machine, it is recommended to install globally via npm or yarn: ```bash $ npm install lerna --globally diff --git a/.github/workflows/awscli.yml b/.github/workflows/awscli.yml index 08871bd..1bd298b 100644 --- a/.github/workflows/awscli.yml +++ b/.github/workflows/awscli.yml @@ -5,16 +5,9 @@ on: branches: - master paths: - - 'packages/awscli/**' + - 'awscli/**' - 'packages/awscli-core/**' - 'package.json' - # pull_request: - # branches: - # - master - # paths: - # - 'packages/awscli/**' - # - 'packages/awscli-core/**' - # - 'package.json' jobs: awscli: @@ -27,13 +20,13 @@ jobs: - name: Checkout uses: actions/checkout@v1 - name: Configure AWS Credentials - uses: ./packages/iam_access_credentials + uses: ./iam_access_credentials with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: List us-east-1 DHCP option set values w/ default json output - uses: ./packages/awscli + uses: ./awscli with: cli-command: ec2 cli-subcommand: describe-dhcp-options @@ -41,7 +34,7 @@ jobs: aws-region: us-east-1 - name: Get network interface subnet ID id: net-int-subnet-id - uses: ./packages/awscli + uses: ./awscli with: cli-command: ec2 cli-subcommand: describe-network-interfaces @@ -49,7 +42,7 @@ jobs: cli-parameters: --query NetworkInterfaces[0].SubnetId aws-region: us-east-1 - name: Describe interface subnet ID - uses: ./packages/awscli + uses: ./awscli env: ACTIONS_RUNNER_DEBUG: true with: diff --git a/.github/workflows/cloudfront_invalidate.yml b/.github/workflows/cloudfront_invalidate.yml index 65bf2ee..66800dd 100644 --- a/.github/workflows/cloudfront_invalidate.yml +++ b/.github/workflows/cloudfront_invalidate.yml @@ -5,7 +5,7 @@ on: branches: - master paths: - - 'packages/cloudfront_invalidate/**' + - 'cloudfront_invalidate/**' - 'package.json' jobs: @@ -16,13 +16,13 @@ jobs: - name: Checkout uses: actions/checkout@v1 - name: Configure AWS Credentials - uses: ./packages/iam_access_credentials + uses: ./iam_access_credentials with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: CloudFront invalidation - uses: ./packages/cloudfront_invalidate + uses: ./cloudfront_invalidate with: distribution-id: EMKUWBIVAK6PF paths: | diff --git a/.github/workflows/iam_access_credentials.yaml b/.github/workflows/iam_access_credentials.yaml index 3c57825..f382903 100644 --- a/.github/workflows/iam_access_credentials.yaml +++ b/.github/workflows/iam_access_credentials.yaml @@ -5,14 +5,8 @@ on: branches: - master paths: - - 'packages/iam_access_credentials/**' + - 'iam_access_credentials/**' - 'package.json' - # pull_request: - # branches: - # - master - # paths: - # - 'packages/iam_access_credentials/**' - # - 'package.json' jobs: s3-sync: @@ -25,7 +19,7 @@ jobs: - name: Checkout uses: actions/checkout@v1 - name: Configure AWS Credentials - uses: ./packages/iam_access_credentials + uses: ./iam_access_credentials with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f147107 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: release + +on: + push: + branches: + - master + paths: + - 'awscli/**' + - 'cloudfront_invalidate/**' + - 'iam_access_credentials/**' + - 'pacakges/**' + - 's3_sync/**' + - 'package.json' + +jobs: + prTitle: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2-beta + with: + node-version: '12' + - run: yarn install + - run: yarn run build + - run: yarn run release + env: + GIT_AUTHOR_NAME: claus-cli + GIT_COMMITTER_NAME: claus-cli + GIT_AUTHOR_EMAIL: ${{ secrets.EMAIL }} + GIT_COMMITTER_EMAIL: ${{ secrets.EMAIL }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/s3_sync.yml b/.github/workflows/s3_sync.yml index 573f12a..bad24d1 100644 --- a/.github/workflows/s3_sync.yml +++ b/.github/workflows/s3_sync.yml @@ -5,16 +5,9 @@ on: branches: - master paths: - - 'packages/s3_sync/**' + - 's3_sync/**' - 'packages/awscli-core/**' - 'package.json' - # pull_request: - # branches: - # - master - # paths: - # - 'packages/s3_sync/**' - # - 'packages/awscli-core/**' - # - 'package.json' jobs: s3-sync: @@ -27,15 +20,15 @@ jobs: - name: Checkout uses: actions/checkout@v1 - name: Configure AWS Credentials - uses: ./packages/iam_access_credentials + uses: ./iam_access_credentials with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - name: Sync to S3 - uses: ./packages/s3_sync + uses: ./s3_sync with: - local-path: packages/s3_sync/dist + local-path: s3_sync/dist bucket-name: github-actions-028920223318-us-east-1 path-prefix: my/new/prefix args: --delete diff --git a/packages/awscli/CHANGELOG.md b/awscli/CHANGELOG.md similarity index 100% rename from packages/awscli/CHANGELOG.md rename to awscli/CHANGELOG.md diff --git a/packages/awscli/README.md b/awscli/README.md similarity index 90% rename from packages/awscli/README.md rename to awscli/README.md index 07d5651..b5741fe 100644 --- a/packages/awscli/README.md +++ b/awscli/README.md @@ -16,7 +16,7 @@ Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws ## Usage ```yml -- uses: clowdhaus/aws-github-actions/packages/awscli@v0.4 +- uses: clowdhaus/aws-github-actions/awscli@master with: # Command passed to awscli, which is infact the service that is the target of # your invocation @@ -47,7 +47,7 @@ Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws ### Execute describe style command with standard json result output ```yml -- uses: clowdhaus/aws-github-actions/packages/awscli@v0.4 +- uses: clowdhaus/aws-github-actions/awscli@master with: cli-command: ec2 cli-subcommand: describe-dhcp-options @@ -57,7 +57,7 @@ Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws ### Execute describe style command with query and text output ```yml -- uses: clowdhaus/aws-github-actions/packages/awscli@v0.4 +- uses: clowdhaus/aws-github-actions/awscli@master with: cli-command: ec2 cli-subcommand: describe-network-interfaces @@ -69,7 +69,7 @@ Reference - https://docs.aws.amazon.com/cli/latest/reference/index.html#cli-aws ### Execute describe style command using output from a prior describe command of ID `net-int-subnet-id` ```yml -- uses: clowdhaus/aws-github-actions/packages/awscli@v0.4 +- uses: clowdhaus/aws-github-actions/awscli@master env: ACTIONS_RUNNER_DEBUG: true with: diff --git a/packages/awscli/action.yml b/awscli/action.yml similarity index 100% rename from packages/awscli/action.yml rename to awscli/action.yml diff --git a/awscli/dist/index.js b/awscli/dist/index.js new file mode 100644 index 0000000..8b236bf --- /dev/null +++ b/awscli/dist/index.js @@ -0,0 +1 @@ +module.exports=(()=>{var e={190:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));const s=r(861);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},316:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(190);const o=r(685);const a=r(861);const c=i(r(87));const u=i(r(622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;o.issueCommand("ENV",n)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},685:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(747));const s=n(r(87));const o=r(861);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${o.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},110:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(515));function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=s.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new s.ToolRunner(i,t,r);return o.exec()})}t.exec=exec},515:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(87));const o=i(r(614));const a=i(r(129));const c=i(r(622));const u=i(r(560));const l=i(r(995));const f=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(f){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(s.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+s.EOL.length);i=n.indexOf(s.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+s.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const o=a.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));const c="";if(o.stdout){o.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const u="";if(o.stderr){o.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}o.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});o.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});o.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let s=0;s0){t.push(i);i=""}continue}append(o)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(211);const o=r(450);let a;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const d=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const h=10;const E=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){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=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const a=l.message.headers["location"];if(!a){break}let c=n.parse(a);if(s.protocol=="https:"&&s.protocol!=c.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.")}await l.readBody();if(c.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,c,i);l=await this.requestRaw(o,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let c=n&&n.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(c){if(!a){a=r(220)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(u){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=u?s.globalAgent:i.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=E*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==c.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},995:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const s=r(357);const o=r(747);const a=r(622);i=o.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){s.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const s of r){e=i+s;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},560:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const s=r(622);const o=r(669);const a=r(995);const c=o.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const o=(yield a.exists(t))?yield a.stat(t):null;if(o&&o.isFile()&&!n){return}const c=o&&o.isDirectory()?s.join(t,s.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield a.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(s.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=s.join(t,s.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(s.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(s.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+s.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const s of n){const n=`${e}/${s}`;const o=`${t}/${s}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,r,i)}else{yield copyFile(n,o,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},529:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(660));const o=r(316);const a=r(87);const c=r(129);const u=r(747);function _findMatch(t,r,i,c){return n(this,void 0,void 0,function*(){const n=a.platform();let u;let l;let f;for(const a of i){const i=a.version;o.debug(`check ${i} satisfies ${t}`);if(s.satisfies(i,t)&&(!r||a.stable===r)){f=a.files.find(t=>{o.debug(`${t.arch}===${c} && ${t.platform}===${n}`);let r=t.arch===c&&t.platform===n;if(r&&t.platform_version){const n=e.exports._getOsVersion();if(n===t.platform_version){r=true}else{r=s.satisfies(n,t.platform_version)}}return r});if(f){o.debug(`matched ${a.version}`);l=a;break}}}if(l&&f){u=Object.assign({},l);u.files=[f]}return u})}t._findMatch=_findMatch;function _getOsVersion(){const t=a.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&e[0].trim()==="DISTRIB_RELEASE"){r=e[1].trim();break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";let t="";if(u.existsSync(e)){t=u.readFileSync(e).toString()}return t}t._readLinuxVersionFile=_readLinuxVersionFile},624:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(316));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,function*(){let r=1;while(rsetTimeout(t,e*1e3))})}}t.RetryHelper=RetryHelper},303:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(316));const a=i(r(560));const c=i(r(747));const u=i(r(529));const l=i(r(87));const f=i(r(622));const d=i(r(770));const p=i(r(660));const h=i(r(413));const E=i(r(669));const v=s(r(180));const y=r(110);const w=r(357);const g=r(624);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,undefined)}}t.HTTPError=HTTPError;const m=process.platform==="win32";const R=process.platform==="darwin";const S="actions/tool-cache";function downloadTool(e,t,r){return n(this,void 0,void 0,function*(){t=t||f.join(_getTempDirectory(),v.default());yield a.mkdirP(f.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const i=3;const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new g.RetryHelper(i,s,c);return yield u.execute(()=>n(this,void 0,void 0,function*(){return yield downloadToolAttempt(e,t||"",r)}),e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true})})}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r){return n(this,void 0,void 0,function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new d.HttpClient(S,[],{allowRetries:false});let i;if(r){o.debug("set auth");i={authorization:r}}const s=yield n.get(e,i);if(s.message.statusCode!==200){const t=new HTTPError(s.message.statusCode);o.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`);throw t}const u=E.promisify(h.pipeline);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>s.message);const f=l();let p=false;try{yield u(f,c.createWriteStream(t));o.debug("download complete");p=true;return t}finally{if(!p){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}})}function extract7z(e,t,r){return n(this,void 0,void 0,function*(){w.ok(m,"extract7z() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=o.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield y.exec(`"${r}"`,i,s)}finally{process.chdir(n)}}else{const r=f.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=`& '${r}' -Source '${i}' -Target '${s}'`;const c=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",o];const u={silent:true};try{const e=yield a.which("powershell",true);yield y.exec(`"${e}"`,c,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let n="";yield y.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});o.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let s;if(r instanceof Array){s=r}else{s=[r]}if(o.isDebug()&&!r.includes("v")){s.push("-v")}let a=t;let c=e;if(m&&i){s.push("--force-local");a=t.replace(/\\/g,"/");c=e.replace(/\\/g,"/")}if(i){s.push("--warning=no-unknown-keyword")}s.push("-C",a,"-f",c);yield y.exec(`tar`,s);return t})}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,function*(){w.ok(R,"extractXar() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(o.isDebug()){n.push("-v")}const i=yield a.which("xar",true);yield y.exec(`"${i}"`,_unique(n));return t})}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(m){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield a.which("powershell",true);const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield y.exec(`"${s}"`,o)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield a.which("unzip",true);const n=[e];if(!o.isDebug()){n.unshift("-q")}yield y.exec(`"${r}"`,n,{cwd:t})})}function cacheDir(e,t,r,i){return n(this,void 0,void 0,function*(){r=p.clean(r)||r;i=i||l.arch();o.debug(`Caching tool ${t} ${r} ${i}`);o.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=f.join(e,t);yield a.cp(r,n,{recursive:true})}_completeToolPath(t,r,i);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,function*(){i=p.clean(i)||i;s=s||l.arch();o.debug(`Caching tool ${r} ${i} ${s}`);o.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,i,s);const u=f.join(n,t);o.debug(`destination file ${u}`);yield a.cp(e,u);_completeToolPath(r,i,s);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||l.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=p.clean(t)||"";const i=f.join(_getCacheDirectory(),e,t,r);o.debug(`checking cache: ${i}`);if(c.existsSync(i)&&c.existsSync(`${i}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${r}`);n=i}else{o.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||l.arch();const n=f.join(_getCacheDirectory(),e);if(c.existsSync(n)){const e=c.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=f.join(n,i,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,function*(){let n=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const a=new d.HttpClient("tool-cache");const c={};if(r){o.debug("set auth");c.authorization=r}const u=yield a.getJson(s,c);if(!u.result){return n}let l="";for(const e of u.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}c["accept"]="application/vnd.github.VERSION.raw";let f=yield(yield a.get(l,c)).readBody();if(f){f=f.replace(/^\uFEFF/,"");try{n=JSON.parse(f)}catch(e){o.debug("Invalid json")}}return n})}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=l.arch()){return n(this,void 0,void 0,function*(){const n=yield u._findMatch(e,t,r,i);return n})}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=f.join(_getTempDirectory(),v.default())}yield a.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");o.debug(`destination ${n}`);const i=`${n}.complete`;yield a.rmRF(n);yield a.rmRF(i);yield a.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");const i=`${n}.complete`;c.writeFileSync(i,"");o.debug("finished caching tool")}function _isExplicitVersion(e){const t=p.clean(e)||"";o.debug(`isExplicit: ${t}`);const r=p.valid(t)!=null;o.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";o.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(p.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const s=p.satisfies(i,t);if(s){r=i;break}}if(r){o.debug(`matched: ${r}`)}else{o.debug("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";w.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";w.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},660:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";o[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";o[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";o[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var p=0;pn){return null}var r=t.loose?o[c.LOOSE]:o[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[c.LOOSE]:o[c.FULL]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===E){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var E={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=E}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===E||e===E){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[c.COMPARATORTRIM],d);r("comparator trim",e,o[c.COMPARATORTRIM]);e=e.replace(o[c.TILDETRIM],l);e=e.replace(o[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[c.TILDELOOSE]:o[c.TILDE];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[c.CARETLOOSE]:o[c.CARET];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return e.replace(n,function(n,i,s,o,a,c){r("xRange",e,n,i,s,o,a,c);var u=isX(s);var l=u||isX(o);var f=l||isX(a);var d=f;if(i==="="&&d){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&d){if(l){o=0}a=0;if(i===">"){i=">=";if(l){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(l){s=+s+1}else{o=+o+1}}n=i+s+"."+o+"."+a+c}else if(l){n=">="+s+".0.0"+c+" <"+(+s+1)+".0.0"+c}else if(f){n=">="+s+"."+o+".0"+c+" <"+s+"."+(+o+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[c.STAR],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;d=d||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,d.semver,n)){d=e}});if(f.operator===a||f.operator===c){return false}if((!d.operator||d.operator===a)&&s(e,d.semver)){return false}else if(d.operator===c&&o(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(o[c.COERCE])}else{var n;while((n=o[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}o[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}o[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},719:(e,t)=>{"use strict";var r;r=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var i=e;var s=[];if(t){s.push(t)}if(r){s.push(r)}var o;do{o=n.exec(i);if(o!==null){s.push(firstString(o[1],o[6],o[0]))}}while(o!==null);return s}t.ZP=parseArgsStringToArgv;r=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t{e.exports=r(419)},419:(e,t,r)=>{"use strict";var n=r(631);var i=r(16);var s=r(605);var o=r(211);var a=r(614);var c=r(357);var u=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,i){var s=toOptions(r,n,i);for(var o=0,a=t.requests.length;o=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");o.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},38:(e,t,r)=>{var n=r(417);e.exports=function nodeRNG(){return n.randomBytes(16)}},180:(e,t,r)=>{var n=r(38);var i=r(690);function v4(e,t,r){var s=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||n)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var a=0;a<16;++a){t[s+a]=o[a]}}return t||i(o)}e.exports=v4},569:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]{"use strict";r.r(t);r.d(t,{default:()=>u});var n=r(316);var i=r.n(n);var s=r(719);var o=r(569);var a=r.n(o);const c=async()=>{try{const e=n.getInput("cli-command",{required:true});const t=n.getInput("cli-subcommand",{required:true});const r=(0,s.ZP)(n.getInput("cli-options",{required:false}).trim());const i=(0,s.ZP)(n.getInput("cli-parameters",{required:false}).trim());const o=n.getInput("aws-region",{required:true});const c=await a().getOrInstall();const u=[...r,e,t,...i,"--region",o];const l=await c.callStdout(u);n.setOutput("cli-output",l)}catch(e){n.setFailed(e.message)}};c();const u=c},357:e=>{"use strict";e.exports=require("assert")},129:e=>{"use strict";e.exports=require("child_process")},417:e=>{"use strict";e.exports=require("crypto")},614:e=>{"use strict";e.exports=require("events")},747:e=>{"use strict";e.exports=require("fs")},605:e=>{"use strict";e.exports=require("http")},211:e=>{"use strict";e.exports=require("https")},631:e=>{"use strict";e.exports=require("net")},87:e=>{"use strict";e.exports=require("os")},622:e=>{"use strict";e.exports=require("path")},765:e=>{"use strict";e.exports=require("process")},413:e=>{"use strict";e.exports=require("stream")},16:e=>{"use strict";e.exports=require("tls")},835:e=>{"use strict";e.exports=require("url")},669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete t[r]}return n.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(746)})(); \ No newline at end of file diff --git a/packages/awscli/index.ts b/awscli/index.ts similarity index 100% rename from packages/awscli/index.ts rename to awscli/index.ts diff --git a/packages/awscli/package.json b/awscli/package.json similarity index 100% rename from packages/awscli/package.json rename to awscli/package.json diff --git a/packages/cloudfront_invalidate/CHANGELOG.md b/cloudfront_invalidate/CHANGELOG.md similarity index 100% rename from packages/cloudfront_invalidate/CHANGELOG.md rename to cloudfront_invalidate/CHANGELOG.md diff --git a/packages/cloudfront_invalidate/README.md b/cloudfront_invalidate/README.md similarity index 89% rename from packages/cloudfront_invalidate/README.md rename to cloudfront_invalidate/README.md index 9521584..3e3a0a8 100644 --- a/packages/cloudfront_invalidate/README.md +++ b/cloudfront_invalidate/README.md @@ -13,7 +13,7 @@ The `cloudfront_invalidate` GitHub action creates an invalidation request for an ## Usage ```yml -- uses: clowdhaus/aws-github-actions/packages/cloudfront_invalidate@v0.4 +- uses: clowdhaus/aws-github-actions/cloudfront_invalidate@master with: # The CloudFront distribution ID # Required: true @@ -39,7 +39,7 @@ The `cloudfront_invalidate` GitHub action creates an invalidation request for an ### Invalidate entire distribution ```yml -- uses: clowdhaus/aws-github-actions/packages/cloudfront_invalidate@v0.4 +- uses: clowdhaus/aws-github-actions/cloudfront_invalidate@master with: distribution-id: E323PSTTFMI4A7 ``` @@ -47,7 +47,7 @@ The `cloudfront_invalidate` GitHub action creates an invalidation request for an ### Invalidate multiple paths ```yml -- uses: clowdhaus/aws-github-actions/packages/cloudfront_invalidate@v0.4 +- uses: clowdhaus/aws-github-actions/cloudfront_invalidate@master with: distribution-id: E323PSTTFMI4A7 paths: | diff --git a/packages/cloudfront_invalidate/action.yml b/cloudfront_invalidate/action.yml similarity index 100% rename from packages/cloudfront_invalidate/action.yml rename to cloudfront_invalidate/action.yml diff --git a/cloudfront_invalidate/dist/index.js b/cloudfront_invalidate/dist/index.js new file mode 100644 index 0000000..b32974b --- /dev/null +++ b/cloudfront_invalidate/dist/index.js @@ -0,0 +1 @@ +module.exports=(()=>{var e={9190:function(e,t,i){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=r(i(2087));const o=i(2861);function issueCommand(e,t,i){const r=new Command(e,t,i);process.stdout.write(r.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,i){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=i}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const r=this.properties[i];if(r){if(t){t=false}else{e+=","}e+=`${i}=${escapeProperty(r)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},5316:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(9190);const a=i(3685);const s=i(2861);const u=n(i(2087));const c=n(i(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const i=s.toCommandValue(t);process.env[e]=i;const r=process.env["GITHUB_ENV"]||"";if(r){const t="_GitHubActionsFileCommandDelimeter_";const r=`${e}<<${t}${u.EOL}${i}${u.EOL}${t}`;a.issueCommand("ENV",r)}else{o.issueCommand("set-env",{name:e},i)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){a.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},3685:function(e,t,i){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=r(i(5747));const o=r(i(2087));const a=i(2861);function issueCommand(e,t){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}n.appendFileSync(i,`${a.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},2861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},3764:(e,t,i)=>{i(8492);var r=i(2393);var n=r.Service;var o=r.apiLoader;o.services["cloudfront"]={};r.CloudFront=n.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30","2017-10-30*","2018-06-18","2018-06-18*","2018-11-05","2018-11-05*","2019-03-26","2019-03-26*","2020-05-31"]);i(3422);Object.defineProperty(o.services["cloudfront"],"2016-11-25",{get:function get(){var e=i(1991);e.paginators=i(7866).o;e.waiters=i(4389).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-03-25",{get:function get(){var e=i(6937);e.paginators=i(8525).o;e.waiters=i(2554).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-10-30",{get:function get(){var e=i(1182);e.paginators=i(7640).o;e.waiters=i(6380).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-06-18",{get:function get(){var e=i(8841);e.paginators=i(6242).o;e.waiters=i(7014).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-11-05",{get:function get(){var e=i(5232);e.paginators=i(9610).o;e.waiters=i(62).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2019-03-26",{get:function get(){var e=i(7637);e.paginators=i(3873).o;e.waiters=i(1002).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2020-05-31",{get:function get(){var e=i(7210);e.paginators=i(9240).o;e.waiters=i(7639).V;return e},enumerable:true,configurable:true});e.exports=r.CloudFront},1294:(e,t,i)=>{i(8492);var r=i(2393);var n=r.Service;var o=r.apiLoader;o.services["cognitoidentity"]={};r.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);i(4879);Object.defineProperty(o.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=i(2271);e.paginators=i(9007).o;return e},enumerable:true,configurable:true});e.exports=r.CognitoIdentity},2726:(e,t,i)=>{i(8492);var r=i(2393);var n=r.Service;var o=r.apiLoader;o.services["sts"]={};r.STS=n.defineService("sts",["2011-06-15"]);i(9948);Object.defineProperty(o.services["sts"],"2011-06-15",{get:function get(){var e=i(3966);e.paginators=i(9227).o;return e},enumerable:true,configurable:true});e.exports=r.STS},8399:e=>{function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},1169:(e,t,i)=>{var r=i(2393),n=r.util.url,o=r.util.crypto.lib,a=r.util.base64.encode,s=r.util.inherit;var u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})};var c=function(e,t){var i=o.createSign("RSA-SHA1");i.write(e);return u(i.sign(t,"base64"))};var l=function(e,t,i,r){var n=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":i,Signature:c(n.toString(),r)}};var d=function(e,t,i){e=e.replace(/\s/gm,"");return{Policy:u(a(e)),"Key-Pair-Id":t,Signature:c(e,i)}};var p=function(e){var t=e.split("://");if(t.length<2){throw new Error("Invalid URL.")}return t[0].replace("*","")};var m=function(e){var t=n.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")};var h=function(e){switch(p(e)){case"http":case"https":return e;case"rtmp":return m(e);default:throw new Error("Invalid URI scheme. Scheme must be one of"+" http, https, or rtmp")}};var f=function(e,t){if(!t||typeof t!=="function"){throw e}t(e)};var y=function(e,t){if(!t||typeof t!=="function"){return e}t(null,e)};r.CloudFront.Signer=s({constructor:function Signer(e,t){if(e===void 0||t===void 0){throw new Error("A key pair ID and private key are required")}this.keyPairId=e;this.privateKey=t},getSignedCookie:function(e,t){var i="policy"in e?d(e.policy,this.keyPairId,this.privateKey):l(e.url,e.expires,this.keyPairId,this.privateKey);var r={};for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){r["CloudFront-"+n]=i[n]}}return y(r,t)},getSignedUrl:function(e,t){try{var i=h(e.url)}catch(e){return f(e,t)}var r=n.parse(e.url,true),o=Object.prototype.hasOwnProperty.call(e,"policy")?d(e.policy,this.keyPairId,this.privateKey):l(i,e.expires,this.keyPairId,this.privateKey);r.search=null;for(var a in o){if(Object.prototype.hasOwnProperty.call(o,a)){r.query[a]=o[a]}}try{var s=p(e.url)==="rtmp"?m(n.format(r)):n.format(r)}catch(e){return f(e,t)}return y(s,t)}});e.exports=r.CloudFront.Signer},5191:(e,t,i)=>{var r=i(2393);i(6936);i(4373);var n;r.Config=r.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);r.util.each.call(this,this.keys,function(t,i){this.set(t,e[t],i)})},getCredentials:function getCredentials(e){var t=this;function finish(i){e(i,i?null:t.credentials)}function credError(e,t){return new r.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var i="Could not load credentials from "+t.credentials.constructor.name;e=credError(i,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,i){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=i;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);r.util.each.call(this,e,function(e,i){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||r.Service.hasService(e)){this.set(e,i)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(r.util.readFileSync(e));var i=new r.FileSystemCredentials(e);var n=new r.CredentialProviderChain;n.providers.unshift(i);n.resolve(function(e,i){if(e)throw e;else t.credentials=i});this.constructor(t);return this},clear:function clear(){r.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,i){if(t===undefined){if(i===undefined){i=this.keys[e]}if(typeof i==="function"){this[e]=i.call(this)}else{this[e]=i}}else if(e==="httpOptions"&&this[e]){this[e]=r.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:undefined,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=r.util.copy(e);e.credentials=new r.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[r.Request,r.Credentials,r.CredentialProviderChain];if(r.S3){t.push(r.S3);if(r.S3.ManagedUpload){t.push(r.S3.ManagedUpload)}}r.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});r.config=new r.Config},7988:(e,t,i)=>{var r=i(2393);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var i;if(e[t.clientConfig]){i=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(i)return i}if(!r.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];i=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(i)return i}var o={};try{var a=r.util.getProfilesFromSharedConfig(r.util.iniLoader);o=a[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){var s=o[t.sharedConfig];i=validateRegionalEndpointsFlagValue(s,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+o[t.sharedConfig]+'".'});if(i)return i}return i}e.exports=resolveRegionalEndpointsFlag},2393:(e,t,i)=>{var r={util:i(8498)};var n={};n.toString();e.exports=r;r.util.update(r,{VERSION:"2.759.0",Signers:{},Protocol:{Json:i(476),Query:i(98),Rest:i(5439),RestJson:i(4055),RestXml:i(1599)},XML:{Builder:i(7925),Parser:null},JSON:{Builder:i(5785),Parser:i(4093)},Model:{Api:i(4091),Operation:i(5719),Shape:i(1486),Paginator:i(9730),ResourceWaiter:i(8433)},apiLoader:i(8399),EndpointCache:i(9074).$});i(4062);i(5934);i(5191);i(70);i(4286);i(9195);i(2102);i(458);i(2035);i(1744);r.events=new r.SequentialExecutor;r.util.memoizedProperty(r,"endpointCache",function(){return new r.EndpointCache(r.config.endpointCacheSize)},true)},6936:(e,t,i)=>{var r=i(2393);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(i){if(!i)t.expired=false;if(e)e(i)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var i=this;if(i.refreshCallbacks.push(e)===1){i.load(function onLoad(e){r.util.arrayEach(i.refreshCallbacks,function(i){if(t){i(e)}else{r.util.defer(function(){i(e)})}});i.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},8419:(e,t,i)=>{var r=i(2393);var n=i(2726);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var i=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new n(i)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,n){var o={};if(r){e(r);return}if(n){o.TokenCode=n}t.service[i](o,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;if(i instanceof Error){o=i.message}e(r.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},1363:(e,t,i)=>{var r=i(2393);var n=i(1294);var o=i(2726);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){i.loadCachedId();return i._identityId||i.params.IdentityId},set:function(e){i._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(i){if(!i){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(i);e(i)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(i,r){if(!i&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(i)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(i,r){if(!i){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(i)}e(i)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(i,r){if(!i){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(i){if(!i){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(i)})}else{t.clearIdOnNotAuthorized(i);e(i)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var i=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var o=n.filter(function(e){return i.indexOf(e)!==-1});if(o.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new o(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},4373:(e,t,i)=>{var r=i(2393);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var i=0;var n=t.providers.slice(0);function resolveNext(e,o){if(!e&&o||i===n.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,o)});t.resolveCallbacks.length=0;return}var a=n[i++];if(typeof a==="function"){o=a.call()}else{o=a}if(o.get){o.get(function(e){resolveNext(e,e?null:o)})}else{resolveNext(null,o)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},3138:(e,t,i)=>{var r=i(2393);i(5968);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout,connectTimeout:this.defaultConnectTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultConnectTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(i,n){if(!i){var o=r.util.date.getDate();var a=new Date(n.Expiration);if(a{var r=i(2393);r.ECSCredentials=r.RemoteCredentials},6886:(e,t,i)=>{var r=i(2393);r.EnvironmentCredentials=r.util.inherit(r.Credentials,{constructor:function EnvironmentCredentials(e){r.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;if(!process||!process.env){e(r.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var i=[];for(var n=0;n{var r=i(2393);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},2633:(e,t,i)=>{var r=i(2393);var n=i(3129);var o=r.util.iniLoader;r.ProcessCredentials=r.util.inherit(r.Credentials,{constructor:function ProcessCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(i,r){if(i){e(i,null)}else{t.expired=false;t.accessKeyId=r.AccessKeyId;t.secretAccessKey=r.SecretAccessKey;t.sessionToken=r.SessionToken;if(r.Expiration){t.expireTime=new Date(r.Expiration)}e(null)}})}else{throw r.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,i,n){if(e){t(r.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var o=JSON.parse(i);if(o.Expiration){var a=r.util.date.getDate();var s=new Date(o.Expiration);if(s{var r=i(2393),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",o="AWS_CONTAINER_CREDENTIALS_FULL_URI",a="AWS_CONTAINER_AUTHORIZATION_TOKEN",s=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],l="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[o]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[o];if(e){return"http://"+l+e}else if(t){var i=r.util.urlParse(t);if(u.indexOf(i.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+i.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(s.indexOf(i.protocol)<0&&c.indexOf(i.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+i.protocol+"; "+i.protocol+"//"+i.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+n+" or "+o+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[o]){return process.env[a]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var i=new r.HttpRequest(e);i.method="GET";i.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){i.headers.Authorization=n}r.util.handleRequestWithRetries(i,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i;try{i=this.getECSFullUri()}catch(t){e(t);return}this.request(i,function(i,n){if(!i){try{n=JSON.parse(n);var o=t.formatCreds(n);if(!t.credsFormatIsValid(o)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,o)}catch(e){i=e}}e(i,o)})}})},8671:(e,t,i)=>{var r=i(2393);var n=i(2726);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},3738:(e,t,i)=>{var r=i(2393);var n=i(2726);var o=r.util.iniLoader;var a="us-east-1";r.SharedIniFileCredentials=r.util.inherit(r.Credentials,{constructor:function SharedIniFileCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.disableAssumeRole=Boolean(e.disableAssumeRole);this.preferStaticCredentials=Boolean(e.preferStaticCredentials);this.tokenCodeFn=e.tokenCodeFn||null;this.httpOptions=e.httpOptions||null;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"})}var a=Boolean(this.preferStaticCredentials&&n["aws_access_key_id"]&&n["aws_secret_access_key"]);if(n["role_arn"]&&!a){this.loadRoleProfile(i,n,function(i,r){if(i){e(i)}else{t.expired=false;t.accessKeyId=r.Credentials.AccessKeyId;t.secretAccessKey=r.Credentials.SecretAccessKey;t.sessionToken=r.Credentials.SessionToken;t.expireTime=r.Credentials.Expiration;e(null)}});return}this.accessKeyId=n["aws_access_key_id"];this.secretAccessKey=n["aws_secret_access_key"];this.sessionToken=n["aws_session_token"];if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}this.expired=false;e(null)}catch(t){e(t)}},refresh:function refresh(e){o.clearCachedFiles();this.coalesceRefresh(e||r.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function loadRoleProfile(e,t,i){if(this.disableAssumeRole){throw r.util.error(new Error("Role assumption profiles are disabled. "+"Failed to load profile "+this.profile+" from "+e.filename),{code:"SharedIniFileCredentialsProviderFailure"})}var o=this;var s=t["role_arn"];var u=t["role_session_name"];var c=t["external_id"];var l=t["mfa_serial"];var d=t["source_profile"];var p=t["region"]||a;if(!d){throw r.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}var m=e[d];if(typeof m!=="object"){throw r.util.error(new Error("source_profile "+d+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"})}var h=new r.SharedIniFileCredentials(r.util.merge(this.options||{},{profile:d,preferStaticCredentials:true}));this.roleArn=s;var f=new n({credentials:h,region:p,httpOptions:this.httpOptions});var y={RoleArn:s,RoleSessionName:u||"aws-sdk-js-"+Date.now()};if(c){y.ExternalId=c}if(l&&o.tokenCodeFn){y.SerialNumber=l;o.tokenCodeFn(l,function(e,t){if(e){var n;if(e instanceof Error){n=e.message}else{n=e}i(r.util.error(new Error("Error fetching MFA token: "+n),{code:"SharedIniFileCredentialsProviderFailure"}));return}y.TokenCode=t;f.assumeRole(y,i)});return}f.assumeRole(y,i)}})},273:(e,t,i)=>{var r=i(2393);var n=i(2726);r.TemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function TemporaryCredentials(e,t){r.Credentials.call(this);this.loadMasterCredentials(t);this.expired=true;this.params=e||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials;var i=t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken;i.call(t.service,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},loadMasterCredentials:function loadMasterCredentials(e){this.masterCredentials=e||r.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}if(typeof this.masterCredentials.get!=="function"){this.masterCredentials=new r.Credentials(this.masterCredentials)}},createClients:function(){this.service=this.service||new n({params:this.params})}})},3033:(e,t,i)=>{var r=i(2393);var n=i(5747);var o=i(2726);var a=r.util.iniLoader;r.TokenFileWebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function TokenFileWebIdentityCredentials(e){r.Credentials.call(this);this.data=null;this.clientConfig=r.util.copy(e||{})},getParamsFromEnv:function getParamsFromEnv(){var e="AWS_WEB_IDENTITY_TOKEN_FILE",t="AWS_ROLE_ARN";if(process.env[e]&&process.env[t]){return[{envTokenFile:process.env[e],roleArn:process.env[t],roleSessionName:process.env["AWS_ROLE_SESSION_NAME"]}]}},getParamsFromSharedConfig:function getParamsFromSharedConfig(){var e=r.util.getProfilesFromSharedConfig(a);var t=process.env.AWS_PROFILE||r.util.defaultProfile;var i=e[t]||{};if(Object.keys(i).length===0){throw r.util.error(new Error("Profile "+t+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"})}var n=[];while(!i["web_identity_token_file"]&&i["source_profile"]){n.unshift({roleArn:i["role_arn"],roleSessionName:i["role_session_name"]});var o=i["source_profile"];i=e[o]}n.unshift({envTokenFile:i["web_identity_token_file"],roleArn:i["role_arn"],roleSessionName:i["role_session_name"]});return n},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},assumeRoleChaining:function assumeRoleChaining(e,t){var i=this;if(e.length===0){i.service.credentialsFrom(i.data,i);t()}else{var r=e.shift();i.service.config.credentials=i.service.credentialsFrom(i.data,i);i.service.assumeRole({RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,n){i.data=null;if(r){t(r)}else{i.data=n;i.assumeRoleChaining(e,t)}})}},load:function load(e){var t=this;try{var i=t.getParamsFromEnv();if(!i){i=t.getParamsFromSharedConfig()}if(i){var r=i.shift();var o=n.readFileSync(r.envTokenFile,{encoding:"ascii"});if(!t.service){t.createClients()}t.service.assumeRoleWithWebIdentity({WebIdentityToken:o,RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,n){t.data=null;if(r){e(r)}else{t.data=n;t.assumeRoleChaining(i,e)}})}}catch(t){e(t)}},createClients:function(){if(!this.service){var e=r.util.merge({},this.clientConfig);this.service=new o(e);this.service.retryableError=function(e){if(e.code==="IDPCommunicationErrorException"||e.code==="InvalidIdentityToken"){return true}else{return r.Service.prototype.retryableError.call(this,e)}}}}})},4992:(e,t,i)=>{var r=i(2393);var n=i(2726);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(i,r){t.data=null;if(!i){t.data=r;t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},5836:(e,t,i)=>{var r=i(2393);var n=i(8498);var o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var i=t.api||{};var r=i.operations;var n={};if(t.config.region){n.region=t.config.region}if(i.serviceId){n.serviceId=i.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,i){if(!i||t===undefined||t===null)return;if(i.type==="structure"&&i.required&&i.required.length>0){n.arrayEach(i.required,function(r){var n=i.members[r];if(n.endpointDiscoveryId===true){var o=n.isLocationName?n.name:r;e[o]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],n)}})}}function marshallCustomIdentifiers(e,t){var i={};marshallCustomIdentifiersHelper(i,e.params,t);return i}function optionalDiscoverEndpoint(e){var t=e.service;var i=t.api;var o=i.operations?i.operations[e.operation]:undefined;var a=o?o.input:undefined;var s=marshallCustomIdentifiers(e,a);var u=getCacheKey(e);if(Object.keys(s).length>0){u=n.update(u,s);if(o)u.operation=o.name}var c=r.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var l=t.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:s});addApiVersionHeader(l);l.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(u,t.Endpoints)}else if(e){r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var a={};function requiredDiscoverEndpoint(e,t){var i=e.service;var o=i.api;var s=o.operations?o.operations[e.operation]:undefined;var u=s?s.input:undefined;var c=marshallCustomIdentifiers(e,u);var l=getCacheKey(e);if(Object.keys(c).length>0){l=n.update(l,c);if(s)l.operation=s.name}var d=r.EndpointCache.getKeyString(l);var p=r.endpointCache.get(d);if(p&&p.length===1&&p[0].Address===""){if(!a[d])a[d]=[];a[d].push({request:e,callback:t});return}else if(p&&p.length>0){e.httpRequest.updateEndpoint(p[0].Address);t()}else{var m=i.makeRequest(o.endpointOperation,{Operation:s.name,Identifiers:c});m.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(m);r.endpointCache.put(d,[{Address:"",CachePeriodInMinutes:60}]);m.send(function(i,o){if(i){e.response.error=n.error(i,{retryable:false});r.endpointCache.remove(l);if(a[d]){var s=a[d];n.arrayEach(s,function(e){e.request.response.error=n.error(i,{retryable:false});e.callback()});delete a[d]}}else if(o){r.endpointCache.put(d,o.Endpoints);e.httpRequest.updateEndpoint(o.Endpoints[0].Address);if(a[d]){var s=a[d];n.arrayEach(s,function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address);e.callback()});delete a[d]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var i=t.apiVersion;if(i&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=i}}function invalidateCachedEndpoints(e){var t=e.error;var i=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||i.statusCode===421)){var o=e.request;var a=o.service.api.operations||{};var s=a[o.operation]?a[o.operation].input:undefined;var u=marshallCustomIdentifiers(o,s);var c=getCacheKey(o);if(Object.keys(u).length>0){c=n.update(c,u);if(a[o.operation])c.operation=a[o.operation].name}r.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function resolveEndpointDiscoveryConfig(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled!==undefined){return t.config.endpointDiscoveryEnabled}if(n.isBrowser())return undefined;for(var i=0;i{var r=i(8997).eventMessageChunker;var n=i(291).parseEvent;function createEventStream(e,t,i){var o=r(e);var a=[];for(var s=0;s{var r=i(2393).util;var n=i(2413).Transform;var o=r.buffer.alloc;function EventMessageChunkerStream(e){n.call(this,e);this.currentMessageTotalLength=0;this.currentMessagePendingLength=0;this.currentMessage=null;this.messageLengthBuffer=null}EventMessageChunkerStream.prototype=Object.create(n.prototype);EventMessageChunkerStream.prototype._transform=function(e,t,i){var r=e.length;var n=0;while(n{function eventMessageChunker(e){var t=[];var i=0;while(i{var r=i(2413).Transform;var n=i(291).parseEvent;function EventUnmarshallerStream(e){e=e||{};e.readableObjectMode=true;r.call(this,e);this._readableState.objectMode=true;this.parser=e.parser;this.eventStreamModel=e.eventStreamModel}EventUnmarshallerStream.prototype=Object.create(r.prototype);EventUnmarshallerStream.prototype._transform=function(e,t,i){try{var r=n(this.parser,e,this.eventStreamModel);this.push(r);return i()}catch(e){i(e)}};e.exports={EventUnmarshallerStream:EventUnmarshallerStream}},396:(e,t,i)=>{var r=i(2393).util;var n=r.buffer.toBuffer;function Int64(e){if(e.length!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}if(!r.Buffer.isBuffer(e))e=n(e);this.bytes=e}Int64.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var i=7,r=Math.abs(Math.round(e));i>-1&&r>0;i--,r/=256){t[i]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},291:(e,t,i)=>{var r=i(6845).parseMessage;function parseEvent(e,t,i){var n=r(t);var o=n.headers[":message-type"];if(o){if(o.value==="error"){throw parseError(n)}else if(o.value!=="event"){return}}var a=n.headers[":event-type"];var s=i.members[a.value];if(!s){return}var u={};var c=s.eventPayloadMemberName;if(c){var l=s.members[c];if(l.type==="binary"){u[c]=n.body}else{u[c]=e.parse(n.body.toString(),l)}}var d=s.eventHeaderMemberNames;for(var p=0;p{var r=i(396).Int64;var n=i(5732).splitMessage;var o="boolean";var a="byte";var s="short";var u="integer";var c="long";var l="binary";var d="string";var p="timestamp";var m="uuid";function parseHeaders(e){var t={};var i=0;while(i{var r=i(2393).util;var n=r.buffer.toBuffer;var o=4;var a=o*2;var s=4;var u=a+s*2;function splitMessage(e){if(!r.Buffer.isBuffer(e))e=n(e);if(e.length{var r=i(9983).EventMessageChunkerStream;var n=i(154).EventUnmarshallerStream;function createEventStream(e,t,i){var o=new n({parser:t,eventStreamModel:i});var a=new r;e.pipe(a).pipe(o);e.on("error",function(e){a.emit("error",e)});a.on("error",function(e){o.emit("error",e)});return o}e.exports={createEventStream:createEventStream}},4286:(e,t,i)=>{var r=i(2393);var n=i(4062);var o=i(5836).discoverEndpoint;r.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}r.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(i){if(i){e.response.error=r.util.error(i,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!e.service.config.region){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}else if(!t.test(e.service.config.region)){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})}}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var i=t.idempotentMembers;if(!i.length){return}var n=r.util.copy(e.params);for(var o=0,a=i.length;o=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(o,function(i,r){if(i){t(i)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var i=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(r){if(i&&i.isStreaming){if(i.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,i,n){i.httpResponse.statusCode=e;i.httpResponse.statusMessage=n;i.httpResponse.headers=t;i.httpResponse.body=r.util.buffer.toBuffer("");i.httpResponse.buffers=[];i.httpResponse.numBytes=0;var o=t.date||t.Date;var a=i.request.service;if(o){var s=Date.parse(o);if(a.config.correctClockSkew&&a.isClockSkewed(s)){a.applyClockOffset(s)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var i=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:i};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,i)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){function isDNSError(e){return e.errno==="ENOTFOUND"||typeof e.errno==="number"&&typeof r.util.getSystemErrorName==="function"&&["EAI_NONAME","EAI_NODATA"].indexOf(r.util.getSystemErrorName(e.errno)>=0)}if(e.code==="NetworkingError"&&isDNSError(e)){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}if(e.isSensitive){return"***SensitiveInformation***"}switch(e.type){case"structure":var i={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){i[t]=filterSensitiveLog(e.members[t],r)}else{i[t]=r}});return i;case"list":var n=[];r.util.arrayEach(t,function(t,i){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var o={};r.util.each(t,function(t,i){o[t]=filterSensitiveLog(e.value,i)});return o;default:return t}}function buildMessage(){var o=e.request.service.getSkewCorrectedDate().getTime();var a=(o-t.startTime.getTime())/1e3;var s=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;c=filterSensitiveLog(l,t.params)}var d=i(1669).inspect(c,true,null);var p="";if(s)p+="";p+="[AWS "+t.service.serviceIdentifier+" "+u;p+=" "+a.toString()+"s "+e.retryCount+" retries]";if(s)p+="";p+=" "+r.util.string.lowerFirst(t.operation);p+="("+d+")";if(s)p+="";return p}var o=buildMessage();if(typeof n.log==="function"){n.log(o)}else if(typeof n.write==="function"){n.write(o+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=i(476);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=i(5439);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=i(4055);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=i(1599);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=i(98);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},70:(e,t,i)=>{var r=i(2393);var n=r.util.inherit;r.Endpoint=n({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var i=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(i?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=n({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/";if(this.headers["Host"]){this.headers["Host"]=t.host}}});r.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=n({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},2205:(e,t,i)=>{var r=i(2393);var n=r.util.stream.Stream;var o=r.util.stream.Transform;var a=r.util.stream.Readable;i(70);var s="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,n,o){var a=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new r.Endpoint(t.proxy)}var l=u.protocol==="https:";var d=l?i(7211):i(8605);var p={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){p.agent=this.getAgent(l,{keepAlive:process.env[s]==="1"?true:false})}r.util.update(p,t);delete p.proxy;delete p.timeout;var m=d.request(p,function(e){if(m.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=m;m.didCallback=false;if(t.connectTimeout){var h;m.on("socket",function(e){if(e.connecting){h=setTimeout(function connectTimeout(){if(m.didCallback)return;m.didCallback=true;m.abort();o(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(h);h=null})}})}m.setTimeout(t.timeout||0,function(){if(m.didCallback)return;m.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";o(r.util.error(new Error(e),{code:"TimeoutError"}));m.abort()});m.on("error",function(){if(h){clearTimeout(h);h=null}if(m.didCallback)return;m.didCallback=true;o.apply(m,arguments)});var f=e.headers.Expect||e.headers.expect;if(f==="100-continue"){m.on("continue",function(){a.writeBody(m,e)})}else{this.writeBody(m,e)}return m},writeBody:function writeBody(e,t){var i=t.body;var r=parseInt(t.headers["Content-Length"],10);if(i instanceof n){var o=this.progressStream(e,r);if(o){i.pipe(o).pipe(e)}else{i.pipe(e)}}else if(i){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(i)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?i(7211):i(8605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new n.Agent(r.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED==="0"?false:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new n.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof o==="undefined"){return}var i=0;var r=new o;r._transform=function(r,n,o){if(r){i+=r.length;e.emit("sendProgress",{loaded:i,total:t})}o(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=a?2:1},5785:(e,t,i)=>{var r=i(8498);function JsonBuilder(){}JsonBuilder.prototype.build=function(e,t){return JSON.stringify(translate(e,t))};function translate(e,t){if(!t||e===undefined||e===null)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){var i={};r.each(e,function(e,r){var n=t.members[e];if(n){if(n.location!=="body")return;var o=n.isLocationName?n.name:e;var a=translate(r,n);if(a!==undefined)i[o]=a}});return i}function translateList(e,t){var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r!==undefined)i.push(r)});return i}function translateMap(e,t){var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n!==undefined)i[e]=n});return i}function translateScalar(e,t){return t.toWireFormat(e)}e.exports=JsonBuilder},4093:(e,t,i)=>{var r=i(8498);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var i={};var n=t.members;r.each(n,function(t,r){var n=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];var a=translate(o,r);if(a!==undefined)i[t]=a}});return i}function translateList(e,t){if(e==null)return undefined;var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r===undefined)i.push(null);else i.push(r)});return i}function translateMap(e,t){if(e==null)return undefined;var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n===undefined)i[e]=null;else i[e]=n});return i}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},5968:(e,t,i)=>{var r=i(2393);i(70);var n=r.util.inherit;r.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,i){if(arguments.length===2){i=t;t={}}if(process.env[r.util.imdsDisabledEnv]){i(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new r.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}r.util.handleRequestWithRetries(n,this,i)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var i="/latest/api/token";t.request(i,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var i=this;var n="/latest/meta-data/iam/security-credentials/";i.request(n,e,function(o,a){if(o){i.disableFetchToken=!(o.statusCode===401);t(r.util.error(o,{message:"EC2 Metadata roleName request returned error"}));return}a=a.split("\n")[0];i.request(n+a,e,function(e,n){if(e){i.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var o=JSON.parse(n);t(null,o)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,i){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,i)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,i){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(i){n.headers={"x-aws-ec2-metadata-token":i}}t.fetchCredentials(n,callbacks)})}}});e.exports=r.MetadataService},4091:(e,t,i)=>{var r=i(7298);var n=i(5719);var o=i(1486);var a=i(9730);var s=i(8433);var u=i(5847);var c=i(8498);var l=c.property;var d=c.memoizedProperty;function Api(e,t){var i=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};var p=t.serviceIdentifier;delete t.serviceIdentifier;l(this,"isApi",true,false);l(this,"apiVersion",e.metadata.apiVersion);l(this,"endpointPrefix",e.metadata.endpointPrefix);l(this,"signingName",e.metadata.signingName);l(this,"globalEndpoint",e.metadata.globalEndpoint);l(this,"signatureVersion",e.metadata.signatureVersion);l(this,"jsonVersion",e.metadata.jsonVersion);l(this,"targetPrefix",e.metadata.targetPrefix);l(this,"protocol",e.metadata.protocol);l(this,"timestampFormat",e.metadata.timestampFormat);l(this,"xmlNamespaceUri",e.metadata.xmlNamespace);l(this,"abbreviation",e.metadata.serviceAbbreviation);l(this,"fullName",e.metadata.serviceFullName);l(this,"serviceId",e.metadata.serviceId);if(p&&u[p]){l(this,"xmlNoDefaultLists",u[p].xmlNoDefaultLists,false)}d(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){l(i,"endpointOperation",c.string.lowerFirst(e))}if(t.endpointdiscovery&&!i.hasRequiredEndpointDiscovery){l(i,"hasRequiredEndpointDiscovery",t.endpointdiscovery.required===true)}}l(this,"operations",new r(e.operations,t,function(e,i){return new n(e,i,t)},c.string.lowerFirst,addEndpointOperation));l(this,"shapes",new r(e.shapes,t,function(e,i){return o.create(i,t)}));l(this,"paginators",new r(e.paginators,t,function(e,i){return new a(e,i,t)}));l(this,"waiters",new r(e.waiters,t,function(e,i){return new s(e,i,t)},c.string.lowerFirst));if(t.documentation){l(this,"documentation",e.documentation);l(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},7298:(e,t,i)=>{var r=i(8498).memoizedProperty;function memoize(e,t,i,n){r(this,n(e),function(){return i(e,t)})}function Collection(e,t,i,r,n){r=r||String;var o=this;for(var a in e){if(Object.prototype.hasOwnProperty.call(e,a)){memoize.call(o,a,e[a],i,r);if(n)n(a,e[a])}}}e.exports=Collection},5719:(e,t,i)=>{var r=i(1486);var n=i(8498);var o=n.property;var a=n.memoizedProperty;function Operation(e,t,i){var n=this;i=i||{};o(this,"name",t.name||e);o(this,"api",i.api,false);t.http=t.http||{};o(this,"endpoint",t.endpoint);o(this,"httpMethod",t.http.method||"POST");o(this,"httpPath",t.http.requestUri||"/");o(this,"authtype",t.authtype||"");o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");a(this,"input",function(){if(!t.input){return new r.create({type:"structure"},i)}return r.create(t.input,i)});a(this,"output",function(){if(!t.output){return new r.create({type:"structure"},i)}return r.create(t.output,i)});a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var n=0;n{var r=i(8498).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},8433:(e,t,i)=>{var r=i(8498);var n=r.property;function ResourceWaiter(e,t,i){i=i||{};n(this,"name",e);n(this,"api",i.api,false);if(t.operation){n(this,"operation",r.string.lowerFirst(t.operation))}var o=this;var a=["type","description","delay","maxAttempts","acceptors"];a.forEach(function(e){var i=t[e];if(i){n(o,e,i)}})}e.exports=ResourceWaiter},1486:(e,t,i)=>{var r=i(7298);var n=i(8498);function property(e,t,i){if(i!==null&&i!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,i){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||i);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var i=t.api.shapes[e.shape];if(!i){throw new Error("Cannot find shape reference: "+e.shape)}return i}else{return null}};Shape.create=function create(e,t,i){if(e.isShape)return e;var r=Shape.resolve(e,t);if(r){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var o=function(){r.constructor.call(this,e,t,i)};o.prototype=r;return new o}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var a=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,i)}else{throw new Error("Unrecognized shape type: "+a)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var i=this;var n=null,o=!this.isShape;CompositeShape.apply(this,arguments);if(o){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new r(e.members,t,function(e,i){return Shape.create(i,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=i.members;var t=i.memberNames;for(var r=0,n=t.length;r-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var i=n.Buffer.alloc(t.length,t);t.fill(0);t=i}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},8492:(e,t,i)=>{var r=i(8498);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=i(6417);r.Buffer=i(4293).Buffer;r.domain=i(5229);r.stream=i(2413);r.url=i(8835);r.querystring=i(1191);r.environment="nodejs";r.createEventStream=r.stream.Readable?i(7143).createEventStream:i(9186).createEventStream;r.realClock=i(9605);r.clientSideMonitoring={Publisher:i(6017).Publisher,configProvider:i(3880)};r.iniLoader=i(7098).b;r.getSystemErrorName=i(1669).getSystemErrorName;var n;e.exports=n=i(2393);i(6936);i(4373);i(273);i(8419);i(4992);i(1363);i(8671);i(2633);n.XML.Parser=i(3606);i(2205);i(6081);i(3033);i(3138);i(181);i(2573);i(6886);i(8722);i(3738);i(2633);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,i){if(!t)e=i});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var i=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var r=n.util.iniLoader;while(!t&&i.length){var o=r.loadFrom(i.shift());var a=o[e.AWS_PROFILE||n.util.defaultProfile];t=a&&a.region}}return t}});n.config=new n.Config},1744:(e,t,i)=>{var r=i(2393);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,i){this.errors=[];this.validateMember(e,t||{},i||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw r.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,i){this.validateType(t,i,["object"],"structure");var r;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+i)}}},validatePattern:function validatePattern(e,t,i){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+i)}}},validateRange:function validateRange(e,t,i,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+i)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+i)}}},validateEnum:function validateRange(e,t,i){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+i)}}},validateType:function validateType(e,t,i,n){if(e===null||e===undefined)return false;var o=false;for(var a=0;a{var r=i(8498);var n=i(2393);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var i=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(i.endpoint&&i.endpoint.hostPrefix){var r=i.endpoint.hostPrefix;var n=expandHostPrefix(r,e.params,i.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var i=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(i.name);return i.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,i){r.each(i.members,function(i,n){if(n.hostLabel===true){if(typeof t[i]!=="string"||t[i]===""){throw r.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"})}var o=new RegExp("\\{"+i+"\\}","g");e=e.replace(o,t[i])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!i.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},476:(e,t,i)=>{var r=i(8498);var n=i(5785);var o=i(4093);var a=i(926).populateHostPrefix;function buildRequest(e){var t=e.httpRequest;var i=e.service.api;var r=i.targetPrefix+"."+i.operations[e.operation].name;var o=i.jsonVersion||"1.0";var s=i.operations[e.operation].input;var u=new n;if(o===1)o="1.0";t.body=u.build(e.params||{},s);t.headers["Content-Type"]="application/x-amz-json-"+o;t.headers["X-Amz-Target"]=r;a(e)}function extractError(e){var t={};var i=e.httpResponse;t.code=i.headers["x-amzn-errortype"]||"UnknownError";if(typeof t.code==="string"){t.code=t.code.split(":")[0]}if(i.body.length>0){try{var n=JSON.parse(i.body.toString());var o=n.__type||n.code||n.Code;if(o){t.code=o.split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=i.statusCode;t.message=i.statusMessage}}else{t.statusCode=i.statusCode;t.message=i.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var i=e.request.service.api.operations[e.request.operation];var r=i.output||{};var n=new o;e.data=n.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},98:(e,t,i)=>{var r=i(2393);var n=i(8498);var o=i(504);var a=i(1486);var s=i(926).populateHostPrefix;function buildRequest(e){var t=e.service.api.operations[e.operation];var i=e.httpRequest;i.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";i.params={Version:e.service.api.apiVersion,Action:t.name};var r=new o;r.serialize(e.params,t.input,function(e,t){i.params[e]=t});i.body=n.queryParamsToString(i.params);s(e)}function extractError(e){var t,i=e.httpResponse.body.toString();if(i.match("{var r=i(8498);var n=i(926).populateHostPrefix;function populateMethod(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function generateURI(e,t,i,n){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=false;r.each(i.members,function(e,t){var i=n[e];if(i===null||i===undefined)return;if(t.location==="uri"){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){var n=t?r.uriEscapePath:r.uriEscape;return n(String(i))})}else if(t.location==="querystring"){s=true;if(t.type==="list"){a[t.name]=i.map(function(e){return r.uriEscape(t.member.toWireFormat(e).toString())})}else if(t.type==="map"){r.each(i,function(e,t){if(Array.isArray(t)){a[e]=t.map(function(e){return r.uriEscape(String(e))})}else{a[e]=r.uriEscape(String(t))}})}else{a[t.name]=r.uriEscape(t.toWireFormat(i).toString())}}});if(s){o+=o.indexOf("?")>=0?"&":"?";var u=[];r.arrayEach(Object.keys(a).sort(),function(e){if(!Array.isArray(a[e])){a[e]=[a[e]]}for(var t=0;t{var r=i(8498);var n=i(5439);var o=i(476);var a=i(5785);var s=i(4093);function populateBody(e){var t=new a;var i=e.service.api.operations[e.operation].input;if(i.payload){var r={};var n=i.members[i.payload];r=e.params[i.payload];if(r===undefined)return;if(n.type==="structure"){e.httpRequest.body=t.build(r,n);applyContentTypeHeader(e)}else{e.httpRequest.body=r;if(n.type==="binary"||n.isStreaming){applyContentTypeHeader(e,true)}}}else{var o=t.build(e.params,i);if(o!=="{}"||e.httpRequest.method!=="GET"){e.httpRequest.body=o}applyContentTypeHeader(e)}}function applyContentTypeHeader(e,t){var i=e.service.api.operations[e.operation];var r=i.input;if(!e.httpRequest.headers["Content-Type"]){var n=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=n}}function buildRequest(e){n.buildRequest(e);if(["HEAD","DELETE"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e)}function extractData(e){n.extractData(e);var t=e.request;var i=t.service.api.operations[t.operation];var a=t.service.api.operations[t.operation].output||{};var u;var c=i.hasEventOutput;if(a.payload){var l=a.members[a.payload];var d=e.httpResponse.body;if(l.isEventStream){u=new s;e.data[payload]=r.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:d,u,l)}else if(l.type==="structure"||l.type==="list"){var u=new s;e.data[a.payload]=u.parse(d,l)}else if(l.type==="binary"||l.isStreaming){e.data[a.payload]=d}else{e.data[a.payload]=l.toType(d)}}else{var p=e.data;o.extractData(e);e.data=r.merge(p,e.data)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},1599:(e,t,i)=>{var r=i(2393);var n=i(8498);var o=i(5439);function populateBody(e){var t=e.service.api.operations[e.operation].input;var i=new r.XML.Builder;var o=e.params;var a=t.payload;if(a){var s=t.members[a];o=o[a];if(o===undefined)return;if(s.type==="structure"){var u=s.name;e.httpRequest.body=i.toXML(o,s,u,true)}else{e.httpRequest.body=o}}else{e.httpRequest.body=i.toXML(o,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){o.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(i){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){o.extractData(e);var t;var i=e.request;var a=e.httpResponse.body;var s=i.service.api.operations[i.operation];var u=s.output;var c=s.hasEventOutput;var l=u.payload;if(l){var d=u.members[l];if(d.isEventStream){t=new r.XML.Parser;e.data[l]=n.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,d)}else if(d.type==="structure"){t=new r.XML.Parser;e.data[l]=t.parse(a.toString(),d)}else if(d.type==="binary"||d.isStreaming){e.data[l]=a}else{e.data[l]=d.toType(a)}}else if(a.length>0){t=new r.XML.Parser;var p=t.parse(a.toString(),u);n.update(e.data,p)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},3880:(e,t,i)=>{var r=i(2393);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var i=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=i[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},6017:(e,t,i)=>{var r=i(2393).util;var n=i(6200);var o=r.buffer.toBuffer;var a=1024*8;function Publisher(e){e=e||{};this.enabled=e.enabled||false;this.port=e.port||31e3;this.clientId=e.clientId||"";this.address=e.host||"127.0.0.1";if(this.clientId.length>255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var i=0,r=t.length;io){e[n]=a.substr(0,o)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=o(JSON.stringify(e));if(!this.enabled||t.length>a){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var i=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,i){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},504:(e,t,i)=>{var r=i(8498);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,i){serializeStructure("",e,t,i)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,i,n){r.each(i.members,function(i,r){var o=t[i];if(o===null||o===undefined)return;var a=ucfirst(r);a=e?e+"."+a:a;serializeMember(a,o,r,n)})}function serializeMap(e,t,i,n){var o=1;r.each(t,function(t,r){var a=i.flattened?".":".entry.";var s=a+o+++".";var u=s+(i.key.name||"key");var c=s+(i.value.name||"value");serializeMember(e+u,t,i.key,n);serializeMember(e+c,r,i.value,n)})}function serializeList(e,t,i,n){var o=i.member||{};if(t.length===0){n.call(this,e,null);return}r.arrayEach(t,function(t,r){var a="."+(r+1);if(i.api.protocol==="ec2"){a=a+""}else if(i.flattened){if(o.name){var s=e.split(".");s.pop();s.push(ucfirst(o));e=s.join(".")}}else{a="."+(o.name?o.name:"member")+a}serializeMember(e+a,t,o,n)})}function serializeMember(e,t,i,r){if(t===null||t===undefined)return;if(i.type==="structure"){serializeStructure(e,t,i,r)}else if(i.type==="list"){serializeList(e,t,i,r)}else if(i.type==="map"){serializeMap(e,t,i,r)}else{r(e,i.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},9605:e=>{e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},8851:(e,t,i)=>{var r=i(8498);var n=i(4223);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var i=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[i,r],[t,"*"],[i,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,i){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=i}})}function configureEndpoint(e){var t=derivedKeys(e);for(var i=0;i{var r=i(2393);var n=i(1109);var o=r.util.inherit;var a=r.util.domain;var s=i(1405);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=false;i.emit(i._asm.currentState,function(e){if(e){if(isTerminalState(i)){if(a&&i.domain instanceof a.Domain){e.domainEmitter=i;e.domain=i.domain;e.domainThrown=false;i.domain.emit("error",e)}else{throw e}}else{i.response.error=e;t(e)}}else{t(i.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();r.Request=o({constructor:function Request(e,t,i){var o=e.endpoint;var s=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint){if(e.signingRegion){s=e.signingRegion}else{s="us-east-1"}}this.domain=a&&a.active;this.service=e;this.operation=t;this.params=i||{};this.httpRequest=new r.HttpRequest(o,s);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(i){if(i===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(i,n){if(i)return e(i,null);if(n===null)return e(null,null);var o=t.service.paginationConfig(t.operation);var a=o.resultKey;if(Array.isArray(a))a=a[0];var u=s.search(n,a);var c=true;r.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return r.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var i=null;if(r.HttpClient.streamsApiVersion===2){i=new e.PassThrough;process.nextTick(function(){t.send()})}else{i=new e.Stream;i.readable=true;i.sent=false;i.on("newListener",function(e){if(!i.sent&&e==="data"){i.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){i.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,o,a){if(n<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){a.error=e;a.error.retryable=false});var s=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(o["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){s=true;var c=0}var l=function checkContentLengthAndEmit(){if(s&&c!==u){i.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){i.end()}else{i.emit("end")}};var d=a.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(s){var p=new e.PassThrough;p._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};p.on("end",l);i.on("error",function(e){s=false;d.unpipe(p);p.emit("end");p.end()});d.pipe(p).pipe(i,{end:false})}else{d.pipe(i)}}else{if(s){d.on("data",function(e){if(e&&e.length){c+=e.length}})}d.on("data",function(e){i.emit("data",e)});d.on("end",l)}d.on("error",function(e){s=false;i.emit("error",e)})}});return i},emitEvent:function emit(e,t,i){if(typeof t==="function"){i=t;t=null}if(!i)i=function(){};if(!t)t=this.eventParameters(e,this.response);var n=r.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;i.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,i){t.on("complete",function(t){if(t.error){i(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},458:(e,t,i)=>{var r=i(2393);var n=r.util.inherit;var o=i(1405);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var i=t.config.acceptors;var r=false;var n="retry";i.forEach(function(i){if(!r){var o=t.matchers[i.matcher];if(o&&o(e,i.expected,i.argument)){r=true;n=i.state}}});if(!r&&e.error)n="failure";if(n==="success"){t.setSuccess(e)}else{t.setError(e,n==="retry")}}r.ResourceWaiter=n({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}return o.strictDeepEqual(r,t)},pathAll:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}if(!Array.isArray(r))r=[r];var n=r.length;if(!n)return false;for(var a=0;a{var r=i(2393);var n=r.util.inherit;var o=i(1405);r.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var i=this.request.service;var n=this.request.operation;try{t=i.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var a=t.inputToken;if(typeof a==="string")a=[a];for(var s=0;s{var r=i(2393);r.SequentialExecutor=r.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(e){return this._events[e]?this._events[e].slice(0):[]},on:function on(e,t,i){if(this._events[e]){i?this._events[e].unshift(t):this._events[e].push(t)}else{this._events[e]=[t]}return this},onAsync:function onAsync(e,t,i){t._isAsync=true;return this.on(e,t,i)},removeListener:function removeListener(e,t){var i=this._events[e];if(i){var r=i.length;var n=-1;for(var o=0;o-1){i.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,i){if(!i)i=function(){};var r=this.listeners(e);var n=r.length;this.callListeners(r,t,i);return n>0},callListeners:function callListeners(e,t,i,n){var o=this;var a=n||null;function callNextListener(n){if(n){a=r.util.error(a||new Error,n);if(o._haltHandlersOnError){return i.call(o,a)}}o.callListeners(e,t,i,a)}while(e.length>0){var s=e.shift();if(s._isAsync){s.apply(o,t.concat([callNextListener]));return}else{try{s.apply(o,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError){i.call(o,a);return}}}i.call(o,a)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,i){if(typeof i==="function")i=[i];r.util.arrayEach(i,function(i){t.on(e,i)})});return t},addNamedListener:function addNamedListener(e,t,i,r){this[e]=i;this.addListener(t,i,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,i,r){i._isAsync=true;return this.addNamedListener(e,t,i,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},5934:(e,t,i)=>{var r=i(2393);var n=i(4091);var o=i(8851);var a=r.util.inherit;var s=0;r.Service=a({constructor:function Service(e){if(!this.loadServiceClass){throw r.util.error(new Error,"Service must be constructed with `new' operator")}var t=this.loadServiceClass(e||{});if(t){var i=r.util.copy(e);var n=new t(e);Object.defineProperty(n,"_originalConfig",{get:function(){return i},enumerable:false,configurable:true});n._clientId=++s;return n}this.initialize(e)},initialize:function initialize(e){var t=r.config[this.serviceIdentifier];this.config=new r.Config(r.config);if(t)this.config.update(t,true);if(e)this.config.update(e,true);this.validateService();if(!this.config.endpoint)o.configureEndpoint(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint);r.SequentialExecutor.call(this);r.Service.addDefaultMonitoringListeners(this);if((this.config.clientSideMonitoring||r.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function PUBLISH_API_CALL(e){process.nextTick(function(){i.eventHandler(e)})});this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function PUBLISH_API_ATTEMPT(e){process.nextTick(function(){i.eventHandler(e)})})}},validateService:function validateService(){},loadServiceClass:function loadServiceClass(e){var t=e;if(!r.util.isEmpty(this.api)){return null}else if(t.apiConfig){return r.Service.defineServiceApi(this.constructor,t.apiConfig)}else if(!this.constructor.services){return null}else{t=new r.Config(r.config);t.update(e,true);var i=t.apiVersions[this.constructor.serviceIdentifier];i=i||t.apiVersion;return this.getLatestServiceClass(i)}},getLatestServiceClass:function getLatestServiceClass(e){e=this.getLatestServiceVersion(e);if(this.constructor.services[e]===null){r.Service.defineServiceApi(this.constructor,e)}return this.constructor.services[e]},getLatestServiceVersion:function getLatestServiceVersion(e){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!e){e="latest"}else if(r.util.isType(e,Date)){e=r.util.date.iso8601(e).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,e)){return e}var t=Object.keys(this.constructor.services).sort();var i=null;for(var n=t.length-1;n>=0;n--){if(t[n][t[n].length-1]!=="*"){i=t[n]}if(t[n].substr(0,10)<=e){return i}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,i){if(typeof t==="function"){i=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=r.util.copy(t);r.util.each(this.config.params,function(e,i){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=i}}})}}var o=new r.Request(this,e,t);this.addAllRequestListeners(o);this.attachMonitoringEmitter(o);if(i)o.send(i);return o},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,i){if(typeof t==="function"){i=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return i?r.send(i):r},waitFor:function waitFor(e,t,i){var n=new r.ResourceWaiter(this,e);return n.wait(t,i)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var i=0;i299){if(n.code)i.FinalAwsException=n.code;if(n.message)i.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)i.FinalSdkException=n.code||n.name;if(n.message)i.FinalSdkExceptionMessage=n.message}}return i},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var i={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){i.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){i.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return i;if(e.httpRequest.headers["x-amz-security-token"]){i.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){i.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){i.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){i.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return i},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var i=e.response;var r=i.error;if(i.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var i;var n;var o;var a=0;var s;var u;var c=this;var l=true;e.on("validate",function(){o=r.util.realClock.now();u=Date.now()},l);e.on("sign",function(){i=r.util.realClock.now();t=Date.now();s=e.httpRequest.region;a++},l);e.on("validateResponse",function(){n=Math.round(r.util.realClock.now()-i)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var i=c.apiAttemptEvent(e);i.Timestamp=t;i.AttemptLatency=n>=0?n:0;i.Region=s;c.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var o=c.attemptFailEvent(e);o.Timestamp=t;n=n||Math.round(r.util.realClock.now()-i);o.AttemptLatency=n>=0?n:0;o.Region=s;c.emit("apiCallAttempt",[o])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=a;if(t.AttemptCount<=0)return;t.Timestamp=u;var i=Math.round(r.util.realClock.now()-o);t.Latency=i>=0?i:0;var n=e.response;if(n.error&&n.error.retryable&&typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var i=null;var n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null;n=i?i.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var i=this.api.operations[e].paginator;if(!i){if(t){var n=new Error;throw r.util.error(n,"No pagination configuration for "+e)}return null}return i}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var i=e.prototype.api.operations[t];if(i.authtype==="none"){e.prototype[t]=function(e,i){return this.makeUnauthenticatedRequest(t,e,i)}}else{e.prototype[t]=function(e,i){return this.makeRequest(t,e,i)}}})},defineService:function defineService(e,t,i){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){i=t;t=[]}var n=a(r.Service,i||{});if(typeof e==="string"){r.Service.addVersions(n,t);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else{n.prototype.api=e;r.Service.defineMethods(n)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var s=r.util.clientSideMonitoring.Publisher;var u=r.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new s(c);if(c.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(n.prototype);r.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var i=0;i{var r=i(2393);i(1169);r.util.update(r.CloudFront.prototype,{setupRequestListeners:function setupRequestListeners(e){e.addListener("extractData",r.util.hoistPayloadMember)}})},4879:(e,t,i)=>{var r=i(2393);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},9948:(e,t,i)=>{var r=i(2393);var n=i(7988);var o="AWS_STS_REGIONAL_ENDPOINTS";var a="sts_regional_endpoints";r.util.update(r.STS.prototype,{credentialsFrom:function credentialsFrom(e,t){if(!e)return null;if(!t)t=new r.TemporaryCredentials;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretAccessKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration;return t},assumeRoleWithWebIdentity:function assumeRoleWithWebIdentity(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function assumeRoleWithSAML(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function setupRequestListeners(e){e.addListener("validate",this.optInRegionalEndpoint,true)},optInRegionalEndpoint:function optInRegionalEndpoint(e){var t=e.service;var i=t.config;i.stsRegionalEndpoints=n(t._originalConfig,{env:o,sharedConfig:a,clientConfig:"stsRegionalEndpoints"});if(i.stsRegionalEndpoints==="regional"&&t.isGlobalEndpoint){if(!i.region){throw r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}var s=i.endpoint.indexOf(".amazonaws.com");var u=i.endpoint.substring(0,s)+"."+i.region+i.endpoint.substring(s);e.httpRequest.updateEndpoint(u);e.httpRequest.region=i.region}}})},7098:(e,t,i)=>{var r=i(6081).IniLoader;e.exports.b=new r},6081:(e,t,i)=>{var r=i(2393);var n=i(2087);var o=i(5622);function parseFile(e,t){var i=r.util.ini.parse(r.util.readFileSync(e));var n={};Object.keys(i).forEach(function(e){var r=i[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:r,enumerable:true})});return n}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var i=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[i]){var r=this.parseFile(i,t);Object.defineProperty(this.resolvedProfiles,i,{value:r})}return this.resolvedProfiles[i]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return o.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var a=r.IniLoader;e.exports={IniLoader:a,parseFile:parseFile}},2762:(e,t,i)=>{var r=i(2393);var n=r.util.inherit;var o="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[o];var i=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(i===r.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[o]=t}else if(i===r.Signers.S3){var a=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[o]=parseInt(r.util.date.unixTimestamp(a)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var i=r.util.urlParse(e.httpRequest.path);var n={};if(i.search){n=r.util.queryStringParse(i.search.substr(1))}var a=e.httpRequest.headers["Authorization"].split(" ");if(a[0]==="AWS"){a=a[1].split(":");n["Signature"]=a.pop();n["AWSAccessKeyId"]=a.join(":");r.util.each(e.httpRequest.headers,function(e,t){if(e===o)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[o];delete n["Authorization"];delete n["Host"]}else if(a[0]==="AWS4-HMAC-SHA256"){a.shift();var s=a.join(" ");var u=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=i.pathname;t.search=r.util.queryParamsToString(n)}r.Signers.Presign=n({sign:function sign(e,t,i){e.httpRequest.headers[o]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(i){e.build(function(){if(this.response.error)i(this.response.error);else{i(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},2035:(e,t,i)=>{var r=i(2393);var n=r.util.inherit;r.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};i(3115);i(8310);i(9090);i(449);i(1567);i(2762)},1567:(e,t,i)=>{var r=i(2393);var n=r.util.inherit;r.Signers.S3=n(r.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(e,t){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=r.util.date.rfc822(t)}if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}var i=this.sign(e.secretAccessKey,this.stringToSign());var n="AWS "+e.accessKeyId+":"+i;this.request.headers["Authorization"]=n},stringToSign:function stringToSign(){var e=this.request;var t=[];t.push(e.method);t.push(e.headers["Content-MD5"]||"");t.push(e.headers["Content-Type"]||"");t.push(e.headers["presigned-expires"]||"");var i=this.canonicalizedAmzHeaders();if(i)t.push(i);t.push(this.canonicalizedResource());return t.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var e=[];r.util.each(this.request.headers,function(t){if(t.match(/^x-amz-/i))e.push(t)});e.sort(function(e,t){return e.toLowerCase(){var r=i(2393);var n=r.util.inherit;r.Signers.V2=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){if(!t)t=r.util.date.getDate();var i=this.request;i.params.Timestamp=r.util.date.iso8601(t);i.params.SignatureVersion="2";i.params.SignatureMethod="HmacSHA256";i.params.AWSAccessKeyId=e.accessKeyId;if(e.sessionToken){i.params.SecurityToken=e.sessionToken}delete i.params.Signature;i.params.Signature=this.signature(e);i.body=r.util.queryParamsToString(i.params);i.headers["Content-Length"]=i.body.length},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push(this.request.endpoint.host.toLowerCase());e.push(this.request.pathname());e.push(r.util.queryParamsToString(this.request.params));return e.join("\n")}});e.exports=r.Signers.V2},8310:(e,t,i)=>{var r=i(2393);var n=r.util.inherit;r.Signers.V3=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var i=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=i;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(i){t.push(i.toLowerCase().trim()+":"+String(e[i]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},9090:(e,t,i)=>{var r=i(2393);var n=r.util.inherit;i(8310);r.Signers.V3Https=n(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},449:(e,t,i)=>{var r=i(2393);var n=i(5943);var o=r.util.inherit;var a="presigned-expires";r.Signers.V4=o(r.Signers.RequestSigner,{constructor:function V4(e,t,i){r.Signers.RequestSigner.call(this,e);this.serviceName=t;i=i||{};this.signatureCache=typeof i.signatureCache==="boolean"?i.signatureCache:true;this.operation=i.operation;this.signatureVersion=i.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function addAuthorization(e,t){var i=r.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");if(this.isPresigned()){this.updateForPresigned(e,i)}else{this.addHeaders(e,i)}this.request.headers["Authorization"]=this.authorization(e,i)},addHeaders:function addHeaders(e,t){this.request.headers["X-Amz-Date"]=t;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}},updateForPresigned:function updateForPresigned(e,t){var i=this.credentialString(t);var n={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+i,"X-Amz-Expires":this.request.headers[a],"X-Amz-SignedHeaders":this.signedHeaders()};if(e.sessionToken){n["X-Amz-Security-Token"]=e.sessionToken}if(this.request.headers["Content-Type"]){n["Content-Type"]=this.request.headers["Content-Type"]}if(this.request.headers["Content-MD5"]){n["Content-MD5"]=this.request.headers["Content-MD5"]}if(this.request.headers["Cache-Control"]){n["Cache-Control"]=this.request.headers["Cache-Control"]}r.util.each.call(this,this.request.headers,function(e,t){if(e===a)return;if(this.isSignableHeader(e)){var i=e.toLowerCase();if(i.indexOf("x-amz-meta-")===0){n[i]=t}else if(i.indexOf("x-amz-")===0){n[e]=t}}});var o=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=o+r.util.queryParamsToString(n)},authorization:function authorization(e,t){var i=[];var r=this.credentialString(t);i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);i.push("SignedHeaders="+this.signedHeaders());i.push("Signature="+this.signature(e,t));return i.join(", ")},signature:function signature(e,t){var i=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(i,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,i){e.push([t,i])});e.sort(function(e,t){return e[0].toLowerCase(){var r=i(2393);var n={};var o=[];var a=50;var s="aws4_request";e.exports={createScope:function createScope(e,t,i){return[e.substr(0,8),t,i,s].join("/")},getSigningKey:function getSigningKey(e,t,i,u,c){var l=r.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64");var d=[l,t,i,u].join("_");c=c!==false;if(c&&d in n){return n[d]}var p=r.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer");var m=r.util.crypto.hmac(p,i,"buffer");var h=r.util.crypto.hmac(m,u,"buffer");var f=r.util.crypto.hmac(h,s,"buffer");if(c){n[d]=f;o.push(d);if(o.length>a){delete n[o.shift()]}}return f},emptyCache:function emptyCache(){n={};o=[]}}},1109:e=>{function AcceptorStateMachine(e,t){this.currentState=t||null;this.states=e||{}}AcceptorStateMachine.prototype.runTo=function runTo(e,t,i,r){if(typeof e==="function"){r=i;i=t;t=e;e=null}var n=this;var o=n.states[n.currentState];o.fn.call(i||n,r,function(r){if(r){if(o.fail)n.currentState=o.fail;else return t?t.call(i,r):null}else{if(o.accept)n.currentState=o.accept;else return t?t.call(i):null}if(n.currentState===e){return t?t.call(i,r):null}n.runTo(e,t,i,r)})};AcceptorStateMachine.prototype.addState=function addState(e,t,i,r){if(typeof t==="function"){r=t;t=null;i=null}else if(typeof i==="function"){r=i;i=null}if(!this.currentState)this.currentState=e;this.states[e]={accept:t,fail:i,fn:r};return this};e.exports=AcceptorStateMachine},8498:(e,t,i)=>{var r;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+i(2393).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var i=n.uriEscape;var r=Object.keys(e).sort();n.arrayEach(r,function(r){var o=e[r];var a=i(r);var s=a+"=";if(Array.isArray(o)){var u=[];n.arrayEach(o,function(e){u.push(i(e))});s=a+"="+u.sort().join("&"+a+"=")}else if(o!==undefined&&o!==null){s=a+"="+i(o)}t.push(s)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return i(5747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,i){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,i)}else{var r=new n.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,i)}return r}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var i=0;t._read=function(r){if(i>=e.length)return t.push(null);var n=i+r;if(n>e.length)n=e.length;t.push(e.slice(i,n));i=n};return t},concat:function(e){var t=0,i=0,r=null,o;for(o=0;o>>8^t[(i^o)&255]}return(i^-1)>>>0},hmac:function hmac(e,t,i,r){if(!i)i="binary";if(i==="buffer"){i=undefined}if(!r)r="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(r,e).update(t).digest(i)},md5:function md5(e,t,i){return n.crypto.hash("md5",e,t,i)},sha256:function sha256(e,t,i){return n.crypto.hash("sha256",e,t,i)},hash:function(e,t,i,r){var o=n.crypto.createHash(e);if(!i){i="binary"}if(i==="buffer"){i=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var a=n.arraySliceFn(t);var s=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)s=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!s){t.on("data",function(e){o.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,o.digest(i))})}else if(r&&a&&!s&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))};l.onload=function(){var e=new n.Buffer(new Uint8Array(l.result));o.update(e);u+=e.length;l._continueReading()};l._continueReading=function(){if(u>=t.size){r(null,o.digest(i));return}var e=u+c;if(e>t.size)e=t.size;l.readAsArrayBuffer(a.call(t,u,e))};l._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!s){t=new n.Buffer(new Uint8Array(t))}var d=o.update(t).digest(i);if(r)r(null,d);return d}},toHex:function toHex(e){var t=[];for(var i=0;i=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var i=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")i=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){s++;setTimeout(c,o+(e.retryAfter||0))}else{i(e)}};var c=function(){var t="";o.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){i(null,t)}else{var o=parseInt(e.headers["retry-after"],10)*1e3||0;var a=n.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(o&&a.retryable)a.retryAfter=o;u(a)}})},u)};r.util.defer(c)},uuid:{v4:function uuidV4(){return i(5288).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var i=t.operation;var r=t.service.api.operations[i].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var i=(t||{})[e.operation];if(!i||!i.input||!i.input.payload)return undefined;return i.input.members[i.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var i={};var r={};if(process.env[n.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var o=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var a=0,s=Object.keys(r);a=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},7925:(e,t,i)=>{var r=i(8498);var n=i(2562).XmlNode;var o=i(4971).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,i,r){var o=new n(i);applyNamespaces(o,t,true);serialize(o,e,t);return o.children.length>0||r?o.toString():""};function serialize(e,t,i){switch(i.type){case"structure":return serializeStructure(e,t,i);case"map":return serializeMap(e,t,i);case"list":return serializeList(e,t,i);default:return serializeScalar(e,t,i)}}function serializeStructure(e,t,i){r.arrayEach(i.memberNames,function(r){var o=i.members[r];if(o.location!=="body")return;var a=t[r];var s=o.name;if(a!==undefined&&a!==null){if(o.isXmlAttribute){e.addAttribute(s,a)}else if(o.flattened){serialize(e,a,o)}else{var u=new n(s);e.addChildNode(u);applyNamespaces(u,o);serialize(u,a,o)}}})}function serializeMap(e,t,i){var o=i.key.name||"key";var a=i.value.name||"value";r.each(t,function(t,r){var s=new n(i.flattened?i.name:"entry");e.addChildNode(s);var u=new n(o);var c=new n(a);s.addChildNode(u);s.addChildNode(c);serialize(u,t,i.key);serialize(c,r,i.value)})}function serializeList(e,t,i){if(i.flattened){r.arrayEach(t,function(t){var r=i.member.name||i.name;var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}else{r.arrayEach(t,function(t){var r=i.member.name||"member";var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}}function serializeScalar(e,t,i){e.addChildNode(new o(i.toWireFormat(t)))}function applyNamespaces(e,t,i){var r,n="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(i&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(n,r)}e.exports=XmlBuilder},2746:e=>{function escapeAttribute(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},7471:e=>{function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},3606:(e,t,i)=>{var r=i(2393);var n=r.util;var o=r.Model.Shape;var a=i(6139);var s={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var i=null;var r=null;var o=new a.Parser(s);o.parseString(e,function(e,t){r=e;i=t});if(i){var u=parseXml(i,t);if(i.ResponseMetadata){u.ResponseMetadata=parseXml(i.ResponseMetadata[0],{})}return u}else if(r){throw n.error(r,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var i={};if(e===null)return i;n.each(t.members,function(r,n){var o=n.name;if(Object.prototype.hasOwnProperty.call(e,o)&&Array.isArray(e[o])){var a=e[o];if(!n.flattened)a=a[0];i[r]=parseXml(a,n)}else if(n.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,o)){i[r]=parseScalar(e.$[o],n)}else if(n.type==="list"&&!t.api.xmlNoDefaultLists){i[r]=n.defaultValue}});return i}function parseMap(e,t){var i={};if(e===null)return i;var r=t.key.name||"key";var o=t.value.name||"value";var a=t.flattened?e:e.entry;if(Array.isArray(a)){n.arrayEach(a,function(e){i[e[r][0]]=parseXml(e[o][0],t.value)})}return i}function parseList(e,t){var i=[];var r=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){i.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[r])){n.arrayEach(e[r],function(e){i.push(parseXml(e,t.member))})}return i}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new o.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(r=0;r1){n[o]=parseList(a,{member:{}})}else{n[o]=parseXml(a[0],{})}}return n}e.exports=NodeXmlParser},2562:(e,t,i)=>{var r=i(2746).escapeAttribute;function XmlNode(e,t){if(t===void 0){t=[]}this.name=e;this.children=t;this.attributes={}}XmlNode.prototype.addAttribute=function(e,t){this.attributes[e]=t;return this};XmlNode.prototype.addChildNode=function(e){this.children.push(e);return this};XmlNode.prototype.removeAttribute=function(e){delete this.attributes[e];return this};XmlNode.prototype.toString=function(){var e=Boolean(this.children.length);var t="<"+this.name;var i=this.attributes;for(var n=0,o=Object.keys(i);n":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},4971:(e,t,i)=>{var r=i(7471).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},5288:(e,t,i)=>{var r=i(2128);var n=i(8572);var o=n;o.v1=r;o.v4=n;e.exports=o},7924:e=>{var t=[];for(var i=0;i<256;++i){t[i]=(i+256).toString(16).substr(1)}function bytesToUuid(e,i){var r=i||0;var n=t;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}e.exports=bytesToUuid},5864:(e,t,i)=>{var r=i(6417);e.exports=function nodeRNG(){return r.randomBytes(16)}},2128:(e,t,i)=>{var r=i(5864);var n=i(7924);var o;var a;var s=0;var u=0;function v1(e,t,i){var c=t&&i||0;var l=t||[];e=e||{};var d=e.node||o;var p=e.clockseq!==undefined?e.clockseq:a;if(d==null||p==null){var m=r();if(d==null){d=o=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]}if(p==null){p=a=(m[6]<<8|m[7])&16383}}var h=e.msecs!==undefined?e.msecs:(new Date).getTime();var f=e.nsecs!==undefined?e.nsecs:u+1;var y=h-s+(f-u)/1e4;if(y<0&&e.clockseq===undefined){p=p+1&16383}if((y<0||h>s)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=h;u=f;a=p;h+=122192928e5;var g=((h&268435455)*1e4+f)%4294967296;l[c++]=g>>>24&255;l[c++]=g>>>16&255;l[c++]=g>>>8&255;l[c++]=g&255;var b=h/4294967296*1e4&268435455;l[c++]=b>>>8&255;l[c++]=b&255;l[c++]=b>>>24&15|16;l[c++]=b>>>16&255;l[c++]=p>>>8|128;l[c++]=p&255;for(var v=0;v<6;++v){l[c+v]=d[v]}return t?t:n(l)}e.exports=v1},8572:(e,t,i)=>{var r=i(5864);var n=i(7924);function v4(e,t,i){var o=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||r)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){for(var s=0;s<16;++s){t[o+s]=a[s]}}return t||n(a)}e.exports=v4},9074:(e,t,i)=>{"use strict";var r;r={value:true};var n=i(253);var o=1e3;var a=function(){function EndpointCache(e){if(e===void 0){e=o}this.maxSize=e;this.cache=new n.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var i=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=this.populateValue(t);this.cache.put(i,r)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=Date.now();var r=this.cache.get(t);if(r){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=function(){function LinkedListNode(e,t){this.key=e;this.value=t}return LinkedListNode}();var r=function(){function LRUCache(e){this.nodeMap={};this.size=0;if(typeof e!=="number"||e<1){throw new Error("Cache size can only be positive number")}this.sizeLimit=e}Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this.size},enumerable:true,configurable:true});LRUCache.prototype.prependToList=function(e){if(!this.headerNode){this.tailNode=e}else{this.headerNode.prev=e;e.next=this.headerNode}this.headerNode=e;this.size++};LRUCache.prototype.removeFromTail=function(){if(!this.tailNode){return undefined}var e=this.tailNode;var t=e.prev;if(t){t.next=undefined}e.prev=undefined;this.tailNode=t;this.size--;return e};LRUCache.prototype.detachFromList=function(e){if(this.headerNode===e){this.headerNode=e.next}if(this.tailNode===e){this.tailNode=e.prev}if(e.prev){e.prev.next=e.next}if(e.next){e.next.prev=e.prev}e.next=undefined;e.prev=undefined;this.size--};LRUCache.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);this.prependToList(t);return t.value}};LRUCache.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);delete this.nodeMap[e]}};LRUCache.prototype.put=function(e,t){if(this.nodeMap[e]){this.remove(e)}else if(this.size===this.sizeLimit){var r=this.removeFromTail();var n=r.key;delete this.nodeMap[n]}var o=new i(e,t);this.nodeMap[e]=o;this.prependToList(o)};LRUCache.prototype.empty=function(){var e=Object.keys(this.nodeMap);for(var t=0;t{(function(e){"use strict";function isArray(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Array]"}else{return false}}function isObject(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Object]"}else{return false}}function strictDeepEqual(e,t){if(e===t){return true}var i=Object.prototype.toString.call(e);if(i!==Object.prototype.toString.call(t)){return false}if(isArray(e)===true){if(e.length!==t.length){return false}for(var r=0;r":true,"=":true,"!":true};var z={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var i;var r;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:P,value:">=",start:t}}else{return{type:L,value:">",start:t}}}else if(i==="="){if(e[this._current]==="="){this._current++;return{type:D,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var i=this._current;var r=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(i.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var X={};X[p]=0;X[m]=0;X[h]=0;X[f]=0;X[y]=0;X[g]=0;X[v]=0;X[I]=0;X[C]=0;X[S]=0;X[E]=1;X[T]=2;X[N]=3;X[D]=5;X[L]=5;X[q]=5;X[P]=5;X[M]=5;X[w]=5;X[x]=9;X[A]=20;X[R]=21;X[F]=40;X[O]=45;X[_]=50;X[k]=55;X[U]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==p){var i=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+i.type+", value: "+i.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var i=t.tokenize(e);i.push({type:p,value:"",start:e.length});this.tokens=i},expression:function(e){var t=this._lookaheadToken(0);this._advance();var i=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===k){this._match(k);return this._parseMultiselectList()}else if(t===_){this._match(_);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(X[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===k){t=this.expression(e)}else if(this._lookahead(0)===R){t=this.expression(e)}else if(this._lookahead(0)===F){this._match(F);t=this._parseDotRHS(e)}else{var i=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+i.value+"("+i.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==f){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===f){throw new Error("Unexpected token Rbracket")}}}this._match(f);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[m,h];var i,r,n,o;for(;;){i=this._lookaheadToken(0);if(t.indexOf(i.type)<0){throw new Error("Expecting an identifier token, got: "+i.type)}r=i.value;this._advance();this._match(b);n=this.expression(0);o={type:"KeyValuePair",name:r,value:n};e.push(o);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===v){this._match(v);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var i,r,n,o,a,s,u,c,l,d;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){s=t[e.name];if(s===undefined){return null}else{return s}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(d=1;d0){for(d=f;dy;d+=g){n.push(t[d])}}return n;case"Projection":var b=this.visit(e.children[0],t);if(!isArray(b)){return null}l=[];for(d=0;da;break;case P:n=o>=a;break;case q:n=o=e){t=i<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[i]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[i]}]},contains:{_func:this._functionContains,_signature:[{types:[n,o]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[i]}]},length:{_func:this._functionLength,_signature:[{types:[n,o,a]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[o]}]},max:{_func:this._functionMax,_signature:[{types:[l,d]}]},merge:{_func:this._functionMerge,_signature:[{types:[a],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[o]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[l,d]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[o]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[a]}]},values:{_func:this._functionValues,_signature:[{types:[a]}]},sort:{_func:this._functionSort,_signature:[{types:[d,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[o]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[d]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,o]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var i=this.functionTable[e];if(i===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,i._signature);return i._func.call(this,t)},_validateArgs:function(e,t,i){var r;if(i[i.length-1].variadic){if(t.length=0;o--){r+=i[o]}return r}else{var a=e[0].slice(0);a.reverse();return a}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var i=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var i=this._interpreter;var r=e[0];var n=e[1];for(var o=0;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.max.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.min.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;on){return 1}else if(ia){a=u;s=r[c]}}return s},_functionMinBy:function(e){var t=e[1];var r=e[0];var o=this.createKeyFunction(t,[i,n]);var a=Infinity;var s;var u;for(var c=0;c=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};a=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,i,n;this.options={};i=r["0.2"];for(t in i){if(!s.call(i,t))continue;n=i[t];this.options[t]=n}for(t in e){if(!s.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var i,n,u,c,l;i=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}u=function(e){return function(t,r){var c,l,d,p,m,h;if(typeof r!=="object"){if(e.options.cdata&&o(r)){t.raw(a(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(p in r){if(!s.call(r,p))continue;l=r[p];for(m in l){d=l[m];t=u(t.ele(m),d).up()}}}else{for(m in r){if(!s.call(r,m))continue;l=r[m];if(m===i){if(typeof l==="object"){for(c in l){h=l[c];t=t.att(c,h)}}}else if(m===n){if(e.options.cdata&&o(l)){t=t.raw(a(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(p in l){if(!s.call(l,p))continue;d=l[p];if(typeof d==="string"){if(e.options.cdata&&o(d)){t=t.ele(m).raw(a(d)).up()}else{t=t.ele(m,d).up()}}else{t=u(t.ele(m),d).up()}}}else if(typeof l==="object"){t=u(t.ele(m),l).up()}else{if(typeof l==="string"&&e.options.cdata&&o(l)){t=t.ele(m).raw(a(l)).up()}else{if(l==null){l=""}t=t.ele(m,l.toString()).up()}}}}return t}}(this);c=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},2318:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},904:function(e,t,i){(function(){"use strict";var e,r,n,o,a,s,u,c,l=function(e,t){return function(){return e.apply(t,arguments)}},d=function(e,t){for(var i in t){if(p.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},p={}.hasOwnProperty;u=i(4251);n=i(8614);e=i(2857);s=i(3719);c=i(8213).setImmediate;r=i(2318).defaults;o=function(e){return typeof e==="object"&&e!=null&&Object.keys(e).length===0};a=function(e,t,i){var r,n,o;for(r=0,n=e.length;r0){u[e.options.childkey]=l}l=u}else if(h){h[e.options.childkey]=h[e.options.childkey]||[];d={};for(s in l){if(!p.call(l,s))continue;d[s]=l[s]}h[e.options.childkey].push(d);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(r.length>0){return e.assignOrPush(h,c,l)}else{if(e.options.explicitRoot){m=l;l={};l[c]=m}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);i=function(e){return function(i){var n,o;o=r[r.length-1];if(o){o[t]+=i;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||i.replace(/\\n/g,"").trim()!=="")){o[e.options.childkey]=o[e.options.childkey]||[];n={"#name":"__text__"};n[t]=i;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}o[e.options.childkey].push(n)}return o}}}(this);this.saxParser.ontext=i;return this.saxParser.oncdata=function(e){return function(e){var t;t=i(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,i){var r;if(i!=null&&typeof i==="function"){this.on("end",function(e){this.reset();return i(null,e)});this.on("error",function(e){this.reset();return i(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(n.EventEmitter);t.parseString=function(e,i,r){var n,o,a;if(r!=null){if(typeof r==="function"){n=r}if(typeof i==="object"){o=i}}else{if(typeof i==="function"){n=i}o={}}a=new t.Parser(o);return a.parseString(e,n)}}).call(this)},3719:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},6139:function(e,t,i){(function(){"use strict";var e,r,n,o,a=function(e,t){for(var i in t){if(s.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},s={}.hasOwnProperty;r=i(2318);e=i(1657);n=i(904);o=i(3719);t.defaults=r.defaults;t.processors=o;t.ValidationError=function(e){a(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},4251:(e,t,i)=>{(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,i){if(!(this instanceof SAXParser)){return new SAXParser(t,i)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=i||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=h.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(c)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i))t.push(i);return t}}function checkBufferLength(i){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var o=0,a=t.length;or){switch(t[o]){case"textNode":closeText(i);break;case"cdata":emitNode(i,"oncdata",i.cdata);i.cdata="";break;case"script":emitNode(i,"onscript",i.script);i.script="";break;default:error(i,"Max buffer length exceeded: "+t[o])}}n=Math.max(n,s)}var u=e.MAX_BUFFER_LENGTH-n;i.bufferCheckPosition=u+i.position}function clearBuffers(e){for(var i=0,r=t.length;i"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var h=0;e.STATE={BEGIN:h++,BEGIN_WHITESPACE:h++,TEXT:h++,TEXT_ENTITY:h++,OPEN_WAKA:h++,SGML_DECL:h++,SGML_DECL_QUOTED:h++,DOCTYPE:h++,DOCTYPE_QUOTED:h++,DOCTYPE_DTD:h++,DOCTYPE_DTD_QUOTED:h++,COMMENT_STARTING:h++,COMMENT:h++,COMMENT_ENDING:h++,COMMENT_ENDED:h++,CDATA:h++,CDATA_ENDING:h++,CDATA_ENDING_2:h++,PROC_INST:h++,PROC_INST_BODY:h++,PROC_INST_ENDING:h++,OPEN_TAG:h++,OPEN_TAG_SLASH:h++,ATTRIB:h++,ATTRIB_NAME:h++,ATTRIB_NAME_SAW_WHITE:h++,ATTRIB_VALUE:h++,ATTRIB_VALUE_QUOTED:h++,ATTRIB_VALUE_CLOSED:h++,ATTRIB_VALUE_UNQUOTED:h++,ATTRIB_VALUE_ENTITY_Q:h++,ATTRIB_VALUE_ENTITY_U:h++,CLOSE_TAG:h++,CLOSE_TAG_SAW_WHITE:h++,SCRIPT:h++,SCRIPT_ENDING:h++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t];var r=typeof i==="number"?String.fromCharCode(i):i;e.ENTITIES[t]=r});for(var f in e.STATE){e.STATE[e.STATE[f]]=f}h=e.STATE;function emit(e,t,i){e[t]&&e[t](i)}function emitNode(e,t,i){if(e.textNode)closeText(e);emit(e,t,i)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==h.BEGIN&&e.state!==h.BEGIN_WHITESPACE&&e.state!==h.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var i=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){i.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",i)}function qname(e,t){var i=e.indexOf(":");var r=i<0?["",e]:e.split(":");var n=r[0];var o=r[1];if(t&&e==="xmlns"){n="xmlns";o=""}return{prefix:n,local:o}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var i=t.prefix;var r=t.local;if(i==="xmlns"){if(r==="xml"&&e.attribValue!==s){strictFail(e,"xml: prefix must be bound to "+s+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var o=e.tags[e.tags.length-1]||e;if(n.ns===o.ns){n.ns=Object.create(o.ns)}n.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var i=e.tag;var r=qname(e.tagName);i.prefix=r.prefix;i.local=r.local;i.uri=i.ns[r.prefix]||"";if(i.prefix&&!i.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));i.uri=r.prefix}var n=e.tags[e.tags.length-1]||e;if(i.ns&&n.ns!==i.ns){Object.keys(i.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:i.ns[t]})})}for(var o=0,a=e.attribList.length;o";e.tagName="";e.state=h.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var i=e.tagName;if(!e.strict){i=i[e.looseCase]()}var r=i;while(t--){var n=e.tags[t];if(n.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=h.TEXT;return}e.tagName=i;var o=e.tags.length;while(o-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var u in a.ns){s[u]=a.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&a.ns!==c.ns){Object.keys(a.ns).forEach(function(t){var i=a.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:i})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=h.TEXT}function parseEntity(e){var t=e.entity;var i=t.toLowerCase();var r;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[i]){return e.ENTITIES[i]}t=i;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);n=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);n=r.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(r)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=h.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=h.TEXT}}function charAt(e,t){var i="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=h.TEXT}else if(isQuote(r)){t.state=h.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case h.SGML_DECL_QUOTED:if(r===t.q){t.state=h.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case h.DOCTYPE:if(r===">"){t.state=h.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=h.DOCTYPE_DTD}else if(isQuote(r)){t.state=h.DOCTYPE_QUOTED;t.q=r}}continue;case h.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=h.DOCTYPE}continue;case h.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=h.DOCTYPE}else if(isQuote(r)){t.state=h.DOCTYPE_DTD_QUOTED;t.q=r}continue;case h.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=h.DOCTYPE_DTD;t.q=""}continue;case h.COMMENT:if(r==="-"){t.state=h.COMMENT_ENDING}else{t.comment+=r}continue;case h.COMMENT_ENDING:if(r==="-"){t.state=h.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=h.COMMENT}continue;case h.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=h.COMMENT}else{t.state=h.TEXT}continue;case h.CDATA:if(r==="]"){t.state=h.CDATA_ENDING}else{t.cdata+=r}continue;case h.CDATA_ENDING:if(r==="]"){t.state=h.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=h.CDATA}continue;case h.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=h.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=h.CDATA}continue;case h.PROC_INST:if(r==="?"){t.state=h.PROC_INST_ENDING}else if(isWhitespace(r)){t.state=h.PROC_INST_BODY}else{t.procInstName+=r}continue;case h.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(r)){continue}else if(r==="?"){t.state=h.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case h.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=h.TEXT}else{t.procInstBody+="?"+r;t.state=h.PROC_INST_BODY}continue;case h.OPEN_TAG:if(isMatch(d,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=h.OPEN_TAG_SLASH}else{if(!isWhitespace(r)){strictFail(t,"Invalid character in tag name")}t.state=h.ATTRIB}}continue;case h.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=h.ATTRIB}continue;case h.ATTRIB:if(isWhitespace(r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=h.OPEN_TAG_SLASH}else if(isMatch(l,r)){t.attribName=r;t.attribValue="";t.state=h.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case h.ATTRIB_NAME:if(r==="="){t.state=h.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(r)){t.state=h.ATTRIB_NAME_SAW_WHITE}else if(isMatch(d,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case h.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=h.ATTRIB_VALUE}else if(isWhitespace(r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(isMatch(l,r)){t.attribName=r;t.state=h.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=h.ATTRIB}}continue;case h.ATTRIB_VALUE:if(isWhitespace(r)){continue}else if(isQuote(r)){t.q=r;t.state=h.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=h.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case h.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=h.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=h.ATTRIB_VALUE_CLOSED;continue;case h.ATTRIB_VALUE_CLOSED:if(isWhitespace(r)){t.state=h.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=h.OPEN_TAG_SLASH}else if(isMatch(l,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=h.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case h.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(r)){if(r==="&"){t.state=h.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=h.ATTRIB}continue;case h.CLOSE_TAG:if(!t.tagName){if(isWhitespace(r)){continue}else if(notMatch(l,r)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(d,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case h.TEXT_ENTITY:case h.ATTRIB_VALUE_ENTITY_Q:case h.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case h.TEXT_ENTITY:u=h.TEXT;c="textNode";break;case h.ATTRIB_VALUE_ENTITY_Q:u=h.ATTRIB_VALUE_QUOTED;c="attribValue";break;case h.ATTRIB_VALUE_ENTITY_U:u=h.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(r===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?m:p,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+r;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var i=function(){var i=16384;var r=[];var n;var o;var a=-1;var s=arguments.length;if(!s){return""}var u="";while(++a1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){r.push(c)}else{c-=65536;n=(c>>10)+55296;o=c%1024+56320;r.push(n,o)}if(a+1===s||r.length>i){u+=e.apply(null,r);r.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:i,configurable:true,writable:true})}else{String.fromCodePoint=i}})()}})(false?0:t)},7600:function(e){(function(){var t,i,r,n,o,a,s=[].slice,u={}.hasOwnProperty;t=function(){var e,t,i,r,o,a;a=arguments[0],o=2<=arguments.length?s.call(arguments,1):[];if(n(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,i=o.length;e=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof p){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,i){return this.declaration(e,t,i)};XMLDocumentCB.prototype.dtd=function(e,t,i){return this.doctype(e,t,i)};XMLDocumentCB.prototype.e=function(e,t,i){return this.element(e,t,i)};XMLDocumentCB.prototype.n=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},7961:function(e,t,i){(function(){var t,r,n,o,a,s,u=function(e,t){for(var i in t){if(c.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;s=i(7600),a=s.isObject,o=s.isFunction;n=i(5542);t=i(8444);e.exports=r=function(e){u(XMLElement,e);function XMLElement(e,t,i){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(i!=null){this.attribute(i)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,i,r;i=Object.create(this);if(i.isRoot){i.documentObject=null}i.attributes={};r=this.attributes;for(t in r){if(!c.call(r,t))continue;e=r[t];i.attributes[t]=e.clone()}i.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=i;return i.children.push(t)});return i};XMLElement.prototype.attribute=function(e,i){var r,n;if(e!=null){e=e.valueOf()}if(a(e)){for(r in e){if(!c.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(o(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.attributes[e]=new t(this,e,i)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,i,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(i=0,r=e.length;i"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,i){var u,c,l,p;i||(i=0);this.stream.write(this.space(i));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));p=e.children;for(c=0,l=p.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,f;i||(i=0);f=this.space(i);this.stream.write(f+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);m=e.children;for(a=0,s=m.length;a")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(f)}).call(this)},8449:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,h,f,y=function(e,t){for(var i in t){if(g.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=i(4086);c=i(7441);t=i(9244);r=i(2414);l=i(7961);p=i(4414);h=i(7958);d=i(5262);n=i(465);o=i(481);a=i(8499);s=i(2500);f=i(2473);e.exports=m=function(e){y(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,i,n,o,a;this.textispresent=false;o="";a=e.children;for(i=0,n=a.length;i"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var i;i=this.space(t);i+='";i+=this.newline;return i};XMLStringWriter.prototype.docType=function(e,i){var u,c,l,p,m;i||(i=0);p=this.space(i);p+="0){p+=" [";p+=this.newline;m=e.children;for(c=0,l=m.length;c";p+=this.newline;return p};XMLStringWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,f,y,b,v,I,C;i||(i=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}I=this.space(i);f="";f+=I+"<"+e.name;y=e.attributes;for(m in y){if(!g.call(y,m))continue;n=y[m];f+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){f+=">"+this.newline}else{f+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){f+=">";f+=e.children[0].value;f+=""+this.newline}else{if(this.dontprettytextnodes){b=e.children;for(a=0,u=b.length;a"+this.newline;v=e.children;for(s=0,c=v.length;s"+this.newline}return f};XMLStringWriter.prototype.processingInstruction=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdNotation=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.openNode=function(e,t){var i,r,n,o;t||(t=0);if(e instanceof l){n=this.space(t)+"<"+e.name;o=e.attributes;for(r in o){if(!g.call(o,r))continue;i=o[r];n+=this.attribute(i)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(f)}).call(this)},2627:function(e){(function(){var t,i=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=i(this.assertLegalChar,this);var t,n,o;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!r.call(n,t))continue;o=n[t];this[t]=o}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},4970:function(e,t,i){(function(){var t,r,n,o,a,s,u;u=i(7600),a=u.assign,s=u.isFunction;t=i(5071);r=i(1591);o=i(8449);n=i(2910);e.exports.create=function(e,i,r,n){var o,s;if(e==null){throw new Error("Root element needs a name")}n=a({},i,r,n);o=new t(n);s=o.element(e);if(!n.headless){o.declaration(n);if(n.pubID!=null||n.sysID!=null){o.doctype(n)}}return s};e.exports.begin=function(e,i,n){var o;if(s(e)){o=[e,i],i=o[0],n=o[1];e={}}if(i){return new r(e,i,n)}else{return new t(e)}};e.exports.stringWriter=function(e){return new o(e)};e.exports.streamWriter=function(e,t){return new n(e,t)}}).call(this)},8746:(e,t,i)=>{"use strict";i.r(t);i.d(t,{default:()=>u});var r=i(5316);var n=i.n(r);var o=i(3764);var a=i.n(o);const s=async()=>{try{const e=r.getInput("distribution-id",{required:true});const t=r.getInput("caller-reference",{required:false});const i=r.getInput("paths",{required:false}).trim().split(/\r?[\n,]/);const n={DistributionId:e,InvalidationBatch:{CallerReference:t,Paths:{Quantity:i.length,Items:i}}};const a=new o({apiVersion:"2019-03-26",customUserAgent:"aws-github-actions-cloudfront"});const s=await a.createInvalidation(n).promise();const u=s.Invalidation.Id;r.setOutput("invalidation-id",u)}catch(e){r.setFailed(e.message)}};s();const u=s},1991:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2016-11-25","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2016-11-25"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2016-11-25/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2016-11-25/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2016-11-25/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S21"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateInvalidation":{"http":{"requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S28","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2016-11-25/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2016-11-25/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S2e"},"Tags":{"shape":"S21"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2016-11-25/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2016-11-25/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2016-11-25/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2016-11-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S2e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2016-11-25/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3a"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2016-11-25/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3a"}},"payload":"DistributionList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2016-11-25/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2016-11-25/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S21"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2016-11-25/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S21","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2016-11-25/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2016-11-25/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2016-11-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","members":{"LambdaFunctionARN":{},"EventType":{}}}}}},"S1a":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}}}}},"S1d":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1i":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1m":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1s":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"DistributionConfig":{"shape":"S7"}}},"S1u":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S21":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S28":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2c":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S28"}}},"S2e":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S2f":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S2i":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"StreamingDistributionConfig":{"shape":"S2e"}}},"S3a":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},7866:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","output_token":"DistributionList.NextMarker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","output_token":"InvalidationList.NextMarker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","output_token":"StreamingDistributionList.NextMarker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","result_key":"StreamingDistributionList.Items"}}}')},4389:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},6937:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2017-03-25","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2017-03-25"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2017-03-25/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2017-03-25/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2017-03-25/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S21"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateInvalidation":{"http":{"requestUri":"/2017-03-25/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S28","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2017-03-25/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2017-03-25/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S2e"},"Tags":{"shape":"S21"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2017-03-25/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteServiceLinkedRole":{"http":{"method":"DELETE","requestUri":"/2017-03-25/service-linked-role/{RoleName}","responseCode":204},"input":{"type":"structure","required":["RoleName"],"members":{"RoleName":{"location":"uri","locationName":"RoleName"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2017-03-25/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2017-03-25/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-03-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S2e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2017-03-25/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3b"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2017-03-25/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3b"}},"payload":"DistributionList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2017-03-25/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2017-03-25/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S21"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2017-03-25/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S21","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2017-03-25/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2017-03-25/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2017-03-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","members":{"LambdaFunctionARN":{},"EventType":{}}}}}},"S1a":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}}}}},"S1d":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1i":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1m":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1s":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"DistributionConfig":{"shape":"S7"}}},"S1u":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S21":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S28":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2c":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S28"}}},"S2e":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S2f":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S2i":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"StreamingDistributionConfig":{"shape":"S2e"}}},"S3b":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},8525:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},2554:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},1182:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2017-10-30","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2017-10-30"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2017-10-30/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2017-10-30/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2017-10-30/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S22"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2017-10-30/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2017-10-30/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2017-10-30/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S2v","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2017-10-30/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2017-10-30/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2017-10-30/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S35"},"Tags":{"shape":"S22"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2017-10-30/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2017-10-30/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2017-10-30/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2017-10-30/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S29"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2017-10-30/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S31"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2017-10-30/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S35"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2017-10-30/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2017-10-30/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S2n"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2017-10-30/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2017-10-30/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2017-10-30/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S22"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2017-10-30/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S22","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2017-10-30/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2017-10-30/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2017-10-30/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2017-10-30/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2017-10-30/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{}}}}}},"S1b":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}}}}},"S1e":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1j":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1n":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1t":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"DistributionConfig":{"shape":"S7"}}},"S1v":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S22":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S29":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}},"S2a":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2e":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2k":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S29"}}},"S2m":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S2n"}}},"S2n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S2t":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2m"}}},"S2v":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2z":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S2v"}}},"S31":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S33":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S31"}}},"S35":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S36":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S39":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"StreamingDistributionConfig":{"shape":"S35"}}},"S4g":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},7640:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},6380:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},8841:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2018-06-18","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2018-06-18"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2018-06-18/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2018-06-18/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2018-06-18/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S22"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2018-06-18/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2018-06-18/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S2v","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2018-06-18/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2018-06-18/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2018-06-18/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S35"},"Tags":{"shape":"S22"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2018-06-18/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2018-06-18/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2018-06-18/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2018-06-18/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S29"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2018-06-18/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S31"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2018-06-18/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S35"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2018-06-18/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2018-06-18/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S2n"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2018-06-18/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2018-06-18/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2018-06-18/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S22"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2018-06-18/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S22","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2018-06-18/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2018-06-18/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2018-06-18/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2018-06-18/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2018-06-18/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1b":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}}}}},"S1e":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1j":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1n":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1t":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"DistributionConfig":{"shape":"S7"}}},"S1v":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S22":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S29":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}},"S2a":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2e":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2k":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S29"}}},"S2m":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S2n"}}},"S2n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S2t":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2m"}}},"S2v":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2z":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S2v"}}},"S31":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S33":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S31"}}},"S35":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S36":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S39":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"StreamingDistributionConfig":{"shape":"S35"}}},"S4g":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},6242:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},7014:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},5232:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2018-11-05","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2018-11-05"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2018-11-05/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2018-11-05/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2018-11-05/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S2b"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2018-11-05/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2i","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2018-11-05/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2v","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S32"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S34","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S38"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2018-11-05/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S3a","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3c"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2018-11-05/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S3e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2018-11-05/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S3e"},"Tags":{"shape":"S2b"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2018-11-05/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2018-11-05/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2018-11-05/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2018-11-05/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S32"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2v"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S38"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2018-11-05/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3c"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S3a"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2018-11-05/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S3e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2018-11-05/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4p"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2018-11-05/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4p"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2j"},"ContentTypeProfileConfig":{"shape":"S2n"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S2w"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2018-11-05/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2018-11-05/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S3f"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"S17"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2018-11-05/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S2b"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2018-11-05/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S2b","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2018-11-05/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2018-11-05/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2018-11-05/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2i","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2v","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S32"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2018-11-05/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S3a","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3c"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2018-11-05/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S3e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1s"},"Restrictions":{"shape":"S1w"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroup","type":"structure","required":["Id","FailoverCriteria","Members"],"members":{"Id":{},"FailoverCriteria":{"type":"structure","required":["StatusCodes"],"members":{"StatusCodes":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StatusCode","type":"integer"}}}}}},"Members":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroupMember","type":"structure","required":["OriginId"],"members":{"OriginId":{}}}}}}}}}}},"Sw":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}},"Sx":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"S17":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S1b":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"}}}}},"S1c":{"type":"list","member":{"locationName":"Method"}},"S1f":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1k":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}}}}},"S1n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1s":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1w":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S22":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S24"},"DistributionConfig":{"shape":"S7"}}},"S24":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S2b":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S2i":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2j"},"ContentTypeProfileConfig":{"shape":"S2n"}}},"S2j":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2n":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2t":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S2i"}}},"S2v":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S2w"}}},"S2w":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S32":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2v"}}},"S34":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S38":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S34"}}},"S3a":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S3c":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S3a"}}},"S3e":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S3f"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"S17"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S3f":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S3i":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S24"},"StreamingDistributionConfig":{"shape":"S3e"}}},"S4p":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1s"},"Restrictions":{"shape":"S1w"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},9610:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},62:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},7637:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2019-03-26","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2019-03-26"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2019-03-26/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2019-03-26/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2019-03-26/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S2f"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2019-03-26/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2x"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2019-03-26/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S36"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2019-03-26/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S38","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S3c"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2019-03-26/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S3e","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3g"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2019-03-26/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S3i","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2019-03-26/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S3i"},"Tags":{"shape":"S2f"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2019-03-26/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2019-03-26/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2019-03-26/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2019-03-26/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2x"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S2m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S36"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2z"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S3c"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2019-03-26/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3g"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S3e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2019-03-26/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S3i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2019-03-26/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4t"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2019-03-26/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4t"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2n"},"ContentTypeProfileConfig":{"shape":"S2r"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S30"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2019-03-26/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2019-03-26/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S3j"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"S17"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2019-03-26/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S2f"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2019-03-26/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S2f","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2019-03-26/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2019-03-26/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2019-03-26/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2x"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S36"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2019-03-26/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S3e","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3g"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2019-03-26/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S3i","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{"type":"string","sensitive":true},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1t"},"Restrictions":{"shape":"S1x"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}},"ConnectionAttempts":{"type":"integer"},"ConnectionTimeout":{"type":"integer"}}}}}},"Sn":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroup","type":"structure","required":["Id","FailoverCriteria","Members"],"members":{"Id":{},"FailoverCriteria":{"type":"structure","required":["StatusCodes"],"members":{"StatusCodes":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StatusCode","type":"integer"}}}}}},"Members":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroupMember","type":"structure","required":["OriginId"],"members":{"OriginId":{}}}}}}}}}}},"Sw":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}},"Sx":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"S17":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S1b":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"}}}}},"S1c":{"type":"list","member":{"locationName":"Method"}},"S1f":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1k":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}}}}},"S1n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1t":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1x":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S23":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S25"},"DistributionConfig":{"shape":"S7"},"AliasICPRecordals":{"shape":"S2a"}}},"S25":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S2a":{"type":"list","member":{"locationName":"AliasICPRecordal","type":"structure","members":{"CNAME":{},"ICPRecordalStatus":{}}}},"S2f":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S2m":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2n"},"ContentTypeProfileConfig":{"shape":"S2r"}}},"S2n":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2r":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2x":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S2m"}}},"S2z":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S30"}}},"S30":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S36":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2z"}}},"S38":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S3c":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S38"}}},"S3e":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S3g":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S3e"}}},"S3i":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S3j"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"S17"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S3j":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S3m":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S25"},"StreamingDistributionConfig":{"shape":"S3i"}}},"S4t":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1t"},"Restrictions":{"shape":"S1x"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"},"AliasICPRecordals":{"shape":"S2a"}}}}}}}}')},3873:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},1002:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":35,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},7210:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2020-05-31","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2020-05-31"},"operations":{"CreateCachePolicy":{"http":{"requestUri":"/2020-05-31/cache-policy","responseCode":201},"input":{"type":"structure","required":["CachePolicyConfig"],"members":{"CachePolicyConfig":{"shape":"S2","locationName":"CachePolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"CachePolicyConfig"},"output":{"type":"structure","members":{"CachePolicy":{"shape":"Sl"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicy"}},"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2020-05-31/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"So","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"Sq"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2020-05-31/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"Ss","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2020-05-31/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"Ss"},"Tags":{"shape":"S2s"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2020-05-31/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S3a"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2020-05-31/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S3c","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S3j"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S3l","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S3p"}},"payload":"Invalidation"}},"CreateMonitoringSubscription":{"http":{"requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},"input":{"type":"structure","required":["MonitoringSubscription","DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"MonitoringSubscription":{"shape":"S3r","locationName":"MonitoringSubscription","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"MonitoringSubscription"},"output":{"type":"structure","members":{"MonitoringSubscription":{"shape":"S3r"}},"payload":"MonitoringSubscription"}},"CreateOriginRequestPolicy":{"http":{"requestUri":"/2020-05-31/origin-request-policy","responseCode":201},"input":{"type":"structure","required":["OriginRequestPolicyConfig"],"members":{"OriginRequestPolicyConfig":{"shape":"S3w","locationName":"OriginRequestPolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"OriginRequestPolicyConfig"},"output":{"type":"structure","members":{"OriginRequestPolicy":{"shape":"S44"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicy"}},"CreatePublicKey":{"http":{"requestUri":"/2020-05-31/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S46","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S48"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/realtime-log-config","responseCode":201},"input":{"locationName":"CreateRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","required":["EndPoints","Fields","Name","SamplingRate"],"members":{"EndPoints":{"shape":"S4a"},"Fields":{"shape":"S4d"},"Name":{},"SamplingRate":{"type":"long"}}},"output":{"type":"structure","members":{"RealtimeLogConfig":{"shape":"S4f"}}}},"CreateStreamingDistribution":{"http":{"requestUri":"/2020-05-31/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S4h","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2020-05-31/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S4h"},"Tags":{"shape":"S2s"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCachePolicy":{"http":{"method":"DELETE","requestUri":"/2020-05-31/cache-policy/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2020-05-31/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2020-05-31/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteMonitoringSubscription":{"http":{"method":"DELETE","requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"}}},"output":{"type":"structure","members":{}}},"DeleteOriginRequestPolicy":{"http":{"method":"DELETE","requestUri":"/2020-05-31/origin-request-policy/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2020-05-31/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/delete-realtime-log-config/","responseCode":204},"input":{"locationName":"DeleteRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Name":{},"ARN":{}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2020-05-31/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCachePolicy":{"http":{"method":"GET","requestUri":"/2020-05-31/cache-policy/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CachePolicy":{"shape":"Sl"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicy"}},"GetCachePolicyConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/cache-policy/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CachePolicyConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicyConfig"}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"Sq"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"So"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"Ss"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S3a"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S2z"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S3j"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S3c"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S3p"}},"payload":"Invalidation"}},"GetMonitoringSubscription":{"http":{"method":"GET","requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"}}},"output":{"type":"structure","members":{"MonitoringSubscription":{"shape":"S3r"}},"payload":"MonitoringSubscription"}},"GetOriginRequestPolicy":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-request-policy/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"OriginRequestPolicy":{"shape":"S44"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicy"}},"GetOriginRequestPolicyConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-request-policy/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"OriginRequestPolicyConfig":{"shape":"S3w"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicyConfig"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2020-05-31/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S48"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S46"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/get-realtime-log-config/"},"input":{"locationName":"GetRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Name":{},"ARN":{}}},"output":{"type":"structure","members":{"RealtimeLogConfig":{"shape":"S4f"}}}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2020-05-31/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S4h"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCachePolicies":{"http":{"method":"GET","requestUri":"/2020-05-31/cache-policy"},"input":{"type":"structure","members":{"Type":{"location":"querystring","locationName":"Type"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CachePolicyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CachePolicySummary","type":"structure","required":["Type","CachePolicy"],"members":{"Type":{},"CachePolicy":{"shape":"Sl"}}}}}}},"payload":"CachePolicyList"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S6f"}},"payload":"DistributionList"}},"ListDistributionsByCachePolicyId":{"http":{"method":"GET","requestUri":"/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}"},"input":{"type":"structure","required":["CachePolicyId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"CachePolicyId":{"location":"uri","locationName":"CachePolicyId"}}},"output":{"type":"structure","members":{"DistributionIdList":{"shape":"S6k"}},"payload":"DistributionIdList"}},"ListDistributionsByOriginRequestPolicyId":{"http":{"method":"GET","requestUri":"/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}"},"input":{"type":"structure","required":["OriginRequestPolicyId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"OriginRequestPolicyId":{"location":"uri","locationName":"OriginRequestPolicyId"}}},"output":{"type":"structure","members":{"DistributionIdList":{"shape":"S6k"}},"payload":"DistributionIdList"}},"ListDistributionsByRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/distributionsByRealtimeLogConfig/"},"input":{"locationName":"ListDistributionsByRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Marker":{},"MaxItems":{},"RealtimeLogConfigName":{},"RealtimeLogConfigArn":{}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S6f"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2020-05-31/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S6f"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S30"},"ContentTypeProfileConfig":{"shape":"S34"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S3d"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListOriginRequestPolicies":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-request-policy"},"input":{"type":"structure","members":{"Type":{"location":"querystring","locationName":"Type"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"OriginRequestPolicyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginRequestPolicySummary","type":"structure","required":["Type","OriginRequestPolicy"],"members":{"Type":{},"OriginRequestPolicy":{"shape":"S44"}}}}}}},"payload":"OriginRequestPolicyList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2020-05-31/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListRealtimeLogConfigs":{"http":{"method":"GET","requestUri":"/2020-05-31/realtime-log-config"},"input":{"type":"structure","members":{"MaxItems":{"location":"querystring","locationName":"MaxItems"},"Marker":{"location":"querystring","locationName":"Marker"}}},"output":{"type":"structure","members":{"RealtimeLogConfigs":{"type":"structure","required":["MaxItems","IsTruncated","Marker"],"members":{"MaxItems":{"type":"integer"},"Items":{"type":"list","member":{"shape":"S4f"}},"IsTruncated":{"type":"boolean"},"Marker":{},"NextMarker":{}}}},"payload":"RealtimeLogConfigs"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2020-05-31/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S4i"},"Aliases":{"shape":"St"},"TrustedSigners":{"shape":"S1h"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2020-05-31/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S2s"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2020-05-31/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S2s","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2020-05-31/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCachePolicy":{"http":{"method":"PUT","requestUri":"/2020-05-31/cache-policy/{Id}"},"input":{"type":"structure","required":["CachePolicyConfig","Id"],"members":{"CachePolicyConfig":{"shape":"S2","locationName":"CachePolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CachePolicyConfig"},"output":{"type":"structure","members":{"CachePolicy":{"shape":"Sl"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicy"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"So","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"Sq"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2020-05-31/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"Ss","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2020-05-31/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S3a"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S3c","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S3j"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdateOriginRequestPolicy":{"http":{"method":"PUT","requestUri":"/2020-05-31/origin-request-policy/{Id}"},"input":{"type":"structure","required":["OriginRequestPolicyConfig","Id"],"members":{"OriginRequestPolicyConfig":{"shape":"S3w","locationName":"OriginRequestPolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"OriginRequestPolicyConfig"},"output":{"type":"structure","members":{"OriginRequestPolicy":{"shape":"S44"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicy"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2020-05-31/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S46","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S48"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateRealtimeLogConfig":{"http":{"method":"PUT","requestUri":"/2020-05-31/realtime-log-config/"},"input":{"locationName":"UpdateRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"EndPoints":{"shape":"S4a"},"Fields":{"shape":"S4d"},"Name":{},"ARN":{},"SamplingRate":{"type":"long"}}},"output":{"type":"structure","members":{"RealtimeLogConfig":{"shape":"S4f"}}}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2020-05-31/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S4h","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["Name","MinTTL"],"members":{"Comment":{},"Name":{},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"MinTTL":{"type":"long"},"ParametersInCacheKeyAndForwardedToOrigin":{"type":"structure","required":["EnableAcceptEncodingGzip","HeadersConfig","CookiesConfig","QueryStringsConfig"],"members":{"EnableAcceptEncodingGzip":{"type":"boolean"},"EnableAcceptEncodingBrotli":{"type":"boolean"},"HeadersConfig":{"type":"structure","required":["HeaderBehavior"],"members":{"HeaderBehavior":{},"Headers":{"shape":"S9"}}},"CookiesConfig":{"type":"structure","required":["CookieBehavior"],"members":{"CookieBehavior":{},"Cookies":{"shape":"Se"}}},"QueryStringsConfig":{"type":"structure","required":["QueryStringBehavior"],"members":{"QueryStringBehavior":{},"QueryStrings":{"shape":"Si"}}}}}}},"S9":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"Se":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"Si":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"Sl":{"type":"structure","required":["Id","LastModifiedTime","CachePolicyConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"CachePolicyConfig":{"shape":"S2"}}},"So":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"Sq":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"So"}}},"Ss":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"St"},"DefaultRootObject":{},"Origins":{"shape":"Sv"},"OriginGroups":{"shape":"S17"},"DefaultCacheBehavior":{"shape":"S1g"},"CacheBehaviors":{"shape":"S1y"},"CustomErrorResponses":{"shape":"S21"},"Comment":{"type":"string","sensitive":true},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S27"},"Restrictions":{"shape":"S2b"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"St":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sv":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}},"ConnectionAttempts":{"type":"integer"},"ConnectionTimeout":{"type":"integer"}}}}}},"S17":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroup","type":"structure","required":["Id","FailoverCriteria","Members"],"members":{"Id":{},"FailoverCriteria":{"type":"structure","required":["StatusCodes"],"members":{"StatusCodes":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StatusCode","type":"integer"}}}}}},"Members":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroupMember","type":"structure","required":["OriginId"],"members":{"OriginId":{}}}}}}}}}}},"S1g":{"type":"structure","required":["TargetOriginId","TrustedSigners","ViewerProtocolPolicy"],"members":{"TargetOriginId":{},"TrustedSigners":{"shape":"S1h"},"ViewerProtocolPolicy":{},"AllowedMethods":{"shape":"S1k"},"SmoothStreaming":{"type":"boolean"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1o"},"FieldLevelEncryptionId":{},"RealtimeLogConfigArn":{},"CachePolicyId":{},"OriginRequestPolicyId":{},"ForwardedValues":{"shape":"S1t","deprecated":true},"MinTTL":{"deprecated":true,"type":"long"},"DefaultTTL":{"deprecated":true,"type":"long"},"MaxTTL":{"deprecated":true,"type":"long"}}},"S1h":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S1k":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1l"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1l"}}}}},"S1l":{"type":"list","member":{"locationName":"Method"}},"S1o":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1t":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"shape":"Se"}}},"Headers":{"shape":"S9"},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"S1y":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","TrustedSigners","ViewerProtocolPolicy"],"members":{"PathPattern":{},"TargetOriginId":{},"TrustedSigners":{"shape":"S1h"},"ViewerProtocolPolicy":{},"AllowedMethods":{"shape":"S1k"},"SmoothStreaming":{"type":"boolean"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1o"},"FieldLevelEncryptionId":{},"RealtimeLogConfigArn":{},"CachePolicyId":{},"OriginRequestPolicyId":{},"ForwardedValues":{"shape":"S1t","deprecated":true},"MinTTL":{"deprecated":true,"type":"long"},"DefaultTTL":{"deprecated":true,"type":"long"},"MaxTTL":{"deprecated":true,"type":"long"}}}}}},"S21":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S27":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S2b":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S2h":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S2i"},"DistributionConfig":{"shape":"Ss"},"AliasICPRecordals":{"shape":"S2n"}}},"S2i":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S2n":{"type":"list","member":{"locationName":"AliasICPRecordal","type":"structure","members":{"CNAME":{},"ICPRecordalStatus":{}}}},"S2s":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S2z":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S30"},"ContentTypeProfileConfig":{"shape":"S34"}}},"S30":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S34":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S3a":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S2z"}}},"S3c":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S3d"}}},"S3d":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S3j":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S3c"}}},"S3l":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S3p":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S3l"}}},"S3r":{"type":"structure","members":{"RealtimeMetricsSubscriptionConfig":{"type":"structure","required":["RealtimeMetricsSubscriptionStatus"],"members":{"RealtimeMetricsSubscriptionStatus":{}}}}},"S3w":{"type":"structure","required":["Name","HeadersConfig","CookiesConfig","QueryStringsConfig"],"members":{"Comment":{},"Name":{},"HeadersConfig":{"type":"structure","required":["HeaderBehavior"],"members":{"HeaderBehavior":{},"Headers":{"shape":"S9"}}},"CookiesConfig":{"type":"structure","required":["CookieBehavior"],"members":{"CookieBehavior":{},"Cookies":{"shape":"Se"}}},"QueryStringsConfig":{"type":"structure","required":["QueryStringBehavior"],"members":{"QueryStringBehavior":{},"QueryStrings":{"shape":"Si"}}}}},"S44":{"type":"structure","required":["Id","LastModifiedTime","OriginRequestPolicyConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"OriginRequestPolicyConfig":{"shape":"S3w"}}},"S46":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S48":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S46"}}},"S4a":{"type":"list","member":{"type":"structure","required":["StreamType"],"members":{"StreamType":{},"KinesisStreamConfig":{"type":"structure","required":["RoleARN","StreamARN"],"members":{"RoleARN":{},"StreamARN":{}}}}}},"S4d":{"type":"list","member":{"locationName":"Field"}},"S4f":{"type":"structure","required":["ARN","Name","SamplingRate","EndPoints","Fields"],"members":{"ARN":{},"Name":{},"SamplingRate":{"type":"long"},"EndPoints":{"shape":"S4a"},"Fields":{"shape":"S4d"}}},"S4h":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S4i"},"Aliases":{"shape":"St"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"S1h"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S4i":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S4l":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S2i"},"StreamingDistributionConfig":{"shape":"S4h"}}},"S6f":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"St"},"Origins":{"shape":"Sv"},"OriginGroups":{"shape":"S17"},"DefaultCacheBehavior":{"shape":"S1g"},"CacheBehaviors":{"shape":"S1y"},"CustomErrorResponses":{"shape":"S21"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S27"},"Restrictions":{"shape":"S2b"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"},"AliasICPRecordals":{"shape":"S2n"}}}}}},"S6k":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionId"}}}}}}')},9240:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},7639:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":35,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},2271:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}}},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}}},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}}}}')},9007:e=>{"use strict";e.exports={o:{}}},5847:e=>{"use strict";e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena"},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2"},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"}}')},3966:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sh":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sm":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},9227:e=>{"use strict";e.exports={o:{}}},4223:e=>{"use strict";e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"}}}')},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},6417:e=>{"use strict";e.exports=require("crypto")},6200:e=>{"use strict";e.exports=require("dgram")},5229:e=>{"use strict";e.exports=require("domain")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1191:e=>{"use strict";e.exports=require("querystring")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(i){if(t[i]){return t[i].exports}var r=t[i]={exports:{}};var n=true;try{e[i].call(r.exports,r,r.exports,__webpack_require__);n=false}finally{if(n)delete t[i]}return r.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var i in t){if(__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)){Object.defineProperty(e,i,{enumerable:true,get:t[i]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(8746)})(); \ No newline at end of file diff --git a/packages/cloudfront_invalidate/index.ts b/cloudfront_invalidate/index.ts similarity index 100% rename from packages/cloudfront_invalidate/index.ts rename to cloudfront_invalidate/index.ts diff --git a/packages/cloudfront_invalidate/package.json b/cloudfront_invalidate/package.json similarity index 100% rename from packages/cloudfront_invalidate/package.json rename to cloudfront_invalidate/package.json diff --git a/packages/iam_access_credentials/CHANGELOG.md b/iam_access_credentials/CHANGELOG.md similarity index 100% rename from packages/iam_access_credentials/CHANGELOG.md rename to iam_access_credentials/CHANGELOG.md diff --git a/packages/iam_access_credentials/README.md b/iam_access_credentials/README.md similarity index 91% rename from packages/iam_access_credentials/README.md rename to iam_access_credentials/README.md index 4b3f48c..bd3f08f 100644 --- a/packages/iam_access_credentials/README.md +++ b/iam_access_credentials/README.md @@ -13,7 +13,7 @@ The `iam_access_credentials` GitHub action will configure the workflow environme ## Usage ```yml -- uses: clowdhaus/aws-github-actions/packages/iam_access_credentials@v0.4 +- uses: clowdhaus/aws-github-actions/iam_access_credentials@master with: # AWS Region to send the request to. If defined, this environment variable overrides # the value for the profile setting region @@ -62,7 +62,7 @@ The `iam_access_credentials` GitHub action will configure the workflow environme ### Standard setup of access credentials from GitHub secrets ```yml -- uses: clowdhaus/aws-github-actions/packages/iam_access_credentials@v0.4 +- uses: clowdhaus/aws-github-actions/iam_access_credentials@master with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -72,7 +72,7 @@ The `iam_access_credentials` GitHub action will configure the workflow environme ### Use credentials from assumed IAM role ```yml -- uses: clowdhaus/aws-github-actions/packages/s3_sync@v0.4 +- uses: clowdhaus/aws-github-actions/s3_sync@master with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -84,7 +84,7 @@ The `iam_access_credentials` GitHub action will configure the workflow environme ### Use credentials from assumed IAM role with external ID ```yml -- uses: clowdhaus/aws-github-actions/packages/s3_sync@v0.4 +- uses: clowdhaus/aws-github-actions/s3_sync@master with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/packages/iam_access_credentials/action.yml b/iam_access_credentials/action.yml similarity index 100% rename from packages/iam_access_credentials/action.yml rename to iam_access_credentials/action.yml diff --git a/iam_access_credentials/dist/index.js b/iam_access_credentials/dist/index.js new file mode 100644 index 0000000..43532a1 --- /dev/null +++ b/iam_access_credentials/dist/index.js @@ -0,0 +1 @@ +module.exports=(()=>{var e={9190:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(r(2087));const s=r(2861);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},5316:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(9190);const o=r(3685);const a=r(2861);const u=n(r(2087));const c=n(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;o.issueCommand("ENV",i)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},3685:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(r(5747));const s=i(r(2087));const o=r(2861);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}n.appendFileSync(r,`${o.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},2861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},1294:(e,t,r)=>{r(8492);var i=r(2393);var n=i.Service;var s=i.apiLoader;s.services["cognitoidentity"]={};i.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);r(4879);Object.defineProperty(s.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=r(2271);e.paginators=r(9007).o;return e},enumerable:true,configurable:true});e.exports=i.CognitoIdentity},2726:(e,t,r)=>{r(8492);var i=r(2393);var n=i.Service;var s=i.apiLoader;s.services["sts"]={};i.STS=n.defineService("sts",["2011-06-15"]);r(9948);Object.defineProperty(s.services["sts"],"2011-06-15",{get:function get(){var e=r(3966);e.paginators=r(9227).o;return e},enumerable:true,configurable:true});e.exports=i.STS},8399:e=>{function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},5191:(e,t,r)=>{var i=r(2393);r(6936);r(4373);var n;i.Config=i.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);i.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function getCredentials(e){var t=this;function finish(r){e(r,r?null:t.credentials)}function credError(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var r="Could not load credentials from "+t.credentials.constructor.name;e=credError(r,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,r){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=r;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);i.util.each.call(this,e,function(e,r){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e)){this.set(e,r)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(i.util.readFileSync(e));var r=new i.FileSystemCredentials(e);var n=new i.CredentialProviderChain;n.providers.unshift(r);n.resolve(function(e,r){if(e)throw e;else t.credentials=r});this.constructor(t);return this},clear:function clear(){i.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,r){if(t===undefined){if(r===undefined){r=this.keys[e]}if(typeof r==="function"){this[e]=r.call(this)}else{this[e]=r}}else if(e==="httpOptions"&&this[e]){this[e]=i.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:undefined,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=i.util.copy(e);e.credentials=new i.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[i.Request,i.Credentials,i.CredentialProviderChain];if(i.S3){t.push(i.S3);if(i.S3.ManagedUpload){t.push(i.S3.ManagedUpload)}}i.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});i.config=new i.Config},7988:(e,t,r)=>{var i=r(2393);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw i.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var r;if(e[t.clientConfig]){r=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(r)return r}if(!i.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];r=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(r)return r}var s={};try{var o=i.util.getProfilesFromSharedConfig(i.util.iniLoader);s=o[process.env.AWS_PROFILE||i.util.defaultProfile]}catch(e){}if(s&&Object.prototype.hasOwnProperty.call(s,t.sharedConfig)){var a=s[t.sharedConfig];r=validateRegionalEndpointsFlagValue(a,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+s[t.sharedConfig]+'".'});if(r)return r}return r}e.exports=resolveRegionalEndpointsFlag},2393:(e,t,r)=>{var i={util:r(8498)};var n={};n.toString();e.exports=i;i.util.update(i,{VERSION:"2.759.0",Signers:{},Protocol:{Json:r(476),Query:r(98),Rest:r(5439),RestJson:r(4055),RestXml:r(1599)},XML:{Builder:r(7925),Parser:null},JSON:{Builder:r(5785),Parser:r(4093)},Model:{Api:r(4091),Operation:r(5719),Shape:r(1486),Paginator:r(9730),ResourceWaiter:r(8433)},apiLoader:r(8399),EndpointCache:r(9074).$});r(4062);r(5934);r(5191);r(70);r(4286);r(9195);r(2102);r(458);r(2035);r(1744);i.events=new i.SequentialExecutor;i.util.memoizedProperty(i,"endpointCache",function(){return new i.EndpointCache(i.config.endpointCacheSize)},true)},6936:(e,t,r)=>{var i=r(2393);i.Credentials=i.util.inherit({constructor:function Credentials(){i.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=i.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(r){if(!r)t.expired=false;if(e)e(r)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var r=this;if(r.refreshCallbacks.push(e)===1){r.load(function onLoad(e){i.util.arrayEach(r.refreshCallbacks,function(r){if(t){r(e)}else{i.util.defer(function(){r(e)})}});r.refreshCallbacks.length=0})}},load:function load(e){e()}});i.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=i.util.promisifyMethod("get",e);this.prototype.refreshPromise=i.util.promisifyMethod("refresh",e)};i.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};i.util.addPromises(i.Credentials)},8419:(e,t,r)=>{var i=r(2393);var n=r(2726);i.ChainableTemporaryCredentials=i.util.inherit(i.Credentials,{constructor:function ChainableTemporaryCredentials(e){i.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=i.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new i.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var r=i.util.merge({params:t,credentials:e.masterCredentials||i.config.credentials},e.stsConfig||{});this.service=new n(r)},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;var r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(i,n){var s={};if(i){e(i);return}if(n){s.TokenCode=n}t.service[r](s,function(r,i){if(!r){t.service.credentialsFrom(i,t)}e(r)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,n){if(r){var s=r;if(r instanceof Error){s=r.message}e(i.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},1363:(e,t,r)=>{var i=r(2393);var n=r(1294);var s=r(2726);i.CognitoIdentityCredentials=i.util.inherit(i.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){i.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=i.util.copy(t||{});this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){r.loadCachedId();return r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(r){if(!r){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(r);e(r)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(r,i){if(!r&&i.IdentityId){t.params.IdentityId=i.IdentityId;e(null,i.IdentityId)}else{e(r)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,i){if(!r){t.cacheId(i);t.data=i;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(r)}e(r)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(r,i){if(!r){t.cacheId(i);t.params.WebIdentityToken=i.Token;t.webIdentityCredentials.refresh(function(r){if(!r){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(r)})}else{t.clearIdOnNotAuthorized(r);e(r)}})},loadCachedId:function loadCachedId(){var e=this;if(i.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var s=n.filter(function(e){return r.indexOf(e)!==-1});if(s.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new i.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=i.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new s(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(i.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=i.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},4373:(e,t,r)=>{var i=r(2393);i.CredentialProviderChain=i.util.inherit(i.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=i.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var r=0;var n=t.providers.slice(0);function resolveNext(e,s){if(!e&&s||r===n.length){i.util.arrayEach(t.resolveCallbacks,function(t){t(e,s)});t.resolveCallbacks.length=0;return}var o=n[r++];if(typeof o==="function"){s=o.call()}else{s=o}if(s.get){s.get(function(e){resolveNext(e,e?null:s)})}else{resolveNext(null,s)}}resolveNext()}return t}});i.CredentialProviderChain.defaultProviders=[];i.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=i.util.promisifyMethod("resolve",e)};i.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};i.util.addPromises(i.CredentialProviderChain)},3138:(e,t,r)=>{var i=r(2393);r(5968);i.EC2MetadataCredentials=i.util.inherit(i.Credentials,{constructor:function EC2MetadataCredentials(e){i.Credentials.call(this);e=e?i.util.copy(e):{};e=i.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=i.util.merge({timeout:this.defaultTimeout,connectTimeout:this.defaultConnectTimeout},e.httpOptions);this.metadataService=new i.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultConnectTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(r,n){if(!r){var s=i.util.date.getDate();var o=new Date(n.Expiration);if(o{var i=r(2393);i.ECSCredentials=i.RemoteCredentials},6886:(e,t,r)=>{var i=r(2393);i.EnvironmentCredentials=i.util.inherit(i.Credentials,{constructor:function EnvironmentCredentials(e){i.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=i.util.fn.callback;if(!process||!process.env){e(i.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var r=[];for(var n=0;n{var i=r(2393);i.FileSystemCredentials=i.util.inherit(i.Credentials,{constructor:function FileSystemCredentials(e){i.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=i.util.fn.callback;try{var t=JSON.parse(i.util.readFileSync(this.filename));i.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw i.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},2633:(e,t,r)=>{var i=r(2393);var n=r(3129);var s=i.util.iniLoader;i.ProcessCredentials=i.util.inherit(i.Credentials,{constructor:function ProcessCredentials(e){i.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||i.util.defaultProfile;this.get(e.callback||i.util.fn.noop)},load:function load(e){var t=this;try{var r=i.util.getProfilesFromSharedConfig(s,this.filename);var n=r[this.profile]||{};if(Object.keys(n).length===0){throw i.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(r,i){if(r){e(r,null)}else{t.expired=false;t.accessKeyId=i.AccessKeyId;t.secretAccessKey=i.SecretAccessKey;t.sessionToken=i.SessionToken;if(i.Expiration){t.expireTime=new Date(i.Expiration)}e(null)}})}else{throw i.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,r,n){if(e){t(i.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var s=JSON.parse(r);if(s.Expiration){var o=i.util.date.getDate();var a=new Date(s.Expiration);if(a{var i=r(2393),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",s="AWS_CONTAINER_CREDENTIALS_FULL_URI",o="AWS_CONTAINER_AUTHORIZATION_TOKEN",a=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],l="169.254.170.2";i.RemoteCredentials=i.util.inherit(i.Credentials,{constructor:function RemoteCredentials(e){i.Credentials.call(this);e=e?i.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=i.util.merge(this.httpOptions,e.httpOptions);i.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[s]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[s];if(e){return"http://"+l+e}else if(t){var r=i.util.urlParse(t);if(u.indexOf(r.protocol)<0){throw i.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+r.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(a.indexOf(r.protocol)<0&&c.indexOf(r.hostname)<0){throw i.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+r.protocol+"; "+r.protocol+"//"+r.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw i.util.error(new Error("Variable "+n+" or "+s+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw i.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[s]){return process.env[o]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var r=new i.HttpRequest(e);r.method="GET";r.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){r.headers.Authorization=n}i.util.handleRequestWithRetries(r,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;var r;try{r=this.getECSFullUri()}catch(t){e(t);return}this.request(r,function(r,n){if(!r){try{n=JSON.parse(n);var s=t.formatCreds(n);if(!t.credsFormatIsValid(s)){throw i.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}i.util.update(t,s)}catch(e){r=e}}e(r,s)})}})},8671:(e,t,r)=>{var i=r(2393);var n=r(2726);i.SAMLCredentials=i.util.inherit(i.Credentials,{constructor:function SAMLCredentials(e){i.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(r,i){if(!r){t.service.credentialsFrom(i,t)}e(r)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},3738:(e,t,r)=>{var i=r(2393);var n=r(2726);var s=i.util.iniLoader;var o="us-east-1";i.SharedIniFileCredentials=i.util.inherit(i.Credentials,{constructor:function SharedIniFileCredentials(e){i.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||i.util.defaultProfile;this.disableAssumeRole=Boolean(e.disableAssumeRole);this.preferStaticCredentials=Boolean(e.preferStaticCredentials);this.tokenCodeFn=e.tokenCodeFn||null;this.httpOptions=e.httpOptions||null;this.get(e.callback||i.util.fn.noop)},load:function load(e){var t=this;try{var r=i.util.getProfilesFromSharedConfig(s,this.filename);var n=r[this.profile]||{};if(Object.keys(n).length===0){throw i.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"})}var o=Boolean(this.preferStaticCredentials&&n["aws_access_key_id"]&&n["aws_secret_access_key"]);if(n["role_arn"]&&!o){this.loadRoleProfile(r,n,function(r,i){if(r){e(r)}else{t.expired=false;t.accessKeyId=i.Credentials.AccessKeyId;t.secretAccessKey=i.Credentials.SecretAccessKey;t.sessionToken=i.Credentials.SessionToken;t.expireTime=i.Credentials.Expiration;e(null)}});return}this.accessKeyId=n["aws_access_key_id"];this.secretAccessKey=n["aws_secret_access_key"];this.sessionToken=n["aws_session_token"];if(!this.accessKeyId||!this.secretAccessKey){throw i.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}this.expired=false;e(null)}catch(t){e(t)}},refresh:function refresh(e){s.clearCachedFiles();this.coalesceRefresh(e||i.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function loadRoleProfile(e,t,r){if(this.disableAssumeRole){throw i.util.error(new Error("Role assumption profiles are disabled. "+"Failed to load profile "+this.profile+" from "+e.filename),{code:"SharedIniFileCredentialsProviderFailure"})}var s=this;var a=t["role_arn"];var u=t["role_session_name"];var c=t["external_id"];var l=t["mfa_serial"];var f=t["source_profile"];var h=t["region"]||o;if(!f){throw i.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}var p=e[f];if(typeof p!=="object"){throw i.util.error(new Error("source_profile "+f+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"})}var d=new i.SharedIniFileCredentials(i.util.merge(this.options||{},{profile:f,preferStaticCredentials:true}));this.roleArn=a;var v=new n({credentials:d,region:h,httpOptions:this.httpOptions});var m={RoleArn:a,RoleSessionName:u||"aws-sdk-js-"+Date.now()};if(c){m.ExternalId=c}if(l&&s.tokenCodeFn){m.SerialNumber=l;s.tokenCodeFn(l,function(e,t){if(e){var n;if(e instanceof Error){n=e.message}else{n=e}r(i.util.error(new Error("Error fetching MFA token: "+n),{code:"SharedIniFileCredentialsProviderFailure"}));return}m.TokenCode=t;v.assumeRole(m,r)});return}v.assumeRole(m,r)}})},273:(e,t,r)=>{var i=r(2393);var n=r(2726);i.TemporaryCredentials=i.util.inherit(i.Credentials,{constructor:function TemporaryCredentials(e,t){i.Credentials.call(this);this.loadMasterCredentials(t);this.expired=true;this.params=e||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials;var r=t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken;r.call(t.service,function(r,i){if(!r){t.service.credentialsFrom(i,t)}e(r)})})},loadMasterCredentials:function loadMasterCredentials(e){this.masterCredentials=e||i.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}if(typeof this.masterCredentials.get!=="function"){this.masterCredentials=new i.Credentials(this.masterCredentials)}},createClients:function(){this.service=this.service||new n({params:this.params})}})},3033:(e,t,r)=>{var i=r(2393);var n=r(5747);var s=r(2726);var o=i.util.iniLoader;i.TokenFileWebIdentityCredentials=i.util.inherit(i.Credentials,{constructor:function TokenFileWebIdentityCredentials(e){i.Credentials.call(this);this.data=null;this.clientConfig=i.util.copy(e||{})},getParamsFromEnv:function getParamsFromEnv(){var e="AWS_WEB_IDENTITY_TOKEN_FILE",t="AWS_ROLE_ARN";if(process.env[e]&&process.env[t]){return[{envTokenFile:process.env[e],roleArn:process.env[t],roleSessionName:process.env["AWS_ROLE_SESSION_NAME"]}]}},getParamsFromSharedConfig:function getParamsFromSharedConfig(){var e=i.util.getProfilesFromSharedConfig(o);var t=process.env.AWS_PROFILE||i.util.defaultProfile;var r=e[t]||{};if(Object.keys(r).length===0){throw i.util.error(new Error("Profile "+t+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"})}var n=[];while(!r["web_identity_token_file"]&&r["source_profile"]){n.unshift({roleArn:r["role_arn"],roleSessionName:r["role_session_name"]});var s=r["source_profile"];r=e[s]}n.unshift({envTokenFile:r["web_identity_token_file"],roleArn:r["role_arn"],roleSessionName:r["role_session_name"]});return n},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},assumeRoleChaining:function assumeRoleChaining(e,t){var r=this;if(e.length===0){r.service.credentialsFrom(r.data,r);t()}else{var i=e.shift();r.service.config.credentials=r.service.credentialsFrom(r.data,r);r.service.assumeRole({RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(i,n){r.data=null;if(i){t(i)}else{r.data=n;r.assumeRoleChaining(e,t)}})}},load:function load(e){var t=this;try{var r=t.getParamsFromEnv();if(!r){r=t.getParamsFromSharedConfig()}if(r){var i=r.shift();var s=n.readFileSync(i.envTokenFile,{encoding:"ascii"});if(!t.service){t.createClients()}t.service.assumeRoleWithWebIdentity({WebIdentityToken:s,RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(i,n){t.data=null;if(i){e(i)}else{t.data=n;t.assumeRoleChaining(r,e)}})}}catch(t){e(t)}},createClients:function(){if(!this.service){var e=i.util.merge({},this.clientConfig);this.service=new s(e);this.service.retryableError=function(e){if(e.code==="IDPCommunicationErrorException"||e.code==="InvalidIdentityToken"){return true}else{return i.Service.prototype.retryableError.call(this,e)}}}}})},4992:(e,t,r)=>{var i=r(2393);var n=r(2726);i.WebIdentityCredentials=i.util.inherit(i.Credentials,{constructor:function WebIdentityCredentials(e,t){i.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=i.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(r,i){t.data=null;if(!r){t.data=i;t.service.credentialsFrom(i,t)}e(r)})},createClients:function(){if(!this.service){var e=i.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},5836:(e,t,r)=>{var i=r(2393);var n=r(8498);var s=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var r=t.api||{};var i=r.operations;var n={};if(t.config.region){n.region=t.config.region}if(r.serviceId){n.serviceId=r.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,r){if(!r||t===undefined||t===null)return;if(r.type==="structure"&&r.required&&r.required.length>0){n.arrayEach(r.required,function(i){var n=r.members[i];if(n.endpointDiscoveryId===true){var s=n.isLocationName?n.name:i;e[s]=String(t[i])}else{marshallCustomIdentifiersHelper(e,t[i],n)}})}}function marshallCustomIdentifiers(e,t){var r={};marshallCustomIdentifiersHelper(r,e.params,t);return r}function optionalDiscoverEndpoint(e){var t=e.service;var r=t.api;var s=r.operations?r.operations[e.operation]:undefined;var o=s?s.input:undefined;var a=marshallCustomIdentifiers(e,o);var u=getCacheKey(e);if(Object.keys(a).length>0){u=n.update(u,a);if(s)u.operation=s.name}var c=i.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var l=t.makeRequest(r.endpointOperation,{Operation:s.name,Identifiers:a});addApiVersionHeader(l);l.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",i.EventListeners.Core.RETRY_CHECK);i.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){i.endpointCache.put(u,t.Endpoints)}else if(e){i.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var o={};function requiredDiscoverEndpoint(e,t){var r=e.service;var s=r.api;var a=s.operations?s.operations[e.operation]:undefined;var u=a?a.input:undefined;var c=marshallCustomIdentifiers(e,u);var l=getCacheKey(e);if(Object.keys(c).length>0){l=n.update(l,c);if(a)l.operation=a.name}var f=i.EndpointCache.getKeyString(l);var h=i.endpointCache.get(f);if(h&&h.length===1&&h[0].Address===""){if(!o[f])o[f]=[];o[f].push({request:e,callback:t});return}else if(h&&h.length>0){e.httpRequest.updateEndpoint(h[0].Address);t()}else{var p=r.makeRequest(s.endpointOperation,{Operation:a.name,Identifiers:c});p.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(p);i.endpointCache.put(f,[{Address:"",CachePeriodInMinutes:60}]);p.send(function(r,s){if(r){e.response.error=n.error(r,{retryable:false});i.endpointCache.remove(l);if(o[f]){var a=o[f];n.arrayEach(a,function(e){e.request.response.error=n.error(r,{retryable:false});e.callback()});delete o[f]}}else if(s){i.endpointCache.put(f,s.Endpoints);e.httpRequest.updateEndpoint(s.Endpoints[0].Address);if(o[f]){var a=o[f];n.arrayEach(a,function(e){e.request.httpRequest.updateEndpoint(s.Endpoints[0].Address);e.callback()});delete o[f]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var r=t.apiVersion;if(r&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=r}}function invalidateCachedEndpoints(e){var t=e.error;var r=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||r.statusCode===421)){var s=e.request;var o=s.service.api.operations||{};var a=o[s.operation]?o[s.operation].input:undefined;var u=marshallCustomIdentifiers(s,a);var c=getCacheKey(s);if(Object.keys(u).length>0){c=n.update(c,u);if(o[s.operation])c.operation=o[s.operation].name}i.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=i.config[e.serviceIdentifier]||{};return Boolean(i.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function resolveEndpointDiscoveryConfig(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled!==undefined){return t.config.endpointDiscoveryEnabled}if(n.isBrowser())return undefined;for(var r=0;r{var i=r(8997).eventMessageChunker;var n=r(291).parseEvent;function createEventStream(e,t,r){var s=i(e);var o=[];for(var a=0;a{var i=r(2393).util;var n=r(2413).Transform;var s=i.buffer.alloc;function EventMessageChunkerStream(e){n.call(this,e);this.currentMessageTotalLength=0;this.currentMessagePendingLength=0;this.currentMessage=null;this.messageLengthBuffer=null}EventMessageChunkerStream.prototype=Object.create(n.prototype);EventMessageChunkerStream.prototype._transform=function(e,t,r){var i=e.length;var n=0;while(n{function eventMessageChunker(e){var t=[];var r=0;while(r{var i=r(2413).Transform;var n=r(291).parseEvent;function EventUnmarshallerStream(e){e=e||{};e.readableObjectMode=true;i.call(this,e);this._readableState.objectMode=true;this.parser=e.parser;this.eventStreamModel=e.eventStreamModel}EventUnmarshallerStream.prototype=Object.create(i.prototype);EventUnmarshallerStream.prototype._transform=function(e,t,r){try{var i=n(this.parser,e,this.eventStreamModel);this.push(i);return r()}catch(e){r(e)}};e.exports={EventUnmarshallerStream:EventUnmarshallerStream}},396:(e,t,r)=>{var i=r(2393).util;var n=i.buffer.toBuffer;function Int64(e){if(e.length!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}if(!i.Buffer.isBuffer(e))e=n(e);this.bytes=e}Int64.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var r=7,i=Math.abs(Math.round(e));r>-1&&i>0;r--,i/=256){t[r]=i}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},291:(e,t,r)=>{var i=r(6845).parseMessage;function parseEvent(e,t,r){var n=i(t);var s=n.headers[":message-type"];if(s){if(s.value==="error"){throw parseError(n)}else if(s.value!=="event"){return}}var o=n.headers[":event-type"];var a=r.members[o.value];if(!a){return}var u={};var c=a.eventPayloadMemberName;if(c){var l=a.members[c];if(l.type==="binary"){u[c]=n.body}else{u[c]=e.parse(n.body.toString(),l)}}var f=a.eventHeaderMemberNames;for(var h=0;h{var i=r(396).Int64;var n=r(5732).splitMessage;var s="boolean";var o="byte";var a="short";var u="integer";var c="long";var l="binary";var f="string";var h="timestamp";var p="uuid";function parseHeaders(e){var t={};var r=0;while(r{var i=r(2393).util;var n=i.buffer.toBuffer;var s=4;var o=s*2;var a=4;var u=o+a*2;function splitMessage(e){if(!i.Buffer.isBuffer(e))e=n(e);if(e.length{var i=r(9983).EventMessageChunkerStream;var n=r(154).EventUnmarshallerStream;function createEventStream(e,t,r){var s=new n({parser:t,eventStreamModel:r});var o=new i;e.pipe(o).pipe(s);e.on("error",function(e){o.emit("error",e)});o.on("error",function(e){s.emit("error",e)});return s}e.exports={createEventStream:createEventStream}},4286:(e,t,r)=>{var i=r(2393);var n=r(4062);var s=r(5836).discoverEndpoint;i.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}i.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(r){if(r){e.response.error=i.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!e.service.config.region){e.response.error=i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}else if(!t.test(e.service.config.region)){e.response.error=i.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})}}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var r=t.idempotentMembers;if(!r.length){return}var n=i.util.copy(e.params);for(var s=0,o=r.length;s=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}i.util.computeSha256(s,function(r,i){if(r){t(r)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=i;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var r=i.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=i.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(i){if(r&&r.isStreaming){if(r.requiresLength){throw i}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw i}}throw i}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new i.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,r,n){r.httpResponse.statusCode=e;r.httpResponse.statusMessage=n;r.httpResponse.headers=t;r.httpResponse.body=i.util.buffer.toBuffer("");r.httpResponse.buffers=[];r.httpResponse.numBytes=0;var s=t.date||t.Date;var o=r.request.service;if(s){var a=Date.parse(s);if(o.config.correctClockSkew&&o.isClockSkewed(a)){o.applyClockOffset(a)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(i.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(i.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=i.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new i.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,r)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",i.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",i.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){function isDNSError(e){return e.errno==="ENOTFOUND"||typeof e.errno==="number"&&typeof i.util.getSystemErrorName==="function"&&["EAI_NONAME","EAI_NODATA"].indexOf(i.util.getSystemErrorName(e.errno)>=0)}if(e.code==="NetworkingError"&&isDNSError(e)){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=i.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}if(e.isSensitive){return"***SensitiveInformation***"}switch(e.type){case"structure":var r={};i.util.each(t,function(t,i){if(Object.prototype.hasOwnProperty.call(e.members,t)){r[t]=filterSensitiveLog(e.members[t],i)}else{r[t]=i}});return r;case"list":var n=[];i.util.arrayEach(t,function(t,r){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var s={};i.util.each(t,function(t,r){s[t]=filterSensitiveLog(e.value,r)});return s;default:return t}}function buildMessage(){var s=e.request.service.getSkewCorrectedDate().getTime();var o=(s-t.startTime.getTime())/1e3;var a=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;c=filterSensitiveLog(l,t.params)}var f=r(1669).inspect(c,true,null);var h="";if(a)h+="";h+="[AWS "+t.service.serviceIdentifier+" "+u;h+=" "+o.toString()+"s "+e.retryCount+" retries]";if(a)h+="";h+=" "+i.util.string.lowerFirst(t.operation);h+="("+f+")";if(a)h+="";return h}var s=buildMessage();if(typeof n.log==="function"){n.log(s)}else if(typeof n.write==="function"){n.write(s+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=r(476);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=r(5439);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=r(4055);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=r(1599);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=r(98);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},70:(e,t,r)=>{var i=r(2393);var n=i.util.inherit;i.Endpoint=n({constructor:function Endpoint(e,t){i.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return i.util.copy(e)}if(!e.match(/^http/)){var r=t&&t.sslEnabled!==undefined?t.sslEnabled:i.config.sslEnabled;e=(r?"https":"http")+"://"+e}i.util.update(this,i.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});i.HttpRequest=n({constructor:function HttpRequest(e,t){e=new i.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=i.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=i.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=i.util.queryStringParse(e);return i.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new i.Endpoint(e);this.endpoint=t;this.path=t.path||"/";if(this.headers["Host"]){this.headers["Host"]=t.host}}});i.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});i.HttpClient=n({});i.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},2205:(e,t,r)=>{var i=r(2393);var n=i.util.stream.Stream;var s=i.util.stream.Transform;var o=i.util.stream.Readable;r(70);var a="AWS_NODEJS_CONNECTION_REUSE_ENABLED";i.NodeHttpClient=i.util.inherit({handleRequest:function handleRequest(e,t,n,s){var o=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new i.Endpoint(t.proxy)}var l=u.protocol==="https:";var f=l?r(7211):r(8605);var h={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){h.agent=this.getAgent(l,{keepAlive:process.env[a]==="1"?true:false})}i.util.update(h,t);delete h.proxy;delete h.timeout;var p=f.request(h,function(e){if(p.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=p;p.didCallback=false;if(t.connectTimeout){var d;p.on("socket",function(e){if(e.connecting){d=setTimeout(function connectTimeout(){if(p.didCallback)return;p.didCallback=true;p.abort();s(i.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(d);d=null})}})}p.setTimeout(t.timeout||0,function(){if(p.didCallback)return;p.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";s(i.util.error(new Error(e),{code:"TimeoutError"}));p.abort()});p.on("error",function(){if(d){clearTimeout(d);d=null}if(p.didCallback)return;p.didCallback=true;s.apply(p,arguments)});var v=e.headers.Expect||e.headers.expect;if(v==="100-continue"){p.on("continue",function(){o.writeBody(p,e)})}else{this.writeBody(p,e)}return p},writeBody:function writeBody(e,t){var r=t.body;var i=parseInt(t.headers["Content-Length"],10);if(r instanceof n){var s=this.progressStream(e,i);if(s){r.pipe(s).pipe(e)}else{r.pipe(e)}}else if(r){e.once("finish",function(){e.emit("sendProgress",{loaded:i,total:i})});e.end(r)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?r(7211):r(8605);if(e){if(!i.NodeHttpClient.sslAgent){i.NodeHttpClient.sslAgent=new n.Agent(i.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED==="0"?false:true},t||{}));i.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(i.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return i.NodeHttpClient.sslAgent}else{if(!i.NodeHttpClient.agent){i.NodeHttpClient.agent=new n.Agent(t)}return i.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof s==="undefined"){return}var r=0;var i=new s;i._transform=function(i,n,s){if(i){r+=i.length;e.emit("sendProgress",{loaded:r,total:t})}s(null,i)};return i},emitter:null});i.HttpClient.prototype=i.NodeHttpClient.prototype;i.HttpClient.streamsApiVersion=o?2:1},5785:(e,t,r)=>{var i=r(8498);function JsonBuilder(){}JsonBuilder.prototype.build=function(e,t){return JSON.stringify(translate(e,t))};function translate(e,t){if(!t||e===undefined||e===null)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){var r={};i.each(e,function(e,i){var n=t.members[e];if(n){if(n.location!=="body")return;var s=n.isLocationName?n.name:e;var o=translate(i,n);if(o!==undefined)r[s]=o}});return r}function translateList(e,t){var r=[];i.arrayEach(e,function(e){var i=translate(e,t.member);if(i!==undefined)r.push(i)});return r}function translateMap(e,t){var r={};i.each(e,function(e,i){var n=translate(i,t.value);if(n!==undefined)r[e]=n});return r}function translateScalar(e,t){return t.toWireFormat(e)}e.exports=JsonBuilder},4093:(e,t,r)=>{var i=r(8498);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var r={};var n=t.members;i.each(n,function(t,i){var n=i.isLocationName?i.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var s=e[n];var o=translate(s,i);if(o!==undefined)r[t]=o}});return r}function translateList(e,t){if(e==null)return undefined;var r=[];i.arrayEach(e,function(e){var i=translate(e,t.member);if(i===undefined)r.push(null);else r.push(i)});return r}function translateMap(e,t){if(e==null)return undefined;var r={};i.each(e,function(e,i){var n=translate(i,t.value);if(n===undefined)r[e]=null;else r[e]=n});return r}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},5968:(e,t,r)=>{var i=r(2393);r(70);var n=i.util.inherit;i.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){i.util.update(this,e)},request:function request(e,t,r){if(arguments.length===2){r=t;t={}}if(process.env[i.util.imdsDisabledEnv]){r(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new i.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}i.util.handleRequestWithRetries(n,this,r)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var r="/latest/api/token";t.request(r,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var r=this;var n="/latest/meta-data/iam/security-credentials/";r.request(n,e,function(s,o){if(s){r.disableFetchToken=!(s.statusCode===401);t(i.util.error(s,{message:"EC2 Metadata roleName request returned error"}));return}o=o.split("\n")[0];r.request(n+o,e,function(e,n){if(e){r.disableFetchToken=!(e.statusCode===401);t(i.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var s=JSON.parse(n);t(null,s)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,r){var i;while((i=t.loadCredentialsCallbacks.shift())!==undefined){i(e,r)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,r){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(i.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(i.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(r){n.headers={"x-aws-ec2-metadata-token":r}}t.fetchCredentials(n,callbacks)})}}});e.exports=i.MetadataService},4091:(e,t,r)=>{var i=r(7298);var n=r(5719);var s=r(1486);var o=r(9730);var a=r(8433);var u=r(5847);var c=r(8498);var l=c.property;var f=c.memoizedProperty;function Api(e,t){var r=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};var h=t.serviceIdentifier;delete t.serviceIdentifier;l(this,"isApi",true,false);l(this,"apiVersion",e.metadata.apiVersion);l(this,"endpointPrefix",e.metadata.endpointPrefix);l(this,"signingName",e.metadata.signingName);l(this,"globalEndpoint",e.metadata.globalEndpoint);l(this,"signatureVersion",e.metadata.signatureVersion);l(this,"jsonVersion",e.metadata.jsonVersion);l(this,"targetPrefix",e.metadata.targetPrefix);l(this,"protocol",e.metadata.protocol);l(this,"timestampFormat",e.metadata.timestampFormat);l(this,"xmlNamespaceUri",e.metadata.xmlNamespace);l(this,"abbreviation",e.metadata.serviceAbbreviation);l(this,"fullName",e.metadata.serviceFullName);l(this,"serviceId",e.metadata.serviceId);if(h&&u[h]){l(this,"xmlNoDefaultLists",u[h].xmlNoDefaultLists,false)}f(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){l(r,"endpointOperation",c.string.lowerFirst(e))}if(t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery){l(r,"hasRequiredEndpointDiscovery",t.endpointdiscovery.required===true)}}l(this,"operations",new i(e.operations,t,function(e,r){return new n(e,r,t)},c.string.lowerFirst,addEndpointOperation));l(this,"shapes",new i(e.shapes,t,function(e,r){return s.create(r,t)}));l(this,"paginators",new i(e.paginators,t,function(e,r){return new o(e,r,t)}));l(this,"waiters",new i(e.waiters,t,function(e,r){return new a(e,r,t)},c.string.lowerFirst));if(t.documentation){l(this,"documentation",e.documentation);l(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},7298:(e,t,r)=>{var i=r(8498).memoizedProperty;function memoize(e,t,r,n){i(this,n(e),function(){return r(e,t)})}function Collection(e,t,r,i,n){i=i||String;var s=this;for(var o in e){if(Object.prototype.hasOwnProperty.call(e,o)){memoize.call(s,o,e[o],r,i);if(n)n(o,e[o])}}}e.exports=Collection},5719:(e,t,r)=>{var i=r(1486);var n=r(8498);var s=n.property;var o=n.memoizedProperty;function Operation(e,t,r){var n=this;r=r||{};s(this,"name",t.name||e);s(this,"api",r.api,false);t.http=t.http||{};s(this,"endpoint",t.endpoint);s(this,"httpMethod",t.http.method||"POST");s(this,"httpPath",t.http.requestUri||"/");s(this,"authtype",t.authtype||"");s(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");o(this,"input",function(){if(!t.input){return new i.create({type:"structure"},r)}return i.create(t.input,r)});o(this,"output",function(){if(!t.output){return new i.create({type:"structure"},r)}return i.create(t.output,r)});o(this,"errors",function(){var e=[];if(!t.errors)return null;for(var n=0;n{var i=r(8498).property;function Paginator(e,t){i(this,"inputToken",t.input_token);i(this,"limitKey",t.limit_key);i(this,"moreResults",t.more_results);i(this,"outputToken",t.output_token);i(this,"resultKey",t.result_key)}e.exports=Paginator},8433:(e,t,r)=>{var i=r(8498);var n=i.property;function ResourceWaiter(e,t,r){r=r||{};n(this,"name",e);n(this,"api",r.api,false);if(t.operation){n(this,"operation",i.string.lowerFirst(t.operation))}var s=this;var o=["type","description","delay","maxAttempts","acceptors"];o.forEach(function(e){var r=t[e];if(r){n(s,e,r)}})}e.exports=ResourceWaiter},1486:(e,t,r)=>{var i=r(7298);var n=r(8498);function property(e,t,r){if(r!==null&&r!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,r){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r){throw new Error("Cannot find shape reference: "+e.shape)}return r}else{return null}};Shape.create=function create(e,t,r){if(e.isShape)return e;var i=Shape.resolve(e,t);if(i){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var s=function(){i.constructor.call(this,e,t,r)};s.prototype=i;return new s}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var o=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,r)}else{throw new Error("Unrecognized shape type: "+o)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var r=this;var n=null,s=!this.isShape;CompositeShape.apply(this,arguments);if(s){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new i(e.members,t,function(e,r){return Shape.create(r,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=r.members;var t=r.memberNames;for(var i=0,n=t.length;i-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var r=n.Buffer.alloc(t.length,t);t.fill(0);t=r}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},8492:(e,t,r)=>{var i=r(8498);i.isBrowser=function(){return false};i.isNode=function(){return true};i.crypto.lib=r(6417);i.Buffer=r(4293).Buffer;i.domain=r(5229);i.stream=r(2413);i.url=r(8835);i.querystring=r(1191);i.environment="nodejs";i.createEventStream=i.stream.Readable?r(7143).createEventStream:r(9186).createEventStream;i.realClock=r(9605);i.clientSideMonitoring={Publisher:r(6017).Publisher,configProvider:r(3880)};i.iniLoader=r(7098).b;i.getSystemErrorName=r(1669).getSystemErrorName;var n;e.exports=n=r(2393);r(6936);r(4373);r(273);r(8419);r(4992);r(1363);r(8671);r(2633);n.XML.Parser=r(3606);r(2205);r(6081);r(3033);r(3138);r(181);r(2573);r(6886);r(8722);r(3738);r(2633);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,r){if(!t)e=r});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var r=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var i=n.util.iniLoader;while(!t&&r.length){var s=i.loadFrom(r.shift());var o=s[e.AWS_PROFILE||n.util.defaultProfile];t=o&&o.region}}return t}});n.config=new n.Config},1744:(e,t,r)=>{var i=r(2393);i.ParamValidator=i.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,r){this.errors=[];this.validateMember(e,t||{},r||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw i.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(i.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,r){this.validateType(t,r,["object"],"structure");var i;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+r)}}},validatePattern:function validatePattern(e,t,r){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+r)}}},validateRange:function validateRange(e,t,r,i){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+r)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+i+" <= "+e["max"]+", but found "+t+" for "+r)}}},validateEnum:function validateRange(e,t,r){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+r)}}},validateType:function validateType(e,t,r,n){if(e===null||e===undefined)return false;var s=false;for(var o=0;o{var i=r(8498);var n=r(2393);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var r=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(r.endpoint&&r.endpoint.hostPrefix){var i=r.endpoint.hostPrefix;var n=expandHostPrefix(i,e.params,r.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var r=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===i.string.lowerFirst(r.name);return r.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,r){i.each(r.members,function(r,n){if(n.hostLabel===true){if(typeof t[r]!=="string"||t[r]===""){throw i.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"})}var s=new RegExp("\\{"+r+"\\}","g");e=e.replace(s,t[r])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;i.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw i.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!r.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},476:(e,t,r)=>{var i=r(8498);var n=r(5785);var s=r(4093);var o=r(926).populateHostPrefix;function buildRequest(e){var t=e.httpRequest;var r=e.service.api;var i=r.targetPrefix+"."+r.operations[e.operation].name;var s=r.jsonVersion||"1.0";var a=r.operations[e.operation].input;var u=new n;if(s===1)s="1.0";t.body=u.build(e.params||{},a);t.headers["Content-Type"]="application/x-amz-json-"+s;t.headers["X-Amz-Target"]=i;o(e)}function extractError(e){var t={};var r=e.httpResponse;t.code=r.headers["x-amzn-errortype"]||"UnknownError";if(typeof t.code==="string"){t.code=t.code.split(":")[0]}if(r.body.length>0){try{var n=JSON.parse(r.body.toString());var s=n.__type||n.code||n.Code;if(s){t.code=s.split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=r.statusCode;t.message=r.statusMessage}}else{t.statusCode=r.statusCode;t.message=r.statusCode.toString()}e.error=i.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var r=e.request.service.api.operations[e.request.operation];var i=r.output||{};var n=new s;e.data=n.parse(t,i)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},98:(e,t,r)=>{var i=r(2393);var n=r(8498);var s=r(504);var o=r(1486);var a=r(926).populateHostPrefix;function buildRequest(e){var t=e.service.api.operations[e.operation];var r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";r.params={Version:e.service.api.apiVersion,Action:t.name};var i=new s;i.serialize(e.params,t.input,function(e,t){r.params[e]=t});r.body=n.queryParamsToString(r.params);a(e)}function extractError(e){var t,r=e.httpResponse.body.toString();if(r.match("{var i=r(8498);var n=r(926).populateHostPrefix;function populateMethod(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function generateURI(e,t,r,n){var s=[e,t].join("/");s=s.replace(/\/+/g,"/");var o={},a=false;i.each(r.members,function(e,t){var r=n[e];if(r===null||r===undefined)return;if(t.location==="uri"){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");s=s.replace(u,function(e,t){var n=t?i.uriEscapePath:i.uriEscape;return n(String(r))})}else if(t.location==="querystring"){a=true;if(t.type==="list"){o[t.name]=r.map(function(e){return i.uriEscape(t.member.toWireFormat(e).toString())})}else if(t.type==="map"){i.each(r,function(e,t){if(Array.isArray(t)){o[e]=t.map(function(e){return i.uriEscape(String(e))})}else{o[e]=i.uriEscape(String(t))}})}else{o[t.name]=i.uriEscape(t.toWireFormat(r).toString())}}});if(a){s+=s.indexOf("?")>=0?"&":"?";var u=[];i.arrayEach(Object.keys(o).sort(),function(e){if(!Array.isArray(o[e])){o[e]=[o[e]]}for(var t=0;t{var i=r(8498);var n=r(5439);var s=r(476);var o=r(5785);var a=r(4093);function populateBody(e){var t=new o;var r=e.service.api.operations[e.operation].input;if(r.payload){var i={};var n=r.members[r.payload];i=e.params[r.payload];if(i===undefined)return;if(n.type==="structure"){e.httpRequest.body=t.build(i,n);applyContentTypeHeader(e)}else{e.httpRequest.body=i;if(n.type==="binary"||n.isStreaming){applyContentTypeHeader(e,true)}}}else{var s=t.build(e.params,r);if(s!=="{}"||e.httpRequest.method!=="GET"){e.httpRequest.body=s}applyContentTypeHeader(e)}}function applyContentTypeHeader(e,t){var r=e.service.api.operations[e.operation];var i=r.input;if(!e.httpRequest.headers["Content-Type"]){var n=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=n}}function buildRequest(e){n.buildRequest(e);if(["HEAD","DELETE"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){s.extractError(e)}function extractData(e){n.extractData(e);var t=e.request;var r=t.service.api.operations[t.operation];var o=t.service.api.operations[t.operation].output||{};var u;var c=r.hasEventOutput;if(o.payload){var l=o.members[o.payload];var f=e.httpResponse.body;if(l.isEventStream){u=new a;e.data[payload]=i.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:f,u,l)}else if(l.type==="structure"||l.type==="list"){var u=new a;e.data[o.payload]=u.parse(f,l)}else if(l.type==="binary"||l.isStreaming){e.data[o.payload]=f}else{e.data[o.payload]=l.toType(f)}}else{var h=e.data;s.extractData(e);e.data=i.merge(h,e.data)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},1599:(e,t,r)=>{var i=r(2393);var n=r(8498);var s=r(5439);function populateBody(e){var t=e.service.api.operations[e.operation].input;var r=new i.XML.Builder;var s=e.params;var o=t.payload;if(o){var a=t.members[o];s=s[o];if(s===undefined)return;if(a.type==="structure"){var u=a.name;e.httpRequest.body=r.toXML(s,a,u,true)}else{e.httpRequest.body=s}}else{e.httpRequest.body=r.toXML(s,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){s.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){s.extractError(e);var t;try{t=(new i.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){s.extractData(e);var t;var r=e.request;var o=e.httpResponse.body;var a=r.service.api.operations[r.operation];var u=a.output;var c=a.hasEventOutput;var l=u.payload;if(l){var f=u.members[l];if(f.isEventStream){t=new i.XML.Parser;e.data[l]=n.createEventStream(i.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,f)}else if(f.type==="structure"){t=new i.XML.Parser;e.data[l]=t.parse(o.toString(),f)}else if(f.type==="binary"||f.isStreaming){e.data[l]=o}else{e.data[l]=f.toType(o)}}else if(o.length>0){t=new i.XML.Parser;var h=t.parse(o.toString(),u);n.update(e.data,h)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},3880:(e,t,r)=>{var i=r(2393);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var r=i.util.iniLoader.loadFrom({isConfig:true,filename:process.env[i.util.sharedConfigFileEnv]});var t=r[process.env.AWS_PROFILE||i.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},6017:(e,t,r)=>{var i=r(2393).util;var n=r(6200);var s=i.buffer.toBuffer;var o=1024*8;function Publisher(e){e=e||{};this.enabled=e.enabled||false;this.port=e.port||31e3;this.clientId=e.clientId||"";this.address=e.host||"127.0.0.1";if(this.clientId.length>255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var r=0,i=t.length;rs){e[n]=o.substr(0,s)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=s(JSON.stringify(e));if(!this.enabled||t.length>o){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var r=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,r){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},504:(e,t,r)=>{var i=r(8498);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,r){serializeStructure("",e,t,r)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,r,n){i.each(r.members,function(r,i){var s=t[r];if(s===null||s===undefined)return;var o=ucfirst(i);o=e?e+"."+o:o;serializeMember(o,s,i,n)})}function serializeMap(e,t,r,n){var s=1;i.each(t,function(t,i){var o=r.flattened?".":".entry.";var a=o+s+++".";var u=a+(r.key.name||"key");var c=a+(r.value.name||"value");serializeMember(e+u,t,r.key,n);serializeMember(e+c,i,r.value,n)})}function serializeList(e,t,r,n){var s=r.member||{};if(t.length===0){n.call(this,e,null);return}i.arrayEach(t,function(t,i){var o="."+(i+1);if(r.api.protocol==="ec2"){o=o+""}else if(r.flattened){if(s.name){var a=e.split(".");a.pop();a.push(ucfirst(s));e=a.join(".")}}else{o="."+(s.name?s.name:"member")+o}serializeMember(e+o,t,s,n)})}function serializeMember(e,t,r,i){if(t===null||t===undefined)return;if(r.type==="structure"){serializeStructure(e,t,r,i)}else if(r.type==="list"){serializeList(e,t,r,i)}else if(r.type==="map"){serializeMap(e,t,r,i)}else{i(e,r.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},9605:e=>{e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},8851:(e,t,r)=>{var i=r(8498);var n=r(4223);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var r=generateRegionPrefix(t);var i=e.api.endpointPrefix;return[[t,i],[r,i],[t,"*"],[r,"*"],["*",i],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){i.each(t,function(t,r){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=r}})}function configureEndpoint(e){var t=derivedKeys(e);for(var r=0;r{var i=r(2393);var n=r(1109);var s=i.util.inherit;var o=i.util.domain;var a=r(1405);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=false;r.emit(r._asm.currentState,function(e){if(e){if(isTerminalState(r)){if(o&&r.domain instanceof o.Domain){e.domainEmitter=r;e.domain=r.domain;e.domainThrown=false;r.domain.emit("error",e)}else{throw e}}else{r.response.error=e;t(e)}}else{t(r.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();i.Request=s({constructor:function Request(e,t,r){var s=e.endpoint;var a=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint){if(e.signingRegion){a=e.signingRegion}else{a="us-east-1"}}this.domain=o&&o.active;this.service=e;this.operation=t;this.params=r||{};this.httpRequest=new i.HttpRequest(s,a);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new i.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;i.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=i.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=i.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(r){if(r===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,i.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(r,n){if(r)return e(r,null);if(n===null)return e(null,null);var s=t.service.paginationConfig(t.operation);var o=s.resultKey;if(Array.isArray(o))o=o[0];var u=a.search(n,o);var c=true;i.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return i.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=i.util.stream;var t=this;var r=null;if(i.HttpClient.streamsApiVersion===2){r=new e.PassThrough;process.nextTick(function(){t.send()})}else{r=new e.Stream;r.readable=true;r.sent=false;r.on("newListener",function(e){if(!r.sent&&e==="data"){r.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){r.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,s,o){if(n<300){t.removeListener("httpData",i.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",i.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){o.error=e;o.error.retryable=false});var a=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(s["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){a=true;var c=0}var l=function checkContentLengthAndEmit(){if(a&&c!==u){r.emit("error",i.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(i.HttpClient.streamsApiVersion===2){r.end()}else{r.emit("end")}};var f=o.httpResponse.createUnbufferedStream();if(i.HttpClient.streamsApiVersion===2){if(a){var h=new e.PassThrough;h._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};h.on("end",l);r.on("error",function(e){a=false;f.unpipe(h);h.emit("end");h.end()});f.pipe(h).pipe(r,{end:false})}else{f.pipe(r)}}else{if(a){f.on("data",function(e){if(e&&e.length){c+=e.length}})}f.on("data",function(e){r.emit("data",e)});f.on("end",l)}f.on("error",function(e){a=false;r.emit("error",e)})}});return r},emitEvent:function emit(e,t,r){if(typeof t==="function"){r=t;t=null}if(!r)r=function(){};if(!t)t=this.eventParameters(e,this.response);var n=i.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;r.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new i.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",i.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",i.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});i.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,r){t.on("complete",function(t){if(t.error){r(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};i.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};i.util.addPromises(i.Request);i.util.mixin(i.Request,i.SequentialExecutor)},458:(e,t,r)=>{var i=r(2393);var n=i.util.inherit;var s=r(1405);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var r=t.config.acceptors;var i=false;var n="retry";r.forEach(function(r){if(!i){var s=t.matchers[r.matcher];if(s&&s(e,r.expected,r.argument)){i=true;n=r.state}}});if(!i&&e.error)n="failure";if(n==="success"){t.setSuccess(e)}else{t.setError(e,n==="retry")}}i.ResourceWaiter=n({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var i=s.search(e.data,r)}catch(e){return false}return s.strictDeepEqual(i,t)},pathAll:function(e,t,r){try{var i=s.search(e.data,r)}catch(e){return false}if(!Array.isArray(i))i=[i];var n=i.length;if(!n)return false;for(var o=0;o{var i=r(2393);var n=i.util.inherit;var s=r(1405);i.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new i.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var r=this.request.service;var n=this.request.operation;try{t=r.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var s=i.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var o=t.inputToken;if(typeof o==="string")o=[o];for(var a=0;a{var i=r(2393);i.SequentialExecutor=i.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(e){return this._events[e]?this._events[e].slice(0):[]},on:function on(e,t,r){if(this._events[e]){r?this._events[e].unshift(t):this._events[e].push(t)}else{this._events[e]=[t]}return this},onAsync:function onAsync(e,t,r){t._isAsync=true;return this.on(e,t,r)},removeListener:function removeListener(e,t){var r=this._events[e];if(r){var i=r.length;var n=-1;for(var s=0;s-1){r.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,r){if(!r)r=function(){};var i=this.listeners(e);var n=i.length;this.callListeners(i,t,r);return n>0},callListeners:function callListeners(e,t,r,n){var s=this;var o=n||null;function callNextListener(n){if(n){o=i.util.error(o||new Error,n);if(s._haltHandlersOnError){return r.call(s,o)}}s.callListeners(e,t,r,o)}while(e.length>0){var a=e.shift();if(a._isAsync){a.apply(s,t.concat([callNextListener]));return}else{try{a.apply(s,t)}catch(e){o=i.util.error(o||new Error,e)}if(o&&s._haltHandlersOnError){r.call(s,o);return}}}r.call(s,o)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;i.util.each(e,function(e,r){if(typeof r==="function")r=[r];i.util.arrayEach(r,function(r){t.on(e,r)})});return t},addNamedListener:function addNamedListener(e,t,r,i){this[e]=r;this.addListener(t,r,i);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,r,i){r._isAsync=true;return this.addNamedListener(e,t,r,i)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});i.SequentialExecutor.prototype.addListener=i.SequentialExecutor.prototype.on;e.exports=i.SequentialExecutor},5934:(e,t,r)=>{var i=r(2393);var n=r(4091);var s=r(8851);var o=i.util.inherit;var a=0;i.Service=o({constructor:function Service(e){if(!this.loadServiceClass){throw i.util.error(new Error,"Service must be constructed with `new' operator")}var t=this.loadServiceClass(e||{});if(t){var r=i.util.copy(e);var n=new t(e);Object.defineProperty(n,"_originalConfig",{get:function(){return r},enumerable:false,configurable:true});n._clientId=++a;return n}this.initialize(e)},initialize:function initialize(e){var t=i.config[this.serviceIdentifier];this.config=new i.Config(i.config);if(t)this.config.update(t,true);if(e)this.config.update(e,true);this.validateService();if(!this.config.endpoint)s.configureEndpoint(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint);i.SequentialExecutor.call(this);i.Service.addDefaultMonitoringListeners(this);if((this.config.clientSideMonitoring||i.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function PUBLISH_API_CALL(e){process.nextTick(function(){r.eventHandler(e)})});this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function PUBLISH_API_ATTEMPT(e){process.nextTick(function(){r.eventHandler(e)})})}},validateService:function validateService(){},loadServiceClass:function loadServiceClass(e){var t=e;if(!i.util.isEmpty(this.api)){return null}else if(t.apiConfig){return i.Service.defineServiceApi(this.constructor,t.apiConfig)}else if(!this.constructor.services){return null}else{t=new i.Config(i.config);t.update(e,true);var r=t.apiVersions[this.constructor.serviceIdentifier];r=r||t.apiVersion;return this.getLatestServiceClass(r)}},getLatestServiceClass:function getLatestServiceClass(e){e=this.getLatestServiceVersion(e);if(this.constructor.services[e]===null){i.Service.defineServiceApi(this.constructor,e)}return this.constructor.services[e]},getLatestServiceVersion:function getLatestServiceVersion(e){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!e){e="latest"}else if(i.util.isType(e,Date)){e=i.util.date.iso8601(e).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,e)){return e}var t=Object.keys(this.constructor.services).sort();var r=null;for(var n=t.length-1;n>=0;n--){if(t[n][t[n].length-1]!=="*"){r=t[n]}if(t[n].substr(0,10)<=e){return r}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,r){if(typeof t==="function"){r=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=i.util.copy(t);i.util.each(this.config.params,function(e,r){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=r}}})}}var s=new i.Request(this,e,t);this.addAllRequestListeners(s);this.attachMonitoringEmitter(s);if(r)s.send(r);return s},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,r){if(typeof t==="function"){r=t;t={}}var i=this.makeRequest(e,t).toUnauthenticated();return r?i.send(r):i},waitFor:function waitFor(e,t,r){var n=new i.ResourceWaiter(this,e);return n.wait(t,r)},addAllRequestListeners:function addAllRequestListeners(e){var t=[i.events,i.EventListeners.Core,this.serviceInterface(),i.EventListeners.CorePost];for(var r=0;r299){if(n.code)r.FinalAwsException=n.code;if(n.message)r.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)r.FinalSdkException=n.code||n.name;if(n.message)r.FinalSdkExceptionMessage=n.message}}return r},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var i=e.response;if(i.httpResponse.statusCode){r.HttpStatusCode=i.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){r.AccessKey=e.service.config.credentials.accessKeyId}if(!i.httpResponse.headers)return r;if(e.httpRequest.headers["x-amz-security-token"]){r.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(i.httpResponse.headers["x-amzn-requestid"]){r.XAmznRequestId=i.httpResponse.headers["x-amzn-requestid"]}if(i.httpResponse.headers["x-amz-request-id"]){r.XAmzRequestId=i.httpResponse.headers["x-amz-request-id"]}if(i.httpResponse.headers["x-amz-id-2"]){r.XAmzId2=i.httpResponse.headers["x-amz-id-2"]}return r},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var r=e.response;var i=r.error;if(r.httpResponse.statusCode>299){if(i.code)t.AwsException=i.code;if(i.message)t.AwsExceptionMessage=i.message}else{if(i.code||i.name)t.SdkException=i.code||i.name;if(i.message)t.SdkExceptionMessage=i.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var r;var n;var s;var o=0;var a;var u;var c=this;var l=true;e.on("validate",function(){s=i.util.realClock.now();u=Date.now()},l);e.on("sign",function(){r=i.util.realClock.now();t=Date.now();a=e.httpRequest.region;o++},l);e.on("validateResponse",function(){n=Math.round(i.util.realClock.now()-r)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var r=c.apiAttemptEvent(e);r.Timestamp=t;r.AttemptLatency=n>=0?n:0;r.Region=a;c.emit("apiCallAttempt",[r])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var s=c.attemptFailEvent(e);s.Timestamp=t;n=n||Math.round(i.util.realClock.now()-r);s.AttemptLatency=n>=0?n:0;s.Region=a;c.emit("apiCallAttempt",[s])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=o;if(t.AttemptCount<=0)return;t.Timestamp=u;var r=Math.round(i.util.realClock.now()-s);t.Latency=r>=0?r:0;var n=e.response;if(n.error&&n.error.retryable&&typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var r=null;var n="";if(e){var s=e.service.api.operations||{};r=s[e.operation]||null;n=r?r.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return i.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return i.EventListeners.Query;case"query":return i.EventListeners.Query;case"json":return i.EventListeners.Json;case"rest-json":return i.EventListeners.RestJson;case"rest-xml":return i.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return i.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new i.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var n=new Error;throw i.util.error(n,"No pagination configuration for "+e)}return null}return r}});i.util.update(i.Service,{defineMethods:function defineMethods(e){i.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var r=e.prototype.api.operations[t];if(r.authtype==="none"){e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}}else{e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)}}})},defineService:function defineService(e,t,r){i.Service._serviceMap[e]=true;if(!Array.isArray(t)){r=t;t=[]}var n=o(i.Service,r||{});if(typeof e==="string"){i.Service.addVersions(n,t);var s=n.serviceIdentifier||e;n.serviceIdentifier=s}else{n.prototype.api=e;i.Service.defineMethods(n)}i.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&i.util.clientSideMonitoring){var a=i.util.clientSideMonitoring.Publisher;var u=i.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new a(c);if(c.enabled){i.Service._clientSideMonitoring=true}}i.SequentialExecutor.call(n.prototype);i.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var r=0;r{var i=r(2393);i.util.update(i.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},9948:(e,t,r)=>{var i=r(2393);var n=r(7988);var s="AWS_STS_REGIONAL_ENDPOINTS";var o="sts_regional_endpoints";i.util.update(i.STS.prototype,{credentialsFrom:function credentialsFrom(e,t){if(!e)return null;if(!t)t=new i.TemporaryCredentials;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretAccessKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration;return t},assumeRoleWithWebIdentity:function assumeRoleWithWebIdentity(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function assumeRoleWithSAML(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function setupRequestListeners(e){e.addListener("validate",this.optInRegionalEndpoint,true)},optInRegionalEndpoint:function optInRegionalEndpoint(e){var t=e.service;var r=t.config;r.stsRegionalEndpoints=n(t._originalConfig,{env:s,sharedConfig:o,clientConfig:"stsRegionalEndpoints"});if(r.stsRegionalEndpoints==="regional"&&t.isGlobalEndpoint){if(!r.region){throw i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}var a=r.endpoint.indexOf(".amazonaws.com");var u=r.endpoint.substring(0,a)+"."+r.region+r.endpoint.substring(a);e.httpRequest.updateEndpoint(u);e.httpRequest.region=r.region}}})},7098:(e,t,r)=>{var i=r(6081).IniLoader;e.exports.b=new i},6081:(e,t,r)=>{var i=r(2393);var n=r(2087);var s=r(5622);function parseFile(e,t){var r=i.util.ini.parse(i.util.readFileSync(e));var n={};Object.keys(r).forEach(function(e){var i=r[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:i,enumerable:true})});return n}i.IniLoader=i.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var r=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[r]){var i=this.parseFile(r,t);Object.defineProperty(this.resolvedProfiles,r,{value:i})}return this.resolvedProfiles[r]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return s.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw i.util.error(new Error("Cannot load credentials, HOME path not set"))}});var o=i.IniLoader;e.exports={IniLoader:o,parseFile:parseFile}},2762:(e,t,r)=>{var i=r(2393);var n=i.util.inherit;var s="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[s];var r=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(r===i.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw i.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[s]=t}else if(r===i.Signers.S3){var o=e.service?e.service.getSkewCorrectedDate():i.util.date.getDate();e.httpRequest.headers[s]=parseInt(i.util.date.unixTimestamp(o)+t,10).toString()}else{throw i.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var r=i.util.urlParse(e.httpRequest.path);var n={};if(r.search){n=i.util.queryStringParse(r.search.substr(1))}var o=e.httpRequest.headers["Authorization"].split(" ");if(o[0]==="AWS"){o=o[1].split(":");n["Signature"]=o.pop();n["AWSAccessKeyId"]=o.join(":");i.util.each(e.httpRequest.headers,function(e,t){if(e===s)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[s];delete n["Authorization"];delete n["Host"]}else if(o[0]==="AWS4-HMAC-SHA256"){o.shift();var a=o.join(" ");var u=a.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=r.pathname;t.search=i.util.queryParamsToString(n)}i.Signers.Presign=n({sign:function sign(e,t,r){e.httpRequest.headers[s]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",i.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",i.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(r){e.build(function(){if(this.response.error)r(this.response.error);else{r(null,i.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return i.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=i.Signers.Presign},2035:(e,t,r)=>{var i=r(2393);var n=i.util.inherit;i.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});i.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return i.Signers.V2;case"v3":return i.Signers.V3;case"s3v4":return i.Signers.V4;case"v4":return i.Signers.V4;case"s3":return i.Signers.S3;case"v3https":return i.Signers.V3Https}throw new Error("Unknown signing version "+e)};r(3115);r(8310);r(9090);r(449);r(1567);r(2762)},1567:(e,t,r)=>{var i=r(2393);var n=i.util.inherit;i.Signers.S3=n(i.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(e,t){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=i.util.date.rfc822(t)}if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}var r=this.sign(e.secretAccessKey,this.stringToSign());var n="AWS "+e.accessKeyId+":"+r;this.request.headers["Authorization"]=n},stringToSign:function stringToSign(){var e=this.request;var t=[];t.push(e.method);t.push(e.headers["Content-MD5"]||"");t.push(e.headers["Content-Type"]||"");t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();if(r)t.push(r);t.push(this.canonicalizedResource());return t.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var e=[];i.util.each(this.request.headers,function(t){if(t.match(/^x-amz-/i))e.push(t)});e.sort(function(e,t){return e.toLowerCase(){var i=r(2393);var n=i.util.inherit;i.Signers.V2=n(i.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){if(!t)t=i.util.date.getDate();var r=this.request;r.params.Timestamp=i.util.date.iso8601(t);r.params.SignatureVersion="2";r.params.SignatureMethod="HmacSHA256";r.params.AWSAccessKeyId=e.accessKeyId;if(e.sessionToken){r.params.SecurityToken=e.sessionToken}delete r.params.Signature;r.params.Signature=this.signature(e);r.body=i.util.queryParamsToString(r.params);r.headers["Content-Length"]=r.body.length},signature:function signature(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push(this.request.endpoint.host.toLowerCase());e.push(this.request.pathname());e.push(i.util.queryParamsToString(this.request.params));return e.join("\n")}});e.exports=i.Signers.V2},8310:(e,t,r)=>{var i=r(2393);var n=i.util.inherit;i.Signers.V3=n(i.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var r=i.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];i.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];i.util.arrayEach(this.headersToSign(),function iterator(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];i.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return i.util.crypto.sha256(e.join("\n"))}});e.exports=i.Signers.V3},9090:(e,t,r)=>{var i=r(2393);var n=i.util.inherit;r(8310);i.Signers.V3Https=n(i.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=i.Signers.V3Https},449:(e,t,r)=>{var i=r(2393);var n=r(5943);var s=i.util.inherit;var o="presigned-expires";i.Signers.V4=s(i.Signers.RequestSigner,{constructor:function V4(e,t,r){i.Signers.RequestSigner.call(this,e);this.serviceName=t;r=r||{};this.signatureCache=typeof r.signatureCache==="boolean"?r.signatureCache:true;this.operation=r.operation;this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function addAuthorization(e,t){var r=i.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");if(this.isPresigned()){this.updateForPresigned(e,r)}else{this.addHeaders(e,r)}this.request.headers["Authorization"]=this.authorization(e,r)},addHeaders:function addHeaders(e,t){this.request.headers["X-Amz-Date"]=t;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}},updateForPresigned:function updateForPresigned(e,t){var r=this.credentialString(t);var n={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[o],"X-Amz-SignedHeaders":this.signedHeaders()};if(e.sessionToken){n["X-Amz-Security-Token"]=e.sessionToken}if(this.request.headers["Content-Type"]){n["Content-Type"]=this.request.headers["Content-Type"]}if(this.request.headers["Content-MD5"]){n["Content-MD5"]=this.request.headers["Content-MD5"]}if(this.request.headers["Cache-Control"]){n["Cache-Control"]=this.request.headers["Cache-Control"]}i.util.each.call(this,this.request.headers,function(e,t){if(e===o)return;if(this.isSignableHeader(e)){var r=e.toLowerCase();if(r.indexOf("x-amz-meta-")===0){n[r]=t}else if(r.indexOf("x-amz-")===0){n[e]=t}}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+i.util.queryParamsToString(n)},authorization:function authorization(e,t){var r=[];var i=this.credentialString(t);r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+i);r.push("SignedHeaders="+this.signedHeaders());r.push("Signature="+this.signature(e,t));return r.join(", ")},signature:function signature(e,t){var r=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return i.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=i.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];i.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])});e.sort(function(e,t){return e[0].toLowerCase(){var i=r(2393);var n={};var s=[];var o=50;var a="aws4_request";e.exports={createScope:function createScope(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function getSigningKey(e,t,r,u,c){var l=i.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64");var f=[l,t,r,u].join("_");c=c!==false;if(c&&f in n){return n[f]}var h=i.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer");var p=i.util.crypto.hmac(h,r,"buffer");var d=i.util.crypto.hmac(p,u,"buffer");var v=i.util.crypto.hmac(d,a,"buffer");if(c){n[f]=v;s.push(f);if(s.length>o){delete n[s.shift()]}}return v},emptyCache:function emptyCache(){n={};s=[]}}},1109:e=>{function AcceptorStateMachine(e,t){this.currentState=t||null;this.states=e||{}}AcceptorStateMachine.prototype.runTo=function runTo(e,t,r,i){if(typeof e==="function"){i=r;r=t;t=e;e=null}var n=this;var s=n.states[n.currentState];s.fn.call(r||n,i,function(i){if(i){if(s.fail)n.currentState=s.fail;else return t?t.call(r,i):null}else{if(s.accept)n.currentState=s.accept;else return t?t.call(r):null}if(n.currentState===e){return t?t.call(r,i):null}n.runTo(e,t,r,i)})};AcceptorStateMachine.prototype.addState=function addState(e,t,r,i){if(typeof t==="function"){i=t;t=null;r=null}else if(typeof r==="function"){i=r;r=null}if(!this.currentState)this.currentState=e;this.states[e]={accept:t,fail:r,fn:i};return this};e.exports=AcceptorStateMachine},8498:(e,t,r)=>{var i;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+r(2393).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var r=n.uriEscape;var i=Object.keys(e).sort();n.arrayEach(i,function(i){var s=e[i];var o=r(i);var a=o+"=";if(Array.isArray(s)){var u=[];n.arrayEach(s,function(e){u.push(r(e))});a=o+"="+u.sort().join("&"+o+"=")}else if(s!==undefined&&s!==null){a=o+"="+r(s)}t.push(a)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return r(5747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,r){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,r)}else{var i=new n.Buffer(e);if(t!==undefined&&typeof i.fill==="function"){i.fill(t,undefined,undefined,r)}return i}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var r=0;t._read=function(i){if(r>=e.length)return t.push(null);var n=r+i;if(n>e.length)n=e.length;t.push(e.slice(r,n));r=n};return t},concat:function(e){var t=0,r=0,i=null,s;for(s=0;s>>8^t[(r^s)&255]}return(r^-1)>>>0},hmac:function hmac(e,t,r,i){if(!r)r="binary";if(r==="buffer"){r=undefined}if(!i)i="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(i,e).update(t).digest(r)},md5:function md5(e,t,r){return n.crypto.hash("md5",e,t,r)},sha256:function sha256(e,t,r){return n.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,i){var s=n.crypto.createHash(e);if(!r){r="binary"}if(r==="buffer"){r=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var o=n.arraySliceFn(t);var a=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)a=true;if(i&&typeof t==="object"&&typeof t.on==="function"&&!a){t.on("data",function(e){s.update(e)});t.on("error",function(e){i(e)});t.on("end",function(){i(null,s.digest(r))})}else if(i&&o&&!a&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var l=new FileReader;l.onerror=function(){i(new Error("Failed to read data."))};l.onload=function(){var e=new n.Buffer(new Uint8Array(l.result));s.update(e);u+=e.length;l._continueReading()};l._continueReading=function(){if(u>=t.size){i(null,s.digest(r));return}var e=u+c;if(e>t.size)e=t.size;l.readAsArrayBuffer(o.call(t,u,e))};l._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!a){t=new n.Buffer(new Uint8Array(t))}var f=s.update(t).digest(r);if(i)i(null,f);return f}},toHex:function toHex(e){var t=[];for(var r=0;r=3e5,false);return i.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)i.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var r=false;if(t===undefined&&i&&i.config){t=i.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")r=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){a++;setTimeout(c,s+(e.retryAfter||0))}else{r(e)}};var c=function(){var t="";s.handleRequest(e,o,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var i=e.statusCode;if(i<300){r(null,t)}else{var s=parseInt(e.headers["retry-after"],10)*1e3||0;var o=n.error(new Error,{statusCode:i,retryable:i>=500||i===429});if(s&&o.retryable)o.retryAfter=s;u(o)}})},u)};i.util.defer(c)},uuid:{v4:function uuidV4(){return r(5288).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var r=t.operation;var i=t.service.api.operations[r].output||{};if(i.payload&&e.data[i.payload]){e.data[i.payload]=e.data[i.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var r=(t||{})[e.operation];if(!r||!r.input||!r.input.payload)return undefined;return r.input.members[r.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var r={};var i={};if(process.env[n.configOptInEnv]){var i=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var s=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var o=0,a=Object.keys(i);o=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},7925:(e,t,r)=>{var i=r(8498);var n=r(2562).XmlNode;var s=r(4971).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,r,i){var s=new n(r);applyNamespaces(s,t,true);serialize(s,e,t);return s.children.length>0||i?s.toString():""};function serialize(e,t,r){switch(r.type){case"structure":return serializeStructure(e,t,r);case"map":return serializeMap(e,t,r);case"list":return serializeList(e,t,r);default:return serializeScalar(e,t,r)}}function serializeStructure(e,t,r){i.arrayEach(r.memberNames,function(i){var s=r.members[i];if(s.location!=="body")return;var o=t[i];var a=s.name;if(o!==undefined&&o!==null){if(s.isXmlAttribute){e.addAttribute(a,o)}else if(s.flattened){serialize(e,o,s)}else{var u=new n(a);e.addChildNode(u);applyNamespaces(u,s);serialize(u,o,s)}}})}function serializeMap(e,t,r){var s=r.key.name||"key";var o=r.value.name||"value";i.each(t,function(t,i){var a=new n(r.flattened?r.name:"entry");e.addChildNode(a);var u=new n(s);var c=new n(o);a.addChildNode(u);a.addChildNode(c);serialize(u,t,r.key);serialize(c,i,r.value)})}function serializeList(e,t,r){if(r.flattened){i.arrayEach(t,function(t){var i=r.member.name||r.name;var s=new n(i);e.addChildNode(s);serialize(s,t,r.member)})}else{i.arrayEach(t,function(t){var i=r.member.name||"member";var s=new n(i);e.addChildNode(s);serialize(s,t,r.member)})}}function serializeScalar(e,t,r){e.addChildNode(new s(r.toWireFormat(t)))}function applyNamespaces(e,t,r){var i,n="xmlns";if(t.xmlNamespaceUri){i=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(r&&t.api.xmlNamespaceUri){i=t.api.xmlNamespaceUri}if(i)e.addAttribute(n,i)}e.exports=XmlBuilder},2746:e=>{function escapeAttribute(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},7471:e=>{function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},3606:(e,t,r)=>{var i=r(2393);var n=i.util;var s=i.Model.Shape;var o=r(6139);var a={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var r=null;var i=null;var s=new o.Parser(a);s.parseString(e,function(e,t){i=e;r=t});if(r){var u=parseXml(r,t);if(r.ResponseMetadata){u.ResponseMetadata=parseXml(r.ResponseMetadata[0],{})}return u}else if(i){throw n.error(i,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var r={};if(e===null)return r;n.each(t.members,function(i,n){var s=n.name;if(Object.prototype.hasOwnProperty.call(e,s)&&Array.isArray(e[s])){var o=e[s];if(!n.flattened)o=o[0];r[i]=parseXml(o,n)}else if(n.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,s)){r[i]=parseScalar(e.$[s],n)}else if(n.type==="list"&&!t.api.xmlNoDefaultLists){r[i]=n.defaultValue}});return r}function parseMap(e,t){var r={};if(e===null)return r;var i=t.key.name||"key";var s=t.value.name||"value";var o=t.flattened?e:e.entry;if(Array.isArray(o)){n.arrayEach(o,function(e){r[e[i][0]]=parseXml(e[s][0],t.value)})}return r}function parseList(e,t){var r=[];var i=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){r.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[i])){n.arrayEach(e[i],function(e){r.push(parseXml(e,t.member))})}return r}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new s.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(i=0;i1){n[s]=parseList(o,{member:{}})}else{n[s]=parseXml(o[0],{})}}return n}e.exports=NodeXmlParser},2562:(e,t,r)=>{var i=r(2746).escapeAttribute;function XmlNode(e,t){if(t===void 0){t=[]}this.name=e;this.children=t;this.attributes={}}XmlNode.prototype.addAttribute=function(e,t){this.attributes[e]=t;return this};XmlNode.prototype.addChildNode=function(e){this.children.push(e);return this};XmlNode.prototype.removeAttribute=function(e){delete this.attributes[e];return this};XmlNode.prototype.toString=function(){var e=Boolean(this.children.length);var t="<"+this.name;var r=this.attributes;for(var n=0,s=Object.keys(r);n":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},4971:(e,t,r)=>{var i=r(7471).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return i(""+this.value)};e.exports={XmlText:XmlText}},5288:(e,t,r)=>{var i=r(2128);var n=r(8572);var s=n;s.v1=i;s.v4=n;e.exports=s},7924:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var n=t;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}e.exports=bytesToUuid},5864:(e,t,r)=>{var i=r(6417);e.exports=function nodeRNG(){return i.randomBytes(16)}},2128:(e,t,r)=>{var i=r(5864);var n=r(7924);var s;var o;var a=0;var u=0;function v1(e,t,r){var c=t&&r||0;var l=t||[];e=e||{};var f=e.node||s;var h=e.clockseq!==undefined?e.clockseq:o;if(f==null||h==null){var p=i();if(f==null){f=s=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]}if(h==null){h=o=(p[6]<<8|p[7])&16383}}var d=e.msecs!==undefined?e.msecs:(new Date).getTime();var v=e.nsecs!==undefined?e.nsecs:u+1;var m=d-a+(v-u)/1e4;if(m<0&&e.clockseq===undefined){h=h+1&16383}if((m<0||d>a)&&e.nsecs===undefined){v=0}if(v>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=d;u=v;o=h;d+=122192928e5;var g=((d&268435455)*1e4+v)%4294967296;l[c++]=g>>>24&255;l[c++]=g>>>16&255;l[c++]=g>>>8&255;l[c++]=g&255;var y=d/4294967296*1e4&268435455;l[c++]=y>>>8&255;l[c++]=y&255;l[c++]=y>>>24&15|16;l[c++]=y>>>16&255;l[c++]=h>>>8|128;l[c++]=h&255;for(var E=0;E<6;++E){l[c+E]=f[E]}return t?t:n(l)}e.exports=v1},8572:(e,t,r)=>{var i=r(5864);var n=r(7924);function v4(e,t,r){var s=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||i)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var a=0;a<16;++a){t[s+a]=o[a]}}return t||n(o)}e.exports=v4},9074:(e,t,r)=>{"use strict";var i;i={value:true};var n=r(253);var s=1e3;var o=function(){function EndpointCache(e){if(e===void 0){e=s}this.maxSize=e;this.cache=new n.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var r=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=this.populateValue(t);this.cache.put(r,i)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=Date.now();var i=this.cache.get(t);if(i){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=function(){function LinkedListNode(e,t){this.key=e;this.value=t}return LinkedListNode}();var i=function(){function LRUCache(e){this.nodeMap={};this.size=0;if(typeof e!=="number"||e<1){throw new Error("Cache size can only be positive number")}this.sizeLimit=e}Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this.size},enumerable:true,configurable:true});LRUCache.prototype.prependToList=function(e){if(!this.headerNode){this.tailNode=e}else{this.headerNode.prev=e;e.next=this.headerNode}this.headerNode=e;this.size++};LRUCache.prototype.removeFromTail=function(){if(!this.tailNode){return undefined}var e=this.tailNode;var t=e.prev;if(t){t.next=undefined}e.prev=undefined;this.tailNode=t;this.size--;return e};LRUCache.prototype.detachFromList=function(e){if(this.headerNode===e){this.headerNode=e.next}if(this.tailNode===e){this.tailNode=e.prev}if(e.prev){e.prev.next=e.next}if(e.next){e.next.prev=e.prev}e.next=undefined;e.prev=undefined;this.size--};LRUCache.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);this.prependToList(t);return t.value}};LRUCache.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);delete this.nodeMap[e]}};LRUCache.prototype.put=function(e,t){if(this.nodeMap[e]){this.remove(e)}else if(this.size===this.sizeLimit){var i=this.removeFromTail();var n=i.key;delete this.nodeMap[n]}var s=new r(e,t);this.nodeMap[e]=s;this.prependToList(s)};LRUCache.prototype.empty=function(){var e=Object.keys(this.nodeMap);for(var t=0;t{(function(e){"use strict";function isArray(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Array]"}else{return false}}function isObject(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Object]"}else{return false}}function strictDeepEqual(e,t){if(e===t){return true}var r=Object.prototype.toString.call(e);if(r!==Object.prototype.toString.call(t)){return false}if(isArray(e)===true){if(e.length!==t.length){return false}for(var i=0;i":true,"=":true,"!":true};var j={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var r;var i;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:D,value:">=",start:t}}else{return{type:_,value:">",start:t}}}else if(r==="="){if(e[this._current]==="="){this._current++;return{type:T,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var r=this._current;var i=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(r.indexOf(e)>=0){return true}else if(i.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var U={};U[h]=0;U[p]=0;U[d]=0;U[v]=0;U[m]=0;U[g]=0;U[E]=0;U[w]=0;U[C]=0;U[S]=0;U[b]=1;U[I]=2;U[x]=3;U[T]=5;U[_]=5;U[P]=5;U[D]=5;U[R]=5;U[N]=5;U[A]=9;U[L]=20;U[M]=21;U[F]=40;U[O]=45;U[q]=50;U[X]=55;U[k]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==h){var r=this._lookaheadToken(0);var i=new Error("Unexpected token type: "+r.type+", value: "+r.value);i.name="ParserError";throw i}return t},_loadTokens:function(e){var t=new Lexer;var r=t.tokenize(e);r.push({type:h,value:"",start:e.length});this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();var r=this.nud(t);var i=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===X){this._match(X);return this._parseMultiselectList()}else if(t===q){this._match(q);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(U[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===X){t=this.expression(e)}else if(this._lookahead(0)===M){t=this.expression(e)}else if(this._lookahead(0)===F){this._match(F);t=this._parseDotRHS(e)}else{var r=this._lookaheadToken(0);var i=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");i.name="ParserError";throw i}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==v){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===v){throw new Error("Unexpected token Rbracket")}}}this._match(v);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[p,d];var r,i,n,s;for(;;){r=this._lookaheadToken(0);if(t.indexOf(r.type)<0){throw new Error("Expecting an identifier token, got: "+r.type)}i=r.value;this._advance();this._match(y);n=this.expression(0);s={type:"KeyValuePair",name:i,value:n};e.push(s);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===E){this._match(E);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var r,i,n,s,o,a,u,c,l,f;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){a=t[e.name];if(a===undefined){return null}else{return a}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(f=1;f0){for(f=v;fm;f+=g){n.push(t[f])}}return n;case"Projection":var y=this.visit(e.children[0],t);if(!isArray(y)){return null}l=[];for(f=0;fo;break;case D:n=s>=o;break;case P:n=s=e){t=r<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[r]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[r]}]},contains:{_func:this._functionContains,_signature:[{types:[n,s]},{types:[i]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[r]}]},length:{_func:this._functionLength,_signature:[{types:[n,s,o]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[s]}]},max:{_func:this._functionMax,_signature:[{types:[l,f]}]},merge:{_func:this._functionMerge,_signature:[{types:[o],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[s]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[l,f]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[s]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[i]}]},keys:{_func:this._functionKeys,_signature:[{types:[o]}]},values:{_func:this._functionValues,_signature:[{types:[o]}]},sort:{_func:this._functionSort,_signature:[{types:[f,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[s]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[f]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,s]}]},to_array:{_func:this._functionToArray,_signature:[{types:[i]}]},to_string:{_func:this._functionToString,_signature:[{types:[i]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[i]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[i],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(r===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,r._signature);return r._func.call(this,t)},_validateArgs:function(e,t,r){var i;if(r[r.length-1].variadic){if(t.length=0;s--){i+=r[s]}return i}else{var o=e[0].slice(0);o.reverse();return o}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var r=e[0];for(var i=0;i=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var r=this._interpreter;var i=e[0];var n=e[1];for(var s=0;s0){var t=this._getTypeName(e[0][0]);if(t===r){return Math.max.apply(Math,e[0])}else{var i=e[0];var n=i[0];for(var s=1;s0){var t=this._getTypeName(e[0][0]);if(t===r){return Math.min.apply(Math,e[0])}else{var i=e[0];var n=i[0];for(var s=1;sn){return 1}else if(ro){o=u;a=i[c]}}return a},_functionMinBy:function(e){var t=e[1];var i=e[0];var s=this.createKeyFunction(t,[r,n]);var o=Infinity;var a;var u;for(var c=0;c=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};o=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,r,n;this.options={};r=i["0.2"];for(t in r){if(!a.call(r,t))continue;n=r[t];this.options[t]=n}for(t in e){if(!a.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var r,n,u,c,l;r=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===i["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}u=function(e){return function(t,i){var c,l,f,h,p,d;if(typeof i!=="object"){if(e.options.cdata&&s(i)){t.raw(o(i))}else{t.txt(i)}}else if(Array.isArray(i)){for(h in i){if(!a.call(i,h))continue;l=i[h];for(p in l){f=l[p];t=u(t.ele(p),f).up()}}}else{for(p in i){if(!a.call(i,p))continue;l=i[p];if(p===r){if(typeof l==="object"){for(c in l){d=l[c];t=t.att(c,d)}}}else if(p===n){if(e.options.cdata&&s(l)){t=t.raw(o(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(h in l){if(!a.call(l,h))continue;f=l[h];if(typeof f==="string"){if(e.options.cdata&&s(f)){t=t.ele(p).raw(o(f)).up()}else{t=t.ele(p,f).up()}}else{t=u(t.ele(p),f).up()}}}else if(typeof l==="object"){t=u(t.ele(p),l).up()}else{if(typeof l==="string"&&e.options.cdata&&s(l)){t=t.ele(p).raw(o(l)).up()}else{if(l==null){l=""}t=t.ele(p,l.toString()).up()}}}}return t}}(this);c=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},2318:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},904:function(e,t,r){(function(){"use strict";var e,i,n,s,o,a,u,c,l=function(e,t){return function(){return e.apply(t,arguments)}},f=function(e,t){for(var r in t){if(h.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},h={}.hasOwnProperty;u=r(4251);n=r(8614);e=r(2857);a=r(3719);c=r(8213).setImmediate;i=r(2318).defaults;s=function(e){return typeof e==="object"&&e!=null&&Object.keys(e).length===0};o=function(e,t,r){var i,n,s;for(i=0,n=e.length;i0){u[e.options.childkey]=l}l=u}else if(d){d[e.options.childkey]=d[e.options.childkey]||[];f={};for(a in l){if(!h.call(l,a))continue;f[a]=l[a]}d[e.options.childkey].push(f);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(i.length>0){return e.assignOrPush(d,c,l)}else{if(e.options.explicitRoot){p=l;l={};l[c]=p}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);r=function(e){return function(r){var n,s;s=i[i.length-1];if(s){s[t]+=r;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||r.replace(/\\n/g,"").trim()!=="")){s[e.options.childkey]=s[e.options.childkey]||[];n={"#name":"__text__"};n[t]=r;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}s[e.options.childkey].push(n)}return s}}}(this);this.saxParser.ontext=r;return this.saxParser.oncdata=function(e){return function(e){var t;t=r(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,r){var i;if(r!=null&&typeof r==="function"){this.on("end",function(e){this.reset();return r(null,e)});this.on("error",function(e){this.reset();return r(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){i=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",i);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw i}}};return Parser}(n.EventEmitter);t.parseString=function(e,r,i){var n,s,o;if(i!=null){if(typeof i==="function"){n=i}if(typeof r==="object"){s=r}}else{if(typeof r==="function"){n=r}s={}}o=new t.Parser(s);return o.parseString(e,n)}}).call(this)},3719:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},6139:function(e,t,r){(function(){"use strict";var e,i,n,s,o=function(e,t){for(var r in t){if(a.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;i=r(2318);e=r(1657);n=r(904);s=r(3719);t.defaults=i.defaults;t.processors=s;t.ValidationError=function(e){o(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},4251:(e,t,r)=>{(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,r){if(!(this instanceof SAXParser)){return new SAXParser(t,r)}var i=this;clearBuffers(i);i.q=i.c="";i.bufferCheckPosition=e.MAX_BUFFER_LENGTH;i.opt=r||{};i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags;i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase";i.tags=[];i.closed=i.closedRoot=i.sawRoot=false;i.tag=i.error=null;i.strict=!!t;i.noscript=!!(t||i.opt.noscript);i.state=d.BEGIN;i.strictEntities=i.opt.strictEntities;i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);i.attribList=[];if(i.opt.xmlns){i.ns=Object.create(c)}i.trackPosition=i.opt.position!==false;if(i.trackPosition){i.position=i.line=i.column=0}emit(i,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))t.push(r);return t}}function checkBufferLength(r){var i=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var s=0,o=t.length;si){switch(t[s]){case"textNode":closeText(r);break;case"cdata":emitNode(r,"oncdata",r.cdata);r.cdata="";break;case"script":emitNode(r,"onscript",r.script);r.script="";break;default:error(r,"Max buffer length exceeded: "+t[s])}}n=Math.max(n,a)}var u=e.MAX_BUFFER_LENGTH-n;r.bufferCheckPosition=u+r.position}function clearBuffers(e){for(var r=0,i=t.length;r"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var d=0;e.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var r=e.ENTITIES[t];var i=typeof r==="number"?String.fromCharCode(r):r;e.ENTITIES[t]=i});for(var v in e.STATE){e.STATE[e.STATE[v]]=v}d=e.STATE;function emit(e,t,r){e[t]&&e[t](r)}function emitNode(e,t,r){if(e.textNode)closeText(e);emit(e,t,r)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==d.BEGIN&&e.state!==d.BEGIN_WHITESPACE&&e.state!==d.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var r=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){r.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",r)}function qname(e,t){var r=e.indexOf(":");var i=r<0?["",e]:e.split(":");var n=i[0];var s=i[1];if(t&&e==="xmlns"){n="xmlns";s=""}return{prefix:n,local:s}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var r=t.prefix;var i=t.local;if(r==="xmlns"){if(i==="xml"&&e.attribValue!==a){strictFail(e,"xml: prefix must be bound to "+a+"\n"+"Actual: "+e.attribValue)}else if(i==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var s=e.tags[e.tags.length-1]||e;if(n.ns===s.ns){n.ns=Object.create(s.ns)}n.ns[i]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var r=e.tag;var i=qname(e.tagName);r.prefix=i.prefix;r.local=i.local;r.uri=r.ns[i.prefix]||"";if(r.prefix&&!r.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));r.uri=i.prefix}var n=e.tags[e.tags.length-1]||e;if(r.ns&&n.ns!==r.ns){Object.keys(r.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:r.ns[t]})})}for(var s=0,o=e.attribList.length;s";e.tagName="";e.state=d.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var r=e.tagName;if(!e.strict){r=r[e.looseCase]()}var i=r;while(t--){var n=e.tags[t];if(n.name!==i){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=d.TEXT;return}e.tagName=r;var s=e.tags.length;while(s-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var a={};for(var u in o.ns){a[u]=o.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&o.ns!==c.ns){Object.keys(o.ns).forEach(function(t){var r=o.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:r})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=d.TEXT}function parseEntity(e){var t=e.entity;var r=t.toLowerCase();var i;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[r]){return e.ENTITIES[r]}t=r;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);i=parseInt(t,16);n=i.toString(16)}else{t=t.slice(1);i=parseInt(t,10);n=i.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(i)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(i)}function beginWhiteSpace(e,t){if(t==="<"){e.state=d.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=d.TEXT}}function charAt(e,t){var r="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=d.TEXT}else if(isQuote(i)){t.state=d.SGML_DECL_QUOTED;t.sgmlDecl+=i}else{t.sgmlDecl+=i}continue;case d.SGML_DECL_QUOTED:if(i===t.q){t.state=d.SGML_DECL;t.q=""}t.sgmlDecl+=i;continue;case d.DOCTYPE:if(i===">"){t.state=d.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=i;if(i==="["){t.state=d.DOCTYPE_DTD}else if(isQuote(i)){t.state=d.DOCTYPE_QUOTED;t.q=i}}continue;case d.DOCTYPE_QUOTED:t.doctype+=i;if(i===t.q){t.q="";t.state=d.DOCTYPE}continue;case d.DOCTYPE_DTD:t.doctype+=i;if(i==="]"){t.state=d.DOCTYPE}else if(isQuote(i)){t.state=d.DOCTYPE_DTD_QUOTED;t.q=i}continue;case d.DOCTYPE_DTD_QUOTED:t.doctype+=i;if(i===t.q){t.state=d.DOCTYPE_DTD;t.q=""}continue;case d.COMMENT:if(i==="-"){t.state=d.COMMENT_ENDING}else{t.comment+=i}continue;case d.COMMENT_ENDING:if(i==="-"){t.state=d.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+i;t.state=d.COMMENT}continue;case d.COMMENT_ENDED:if(i!==">"){strictFail(t,"Malformed comment");t.comment+="--"+i;t.state=d.COMMENT}else{t.state=d.TEXT}continue;case d.CDATA:if(i==="]"){t.state=d.CDATA_ENDING}else{t.cdata+=i}continue;case d.CDATA_ENDING:if(i==="]"){t.state=d.CDATA_ENDING_2}else{t.cdata+="]"+i;t.state=d.CDATA}continue;case d.CDATA_ENDING_2:if(i===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=d.TEXT}else if(i==="]"){t.cdata+="]"}else{t.cdata+="]]"+i;t.state=d.CDATA}continue;case d.PROC_INST:if(i==="?"){t.state=d.PROC_INST_ENDING}else if(isWhitespace(i)){t.state=d.PROC_INST_BODY}else{t.procInstName+=i}continue;case d.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(i)){continue}else if(i==="?"){t.state=d.PROC_INST_ENDING}else{t.procInstBody+=i}continue;case d.PROC_INST_ENDING:if(i===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=d.TEXT}else{t.procInstBody+="?"+i;t.state=d.PROC_INST_BODY}continue;case d.OPEN_TAG:if(isMatch(f,i)){t.tagName+=i}else{newTag(t);if(i===">"){openTag(t)}else if(i==="/"){t.state=d.OPEN_TAG_SLASH}else{if(!isWhitespace(i)){strictFail(t,"Invalid character in tag name")}t.state=d.ATTRIB}}continue;case d.OPEN_TAG_SLASH:if(i===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=d.ATTRIB}continue;case d.ATTRIB:if(isWhitespace(i)){continue}else if(i===">"){openTag(t)}else if(i==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(l,i)){t.attribName=i;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME:if(i==="="){t.state=d.ATTRIB_VALUE}else if(i===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(i)){t.state=d.ATTRIB_NAME_SAW_WHITE}else if(isMatch(f,i)){t.attribName+=i}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME_SAW_WHITE:if(i==="="){t.state=d.ATTRIB_VALUE}else if(isWhitespace(i)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(i===">"){openTag(t)}else if(isMatch(l,i)){t.attribName=i;t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=d.ATTRIB}}continue;case d.ATTRIB_VALUE:if(isWhitespace(i)){continue}else if(isQuote(i)){t.q=i;t.state=d.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=d.ATTRIB_VALUE_UNQUOTED;t.attribValue=i}continue;case d.ATTRIB_VALUE_QUOTED:if(i!==t.q){if(i==="&"){t.state=d.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=i}continue}attrib(t);t.q="";t.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:if(isWhitespace(i)){t.state=d.ATTRIB}else if(i===">"){openTag(t)}else if(i==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(l,i)){strictFail(t,"No whitespace between attributes");t.attribName=i;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(i)){if(i==="&"){t.state=d.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=i}continue}attrib(t);if(i===">"){openTag(t)}else{t.state=d.ATTRIB}continue;case d.CLOSE_TAG:if(!t.tagName){if(isWhitespace(i)){continue}else if(notMatch(l,i)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(f,i)){t.tagName+=i}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case d.TEXT_ENTITY:u=d.TEXT;c="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:u=d.ATTRIB_VALUE_QUOTED;c="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:u=d.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(i===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?p:h,i)){t.entity+=i}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+i;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var r=function(){var r=16384;var i=[];var n;var s;var o=-1;var a=arguments.length;if(!a){return""}var u="";while(++o1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){i.push(c)}else{c-=65536;n=(c>>10)+55296;s=c%1024+56320;i.push(n,s)}if(o+1===a||i.length>r){u+=e.apply(null,i);i.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:r,configurable:true,writable:true})}else{String.fromCodePoint=r}})()}})(false?0:t)},7600:function(e){(function(){var t,r,i,n,s,o,a=[].slice,u={}.hasOwnProperty;t=function(){var e,t,r,i,s,o;o=arguments[0],s=2<=arguments.length?a.call(arguments,1):[];if(n(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,r=s.length;e=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof h){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,r){return this.node(e,t,r)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,r){return this.declaration(e,t,r)};XMLDocumentCB.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)};XMLDocumentCB.prototype.e=function(e,t,r){return this.element(e,t,r)};XMLDocumentCB.prototype.n=function(e,t,r){return this.node(e,t,r)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},7961:function(e,t,r){(function(){var t,i,n,s,o,a,u=function(e,t){for(var r in t){if(c.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;a=r(7600),o=a.isObject,s=a.isFunction;n=r(5542);t=r(8444);e.exports=i=function(e){u(XMLElement,e);function XMLElement(e,t,r){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(r!=null){this.attribute(r)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,r,i;r=Object.create(this);if(r.isRoot){r.documentObject=null}r.attributes={};i=this.attributes;for(t in i){if(!c.call(i,t))continue;e=i[t];r.attributes[t]=e.clone()}r.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=r;return r.children.push(t)});return r};XMLElement.prototype.attribute=function(e,r){var i,n;if(e!=null){e=e.valueOf()}if(o(e)){for(i in e){if(!c.call(e,i))continue;n=e[i];this.attribute(i,n)}}else{if(s(r)){r=r.apply()}if(!this.options.skipNullAttributes||r!=null){this.attributes[e]=new t(this,e,r)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,r,i;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(r=0,i=e.length;r"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,r){var u,c,l,h;r||(r=0);this.stream.write(this.space(r));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));h=e.children;for(c=0,l=h.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,r){var n,s,o,a,u,c,p,v;r||(r=0);v=this.space(r);this.stream.write(v+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);p=e.children;for(o=0,a=p.length;o")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(v)}).call(this)},8449:function(e,t,r){(function(){var t,i,n,s,o,a,u,c,l,f,h,p,d,v,m=function(e,t){for(var r in t){if(g.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=r(4086);c=r(7441);t=r(9244);i=r(2414);l=r(7961);h=r(4414);d=r(7958);f=r(5262);n=r(465);s=r(481);o=r(8499);a=r(2500);v=r(2473);e.exports=p=function(e){m(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,r,n,s,o;this.textispresent=false;s="";o=e.children;for(r=0,n=o.length;r"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var r;r=this.space(t);r+='";r+=this.newline;return r};XMLStringWriter.prototype.docType=function(e,r){var u,c,l,h,p;r||(r=0);h=this.space(r);h+="0){h+=" [";h+=this.newline;p=e.children;for(c=0,l=p.length;c";h+=this.newline;return h};XMLStringWriter.prototype.element=function(e,r){var n,s,o,a,u,c,p,v,m,y,E,w,C;r||(r=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}w=this.space(r);v="";v+=w+"<"+e.name;m=e.attributes;for(p in m){if(!g.call(m,p))continue;n=m[p];v+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){v+=">"+this.newline}else{v+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){v+=">";v+=e.children[0].value;v+=""+this.newline}else{if(this.dontprettytextnodes){y=e.children;for(o=0,u=y.length;o"+this.newline;E=e.children;for(a=0,c=E.length;a"+this.newline}return v};XMLStringWriter.prototype.processingInstruction=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.dtdNotation=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.openNode=function(e,t){var r,i,n,s;t||(t=0);if(e instanceof l){n=this.space(t)+"<"+e.name;s=e.attributes;for(i in s){if(!g.call(s,i))continue;r=s[i];n+=this.attribute(r)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(v)}).call(this)},2627:function(e){(function(){var t,r=function(e,t){return function(){return e.apply(t,arguments)}},i={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=r(this.assertLegalChar,this);var t,n,s;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!i.call(n,t))continue;s=n[t];this[t]=s}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},4970:function(e,t,r){(function(){var t,i,n,s,o,a,u;u=r(7600),o=u.assign,a=u.isFunction;t=r(5071);i=r(1591);s=r(8449);n=r(2910);e.exports.create=function(e,r,i,n){var s,a;if(e==null){throw new Error("Root element needs a name")}n=o({},r,i,n);s=new t(n);a=s.element(e);if(!n.headless){s.declaration(n);if(n.pubID!=null||n.sysID!=null){s.doctype(n)}}return a};e.exports.begin=function(e,r,n){var s;if(a(e)){s=[e,r],r=s[0],n=s[1];e={}}if(r){return new i(e,r,n)}else{return new t(e)}};e.exports.stringWriter=function(e){return new s(e)};e.exports.streamWriter=function(e,t){return new n(e,t)}}).call(this)},8746:(e,t,r)=>{"use strict";r.r(t);r.d(t,{default:()=>u});var i=r(5316);var n=r.n(i);var s=r(2726);var o=r.n(s);function exportEnvVariables(e){i.exportVariable("AWS_ACCESS_KEY_ID",e.accessKeyId);i.exportVariable("AWS_SECRET_ACCESS_KEY",e.secretAccessKey);if(e.sessionToken){i.exportVariable("AWS_SESSION_TOKEN",e.sessionToken)}i.exportVariable("AWS_DEFAULT_REGION",e.region);i.exportVariable("AWS_REGION",e.region)}const a=async()=>{try{const e=i.getInput("aws-region",{required:true});const t=i.getInput("aws-access-key-id",{required:true});const r=i.getInput("aws-secret-access-key",{required:true});const n=i.getInput("aws-session-token",{required:false});const o=i.getInput("mask-aws-account-id",{required:false});const a={region:e,accessKeyId:t,secretAccessKey:r,sessionToken:n,maskAccountId:o};exportEnvVariables(a);const u=i.getInput("assume-role",{required:false});const c=u&&u.toLowerCase()=="true";const l=i.getInput("role-arn",{required:c});const f=i.getInput("role-session-name",{required:c});const h=i.getInput("duration-seconds",{required:false});const p=Math.max(parseInt(h),900);const d=i.getInput("external-id",{required:false});const v=new s({apiVersion:"2011-06-15",customUserAgent:"aws-github-actions-sts"});const m={RoleArn:l,RoleSessionName:f,DurationSecond:p,ExternalId:d};if(c){const e=await v.assumeRole(m).promise();a.accessKeyId=e.Credentials.AccessKeyId;a.secretAccessKey=e.Credentials.SecretAccessKey;a.sessionToken=e.Credentials.SessionToken;exportEnvVariables(a)}const g=await v.getCallerIdentity().promise();const y=g.Account;i.setOutput("aws-account-id",y);if(!a.maskAccountId||a.maskAccountId.toLowerCase()=="true"){i.setSecret(y)}}catch(e){i.setFailed(e.message)}};a();const u=a},2271:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}}},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}}},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}}}}')},9007:e=>{"use strict";e.exports={o:{}}},5847:e=>{"use strict";e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena"},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2"},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"}}')},3966:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sh":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sm":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},9227:e=>{"use strict";e.exports={o:{}}},4223:e=>{"use strict";e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"}}}')},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},6417:e=>{"use strict";e.exports=require("crypto")},6200:e=>{"use strict";e.exports=require("dgram")},5229:e=>{"use strict";e.exports=require("domain")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1191:e=>{"use strict";e.exports=require("querystring")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var i=t[r]={exports:{}};var n=true;try{e[r].call(i.exports,i,i.exports,__webpack_require__);n=false}finally{if(n)delete t[r]}return i.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(8746)})(); \ No newline at end of file diff --git a/packages/iam_access_credentials/index.ts b/iam_access_credentials/index.ts similarity index 100% rename from packages/iam_access_credentials/index.ts rename to iam_access_credentials/index.ts diff --git a/packages/iam_access_credentials/package.json b/iam_access_credentials/package.json similarity index 100% rename from packages/iam_access_credentials/package.json rename to iam_access_credentials/package.json diff --git a/package.json b/package.json index 8ec32e0..f1cc988 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,11 @@ "homepage": "https://github.com/clowdhaus/aws-github-actions#readme", "private": true, "workspaces": [ - "packages/*" + "awscli", + "cloudfront_invalidate", + "iam_access_credentials", + "packages/*", + "s3_sync" ], "scripts": { "build": "lerna run build && lerna run compile", diff --git a/packages/awscli/dist/index.js b/packages/awscli/dist/index.js deleted file mode 100644 index c30962b..0000000 --- a/packages/awscli/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=(()=>{var e={548:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));const s=r(472);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},117:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(548);const o=r(469);const a=r(472);const c=i(r(87));const u=i(r(622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;o.issueCommand("ENV",n)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},469:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(747));const s=n(r(87));const o=r(472);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${o.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},473:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(66));function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=s.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new s.ToolRunner(i,t,r);return o.exec()})}t.exec=exec},66:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(87));const o=i(r(614));const a=i(r(129));const c=i(r(622));const u=i(r(890));const l=i(r(327));const f=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(f){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(s.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+s.EOL.length);i=n.indexOf(s.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+s.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const o=a.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));const c="";if(o.stdout){o.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const u="";if(o.stderr){o.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}o.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});o.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});o.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let s=0;s0){t.push(i);i=""}continue}append(o)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(211);const o=r(466);let a;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const d=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const p=["OPTIONS","GET","DELETE","HEAD"];const h=10;const E=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){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=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&p.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const a=l.message.headers["location"];if(!a){break}let c=n.parse(a);if(s.protocol=="https:"&&s.protocol!=c.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.")}await l.readBody();if(c.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,c,i);l=await this.requestRaw(o,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let c=n&&n.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(c){if(!a){a=r(382)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(u){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=u?s.globalAgent:i.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(h,e);const t=E*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==c.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},327:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const s=r(357);const o=r(747);const a=r(622);i=o.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){s.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const s of r){e=i+s;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},890:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const s=r(622);const o=r(669);const a=r(327);const c=o.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const o=(yield a.exists(t))?yield a.stat(t):null;if(o&&o.isFile()&&!n){return}const c=o&&o.isDirectory()?s.join(t,s.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield a.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(s.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=s.join(t,s.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(s.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(s.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+s.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const s of n){const n=`${e}/${s}`;const o=`${t}/${s}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,r,i)}else{yield copyFile(n,o,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},399:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(800));const o=r(117);const a=r(87);const c=r(129);const u=r(747);function _findMatch(t,r,i,c){return n(this,void 0,void 0,function*(){const n=a.platform();let u;let l;let f;for(const a of i){const i=a.version;o.debug(`check ${i} satisfies ${t}`);if(s.satisfies(i,t)&&(!r||a.stable===r)){f=a.files.find(t=>{o.debug(`${t.arch}===${c} && ${t.platform}===${n}`);let r=t.arch===c&&t.platform===n;if(r&&t.platform_version){const n=e.exports._getOsVersion();if(n===t.platform_version){r=true}else{r=s.satisfies(n,t.platform_version)}}return r});if(f){o.debug(`matched ${a.version}`);l=a;break}}}if(l&&f){u=Object.assign({},l);u.files=[f]}return u})}t._findMatch=_findMatch;function _getOsVersion(){const t=a.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&e[0].trim()==="DISTRIB_RELEASE"){r=e[1].trim();break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";let t="";if(u.existsSync(e)){t=u.readFileSync(e).toString()}return t}t._readLinuxVersionFile=_readLinuxVersionFile},984:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(117));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,function*(){let r=1;while(rsetTimeout(t,e*1e3))})}}t.RetryHelper=RetryHelper},834:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(117));const a=i(r(890));const c=i(r(747));const u=i(r(399));const l=i(r(87));const f=i(r(622));const d=i(r(926));const p=i(r(800));const h=i(r(413));const E=i(r(669));const v=s(r(576));const y=r(473);const w=r(357);const g=r(984);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,undefined)}}t.HTTPError=HTTPError;const m=process.platform==="win32";const R=process.platform==="darwin";const S="actions/tool-cache";function downloadTool(e,t,r){return n(this,void 0,void 0,function*(){t=t||f.join(_getTempDirectory(),v.default());yield a.mkdirP(f.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const i=3;const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new g.RetryHelper(i,s,c);return yield u.execute(()=>n(this,void 0,void 0,function*(){return yield downloadToolAttempt(e,t||"",r)}),e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true})})}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r){return n(this,void 0,void 0,function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new d.HttpClient(S,[],{allowRetries:false});let i;if(r){o.debug("set auth");i={authorization:r}}const s=yield n.get(e,i);if(s.message.statusCode!==200){const t=new HTTPError(s.message.statusCode);o.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`);throw t}const u=E.promisify(h.pipeline);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>s.message);const f=l();let p=false;try{yield u(f,c.createWriteStream(t));o.debug("download complete");p=true;return t}finally{if(!p){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}})}function extract7z(e,t,r){return n(this,void 0,void 0,function*(){w.ok(m,"extract7z() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=o.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield y.exec(`"${r}"`,i,s)}finally{process.chdir(n)}}else{const r=f.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=`& '${r}' -Source '${i}' -Target '${s}'`;const c=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",o];const u={silent:true};try{const e=yield a.which("powershell",true);yield y.exec(`"${e}"`,c,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let n="";yield y.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});o.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let s;if(r instanceof Array){s=r}else{s=[r]}if(o.isDebug()&&!r.includes("v")){s.push("-v")}let a=t;let c=e;if(m&&i){s.push("--force-local");a=t.replace(/\\/g,"/");c=e.replace(/\\/g,"/")}if(i){s.push("--warning=no-unknown-keyword")}s.push("-C",a,"-f",c);yield y.exec(`tar`,s);return t})}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,function*(){w.ok(R,"extractXar() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(o.isDebug()){n.push("-v")}const i=yield a.which("xar",true);yield y.exec(`"${i}"`,_unique(n));return t})}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(m){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield a.which("powershell",true);const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield y.exec(`"${s}"`,o)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield a.which("unzip",true);const n=[e];if(!o.isDebug()){n.unshift("-q")}yield y.exec(`"${r}"`,n,{cwd:t})})}function cacheDir(e,t,r,i){return n(this,void 0,void 0,function*(){r=p.clean(r)||r;i=i||l.arch();o.debug(`Caching tool ${t} ${r} ${i}`);o.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=f.join(e,t);yield a.cp(r,n,{recursive:true})}_completeToolPath(t,r,i);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,function*(){i=p.clean(i)||i;s=s||l.arch();o.debug(`Caching tool ${r} ${i} ${s}`);o.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,i,s);const u=f.join(n,t);o.debug(`destination file ${u}`);yield a.cp(e,u);_completeToolPath(r,i,s);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||l.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=p.clean(t)||"";const i=f.join(_getCacheDirectory(),e,t,r);o.debug(`checking cache: ${i}`);if(c.existsSync(i)&&c.existsSync(`${i}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${r}`);n=i}else{o.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||l.arch();const n=f.join(_getCacheDirectory(),e);if(c.existsSync(n)){const e=c.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=f.join(n,i,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,function*(){let n=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const a=new d.HttpClient("tool-cache");const c={};if(r){o.debug("set auth");c.authorization=r}const u=yield a.getJson(s,c);if(!u.result){return n}let l="";for(const e of u.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}c["accept"]="application/vnd.github.VERSION.raw";let f=yield(yield a.get(l,c)).readBody();if(f){f=f.replace(/^\uFEFF/,"");try{n=JSON.parse(f)}catch(e){o.debug("Invalid json")}}return n})}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=l.arch()){return n(this,void 0,void 0,function*(){const n=yield u._findMatch(e,t,r,i);return n})}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=f.join(_getTempDirectory(),v.default())}yield a.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");o.debug(`destination ${n}`);const i=`${n}.complete`;yield a.rmRF(n);yield a.rmRF(i);yield a.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=f.join(_getCacheDirectory(),e,p.clean(t)||t,r||"");const i=`${n}.complete`;c.writeFileSync(i,"");o.debug("finished caching tool")}function _isExplicitVersion(e){const t=p.clean(e)||"";o.debug(`isExplicit: ${t}`);const r=p.valid(t)!=null;o.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";o.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(p.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const s=p.satisfies(i,t);if(s){r=i;break}}if(r){o.debug(`matched: ${r}`)}else{o.debug("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";w.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";w.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},800:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";o[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";o[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";o[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var p=0;pn){return null}var r=t.loose?o[c.LOOSE]:o[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[c.LOOSE]:o[c.FULL]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var h=/^[0-9]+$/;function compareIdentifiers(e,t){var r=h.test(e);var n=h.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===E){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var E={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=E}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===E||e===E){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[c.COMPARATORTRIM],d);r("comparator trim",e,o[c.COMPARATORTRIM]);e=e.replace(o[c.TILDETRIM],l);e=e.replace(o[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[c.TILDELOOSE]:o[c.TILDE];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[c.CARETLOOSE]:o[c.CARET];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return e.replace(n,function(n,i,s,o,a,c){r("xRange",e,n,i,s,o,a,c);var u=isX(s);var l=u||isX(o);var f=l||isX(a);var d=f;if(i==="="&&d){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&d){if(l){o=0}a=0;if(i===">"){i=">=";if(l){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(l){s=+s+1}else{o=+o+1}}n=i+s+"."+o+"."+a+c}else if(l){n=">="+s+".0.0"+c+" <"+(+s+1)+".0.0"+c}else if(f){n=">="+s+"."+o+".0"+c+" <"+s+"."+(+o+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[c.STAR],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;d=d||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,d.semver,n)){d=e}});if(f.operator===a||f.operator===c){return false}if((!d.operator||d.operator===a)&&s(e,d.semver)){return false}else if(d.operator===c&&o(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(o[c.COERCE])}else{var n;while((n=o[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}o[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}o[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},574:(e,t)=>{"use strict";var r;r=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var i=e;var s=[];if(t){s.push(t)}if(r){s.push(r)}var o;do{o=n.exec(i);if(o!==null){s.push(firstString(o[1],o[6],o[0]))}}while(o!==null);return s}t.ZP=parseArgsStringToArgv;r=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t{e.exports=r(418)},418:(e,t,r)=>{"use strict";var n=r(631);var i=r(16);var s=r(605);var o=r(211);var a=r(614);var c=r(357);var u=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,i){var s=toOptions(r,n,i);for(var o=0,a=t.requests.length;o=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");o.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},74:(e,t,r)=>{var n=r(417);e.exports=function nodeRNG(){return n.randomBytes(16)}},576:(e,t,r)=>{var n=r(74);var i=r(42);function v4(e,t,r){var s=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||n)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var a=0;a<16;++a){t[s+a]=o[a]}}return t||i(o)}e.exports=v4},643:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]{"use strict";r.r(t);r.d(t,{default:()=>u});var n=r(117);var i=r.n(n);var s=r(574);var o=r(643);var a=r.n(o);const c=async()=>{try{const e=n.getInput("cli-command",{required:true});const t=n.getInput("cli-subcommand",{required:true});const r=(0,s.ZP)(n.getInput("cli-options",{required:false}).trim());const i=(0,s.ZP)(n.getInput("cli-parameters",{required:false}).trim());const o=n.getInput("aws-region",{required:true});const c=await a().getOrInstall();const u=[...r,e,t,...i,"--region",o];const l=await c.callStdout(u);n.setOutput("cli-output",l)}catch(e){n.setFailed(e.message)}};c();const u=c},357:e=>{"use strict";e.exports=require("assert")},129:e=>{"use strict";e.exports=require("child_process")},417:e=>{"use strict";e.exports=require("crypto")},614:e=>{"use strict";e.exports=require("events")},747:e=>{"use strict";e.exports=require("fs")},605:e=>{"use strict";e.exports=require("http")},211:e=>{"use strict";e.exports=require("https")},631:e=>{"use strict";e.exports=require("net")},87:e=>{"use strict";e.exports=require("os")},622:e=>{"use strict";e.exports=require("path")},765:e=>{"use strict";e.exports=require("process")},413:e=>{"use strict";e.exports=require("stream")},16:e=>{"use strict";e.exports=require("tls")},835:e=>{"use strict";e.exports=require("url")},669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete t[r]}return n.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(178)})(); \ No newline at end of file diff --git a/packages/cloudfront_invalidate/dist/index.js b/packages/cloudfront_invalidate/dist/index.js deleted file mode 100644 index 062a2dc..0000000 --- a/packages/cloudfront_invalidate/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=(()=>{var e={9548:function(e,t,i){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=r(i(2087));const o=i(7472);function issueCommand(e,t,i){const r=new Command(e,t,i);process.stdout.write(r.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const a="::";class Command{constructor(e,t,i){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=i}toString(){let e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const i in this.properties){if(this.properties.hasOwnProperty(i)){const r=this.properties[i];if(r){if(t){t=false}else{e+=","}e+=`${i}=${escapeProperty(r)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function escapeData(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7117:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){function adopt(e){return e instanceof i?e:new i(function(t){t(e)})}return new(i||(i=Promise))(function(i,n){function fulfilled(e){try{step(r.next(e))}catch(e){n(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){n(e)}}function step(e){e.done?i(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=i(9548);const a=i(2469);const s=i(7472);const u=n(i(2087));const c=n(i(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const i=s.toCommandValue(t);process.env[e]=i;const r=process.env["GITHUB_ENV"]||"";if(r){const t="_GitHubActionsFileCommandDelimeter_";const r=`${e}<<${t}${u.EOL}${i}${u.EOL}${t}`;a.issueCommand("ENV",r)}else{o.issueCommand("set-env",{name:e},i)}}t.exportVariable=exportVariable;function setSecret(e){o.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){a.issueCommand("PATH",e)}else{o.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const i=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!i){throw new Error(`Input required and not supplied: ${e}`)}return i.trim()}t.getInput=getInput;function setOutput(e,t){o.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){o.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){o.issueCommand("debug",{},e)}t.debug=debug;function error(e){o.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){o.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){o.issue("group",e)}t.startGroup=startGroup;function endGroup(){o.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let i;try{i=yield t()}finally{endGroup()}return i})}t.group=group;function saveState(e,t){o.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},2469:function(e,t,i){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=r(i(5747));const o=r(i(2087));const a=i(7472);function issueCommand(e,t){const i=process.env[`GITHUB_${e}`];if(!i){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(i)){throw new Error(`Missing file at path: ${i}`)}n.appendFileSync(i,`${a.toCommandValue(t)}${o.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},7472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},7749:(e,t,i)=>{i(2432);var r=i(8738);var n=r.Service;var o=r.apiLoader;o.services["cloudfront"]={};r.CloudFront=n.defineService("cloudfront",["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25","2016-11-25*","2017-03-25","2017-03-25*","2017-10-30","2017-10-30*","2018-06-18","2018-06-18*","2018-11-05","2018-11-05*","2019-03-26","2019-03-26*","2020-05-31"]);i(5689);Object.defineProperty(o.services["cloudfront"],"2016-11-25",{get:function get(){var e=i(8866);e.paginators=i(8238).o;e.waiters=i(554).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-03-25",{get:function get(){var e=i(1927);e.paginators=i(4471).o;e.waiters=i(5903).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2017-10-30",{get:function get(){var e=i(5316);e.paginators=i(2603).o;e.waiters=i(215).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-06-18",{get:function get(){var e=i(2621);e.paginators=i(1432).o;e.waiters=i(393).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2018-11-05",{get:function get(){var e=i(721);e.paginators=i(8762).o;e.waiters=i(3113).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2019-03-26",{get:function get(){var e=i(6817);e.paginators=i(2645).o;e.waiters=i(6997).V;return e},enumerable:true,configurable:true});Object.defineProperty(o.services["cloudfront"],"2020-05-31",{get:function get(){var e=i(9711);e.paginators=i(4840).o;e.waiters=i(2802).V;return e},enumerable:true,configurable:true});e.exports=r.CloudFront},5066:(e,t,i)=>{i(2432);var r=i(8738);var n=r.Service;var o=r.apiLoader;o.services["cognitoidentity"]={};r.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);i(8142);Object.defineProperty(o.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=i(9875);e.paginators=i(7067).o;return e},enumerable:true,configurable:true});e.exports=r.CognitoIdentity},7181:(e,t,i)=>{i(2432);var r=i(8738);var n=r.Service;var o=r.apiLoader;o.services["sts"]={};r.STS=n.defineService("sts",["2011-06-15"]);i(7046);Object.defineProperty(o.services["sts"],"2011-06-15",{get:function get(){var e=i(6129);e.paginators=i(7202).o;return e},enumerable:true,configurable:true});e.exports=r.STS},650:e=>{function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},9732:(e,t,i)=>{var r=i(8738),n=r.util.url,o=r.util.crypto.lib,a=r.util.base64.encode,s=r.util.inherit;var u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})};var c=function(e,t){var i=o.createSign("RSA-SHA1");i.write(e);return u(i.sign(t,"base64"))};var l=function(e,t,i,r){var n=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":i,Signature:c(n.toString(),r)}};var d=function(e,t,i){e=e.replace(/\s/gm,"");return{Policy:u(a(e)),"Key-Pair-Id":t,Signature:c(e,i)}};var p=function(e){var t=e.split("://");if(t.length<2){throw new Error("Invalid URL.")}return t[0].replace("*","")};var m=function(e){var t=n.parse(e);return t.path.replace(/^\//,"")+(t.hash||"")};var h=function(e){switch(p(e)){case"http":case"https":return e;case"rtmp":return m(e);default:throw new Error("Invalid URI scheme. Scheme must be one of"+" http, https, or rtmp")}};var f=function(e,t){if(!t||typeof t!=="function"){throw e}t(e)};var y=function(e,t){if(!t||typeof t!=="function"){return e}t(null,e)};r.CloudFront.Signer=s({constructor:function Signer(e,t){if(e===void 0||t===void 0){throw new Error("A key pair ID and private key are required")}this.keyPairId=e;this.privateKey=t},getSignedCookie:function(e,t){var i="policy"in e?d(e.policy,this.keyPairId,this.privateKey):l(e.url,e.expires,this.keyPairId,this.privateKey);var r={};for(var n in i){if(Object.prototype.hasOwnProperty.call(i,n)){r["CloudFront-"+n]=i[n]}}return y(r,t)},getSignedUrl:function(e,t){try{var i=h(e.url)}catch(e){return f(e,t)}var r=n.parse(e.url,true),o=Object.prototype.hasOwnProperty.call(e,"policy")?d(e.policy,this.keyPairId,this.privateKey):l(i,e.expires,this.keyPairId,this.privateKey);r.search=null;for(var a in o){if(Object.prototype.hasOwnProperty.call(o,a)){r.query[a]=o[a]}}try{var s=p(e.url)==="rtmp"?m(n.format(r)):n.format(r)}catch(e){return f(e,t)}return y(s,t)}});e.exports=r.CloudFront.Signer},1547:(e,t,i)=>{var r=i(8738);i(4764);i(9992);var n;r.Config=r.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);r.util.each.call(this,this.keys,function(t,i){this.set(t,e[t],i)})},getCredentials:function getCredentials(e){var t=this;function finish(i){e(i,i?null:t.credentials)}function credError(e,t){return new r.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var i="Could not load credentials from "+t.credentials.constructor.name;e=credError(i,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,i){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=i;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);r.util.each.call(this,e,function(e,i){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||r.Service.hasService(e)){this.set(e,i)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(r.util.readFileSync(e));var i=new r.FileSystemCredentials(e);var n=new r.CredentialProviderChain;n.providers.unshift(i);n.resolve(function(e,i){if(e)throw e;else t.credentials=i});this.constructor(t);return this},clear:function clear(){r.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,i){if(t===undefined){if(i===undefined){i=this.keys[e]}if(typeof i==="function"){this[e]=i.call(this)}else{this[e]=i}}else if(e==="httpOptions"&&this[e]){this[e]=r.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:undefined,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=r.util.copy(e);e.credentials=new r.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[r.Request,r.Credentials,r.CredentialProviderChain];if(r.S3){t.push(r.S3);if(r.S3.ManagedUpload){t.push(r.S3.ManagedUpload)}}r.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});r.config=new r.Config},3226:(e,t,i)=>{var r=i(8738);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw r.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var i;if(e[t.clientConfig]){i=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(i)return i}if(!r.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];i=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(i)return i}var o={};try{var a=r.util.getProfilesFromSharedConfig(r.util.iniLoader);o=a[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){}if(o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)){var s=o[t.sharedConfig];i=validateRegionalEndpointsFlagValue(s,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+o[t.sharedConfig]+'".'});if(i)return i}return i}e.exports=resolveRegionalEndpointsFlag},8738:(e,t,i)=>{var r={util:i(3067)};var n={};n.toString();e.exports=r;r.util.update(r,{VERSION:"2.759.0",Signers:{},Protocol:{Json:i(3242),Query:i(9198),Rest:i(1331),RestJson:i(550),RestXml:i(4382)},XML:{Builder:i(3026),Parser:null},JSON:{Builder:i(794),Parser:i(4106)},Model:{Api:i(9541),Operation:i(25),Shape:i(377),Paginator:i(7269),ResourceWaiter:i(9878)},apiLoader:i(650),EndpointCache:i(6069).$});i(2375);i(7119);i(1547);i(3366);i(1241);i(711);i(7371);i(6532);i(3728);i(4757);r.events=new r.SequentialExecutor;r.util.memoizedProperty(r,"endpointCache",function(){return new r.EndpointCache(r.config.endpointCacheSize)},true)},4764:(e,t,i)=>{var r=i(8738);r.Credentials=r.util.inherit({constructor:function Credentials(){r.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=r.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(i){if(!i)t.expired=false;if(e)e(i)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var i=this;if(i.refreshCallbacks.push(e)===1){i.load(function onLoad(e){r.util.arrayEach(i.refreshCallbacks,function(i){if(t){i(e)}else{r.util.defer(function(){i(e)})}});i.refreshCallbacks.length=0})}},load:function load(e){e()}});r.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=r.util.promisifyMethod("get",e);this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)};r.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};r.util.addPromises(r.Credentials)},6498:(e,t,i)=>{var r=i(8738);var n=i(7181);r.ChainableTemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function ChainableTemporaryCredentials(e){r.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=r.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new r.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var i=r.util.merge({params:t,credentials:e.masterCredentials||r.config.credentials},e.stsConfig||{});this.service=new n(i)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(r,n){var o={};if(r){e(r);return}if(n){o.TokenCode=n}t.service[i](o,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,n){if(i){var o=i;if(i instanceof Error){o=i.message}e(r.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},7864:(e,t,i)=>{var r=i(8738);var n=i(5066);var o=i(7181);r.CognitoIdentityCredentials=r.util.inherit(r.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=r.util.copy(t||{});this.loadCachedId();var i=this;Object.defineProperty(this,"identityId",{get:function(){i.loadCachedId();return i._identityId||i.params.IdentityId},set:function(e){i._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(i){if(!i){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(i);e(i)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(i,r){if(!i&&r.IdentityId){t.params.IdentityId=r.IdentityId;e(null,r.IdentityId)}else{e(i)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(i,r){if(!i){t.cacheId(r);t.data=r;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(i)}e(i)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(i,r){if(!i){t.cacheId(r);t.params.WebIdentityToken=r.Token;t.webIdentityCredentials.refresh(function(i){if(!i){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(i)})}else{t.clearIdOnNotAuthorized(i);e(i)}})},loadCachedId:function loadCachedId(){var e=this;if(r.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var i=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var o=n.filter(function(e){return i.indexOf(e)!==-1});if(o.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new r.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=r.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new o(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(r.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=r.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},9992:(e,t,i)=>{var r=i(8738);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=r.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var i=0;var n=t.providers.slice(0);function resolveNext(e,o){if(!e&&o||i===n.length){r.util.arrayEach(t.resolveCallbacks,function(t){t(e,o)});t.resolveCallbacks.length=0;return}var a=n[i++];if(typeof a==="function"){o=a.call()}else{o=a}if(o.get){o.get(function(e){resolveNext(e,e?null:o)})}else{resolveNext(null,o)}}resolveNext()}return t}});r.CredentialProviderChain.defaultProviders=[];r.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)};r.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};r.util.addPromises(r.CredentialProviderChain)},4134:(e,t,i)=>{var r=i(8738);i(7015);r.EC2MetadataCredentials=r.util.inherit(r.Credentials,{constructor:function EC2MetadataCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};e=r.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge({timeout:this.defaultTimeout,connectTimeout:this.defaultConnectTimeout},e.httpOptions);this.metadataService=new r.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultConnectTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(i,n){if(!i){var o=r.util.date.getDate();var a=new Date(n.Expiration);if(a{var r=i(8738);r.ECSCredentials=r.RemoteCredentials},3897:(e,t,i)=>{var r=i(8738);r.EnvironmentCredentials=r.util.inherit(r.Credentials,{constructor:function EnvironmentCredentials(e){r.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;if(!process||!process.env){e(r.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var i=[];for(var n=0;n{var r=i(8738);r.FileSystemCredentials=r.util.inherit(r.Credentials,{constructor:function FileSystemCredentials(e){r.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=r.util.fn.callback;try{var t=JSON.parse(r.util.readFileSync(this.filename));r.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},3037:(e,t,i)=>{var r=i(8738);var n=i(3129);var o=r.util.iniLoader;r.ProcessCredentials=r.util.inherit(r.Credentials,{constructor:function ProcessCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(i,r){if(i){e(i,null)}else{t.expired=false;t.accessKeyId=r.AccessKeyId;t.secretAccessKey=r.SecretAccessKey;t.sessionToken=r.SessionToken;if(r.Expiration){t.expireTime=new Date(r.Expiration)}e(null)}})}else{throw r.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,i,n){if(e){t(r.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var o=JSON.parse(i);if(o.Expiration){var a=r.util.date.getDate();var s=new Date(o.Expiration);if(s{var r=i(8738),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",o="AWS_CONTAINER_CREDENTIALS_FULL_URI",a="AWS_CONTAINER_AUTHORIZATION_TOKEN",s=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],l="169.254.170.2";r.RemoteCredentials=r.util.inherit(r.Credentials,{constructor:function RemoteCredentials(e){r.Credentials.call(this);e=e?r.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=r.util.merge(this.httpOptions,e.httpOptions);r.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[o]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[o];if(e){return"http://"+l+e}else if(t){var i=r.util.urlParse(t);if(u.indexOf(i.protocol)<0){throw r.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+i.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(s.indexOf(i.protocol)<0&&c.indexOf(i.hostname)<0){throw r.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+i.protocol+"; "+i.protocol+"//"+i.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw r.util.error(new Error("Variable "+n+" or "+o+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw r.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[o]){return process.env[a]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var i=new r.HttpRequest(e);i.method="GET";i.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){i.headers.Authorization=n}r.util.handleRequestWithRetries(i,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;var i;try{i=this.getECSFullUri()}catch(t){e(t);return}this.request(i,function(i,n){if(!i){try{n=JSON.parse(n);var o=t.formatCreds(n);if(!t.credsFormatIsValid(o)){throw r.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}r.util.update(t,o)}catch(e){i=e}}e(i,o)})}})},7792:(e,t,i)=>{var r=i(8738);var n=i(7181);r.SAMLCredentials=r.util.inherit(r.Credentials,{constructor:function SAMLCredentials(e){r.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},6859:(e,t,i)=>{var r=i(8738);var n=i(7181);var o=r.util.iniLoader;var a="us-east-1";r.SharedIniFileCredentials=r.util.inherit(r.Credentials,{constructor:function SharedIniFileCredentials(e){r.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||r.util.defaultProfile;this.disableAssumeRole=Boolean(e.disableAssumeRole);this.preferStaticCredentials=Boolean(e.preferStaticCredentials);this.tokenCodeFn=e.tokenCodeFn||null;this.httpOptions=e.httpOptions||null;this.get(e.callback||r.util.fn.noop)},load:function load(e){var t=this;try{var i=r.util.getProfilesFromSharedConfig(o,this.filename);var n=i[this.profile]||{};if(Object.keys(n).length===0){throw r.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"})}var a=Boolean(this.preferStaticCredentials&&n["aws_access_key_id"]&&n["aws_secret_access_key"]);if(n["role_arn"]&&!a){this.loadRoleProfile(i,n,function(i,r){if(i){e(i)}else{t.expired=false;t.accessKeyId=r.Credentials.AccessKeyId;t.secretAccessKey=r.Credentials.SecretAccessKey;t.sessionToken=r.Credentials.SessionToken;t.expireTime=r.Credentials.Expiration;e(null)}});return}this.accessKeyId=n["aws_access_key_id"];this.secretAccessKey=n["aws_secret_access_key"];this.sessionToken=n["aws_session_token"];if(!this.accessKeyId||!this.secretAccessKey){throw r.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}this.expired=false;e(null)}catch(t){e(t)}},refresh:function refresh(e){o.clearCachedFiles();this.coalesceRefresh(e||r.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function loadRoleProfile(e,t,i){if(this.disableAssumeRole){throw r.util.error(new Error("Role assumption profiles are disabled. "+"Failed to load profile "+this.profile+" from "+e.filename),{code:"SharedIniFileCredentialsProviderFailure"})}var o=this;var s=t["role_arn"];var u=t["role_session_name"];var c=t["external_id"];var l=t["mfa_serial"];var d=t["source_profile"];var p=t["region"]||a;if(!d){throw r.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}var m=e[d];if(typeof m!=="object"){throw r.util.error(new Error("source_profile "+d+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"})}var h=new r.SharedIniFileCredentials(r.util.merge(this.options||{},{profile:d,preferStaticCredentials:true}));this.roleArn=s;var f=new n({credentials:h,region:p,httpOptions:this.httpOptions});var y={RoleArn:s,RoleSessionName:u||"aws-sdk-js-"+Date.now()};if(c){y.ExternalId=c}if(l&&o.tokenCodeFn){y.SerialNumber=l;o.tokenCodeFn(l,function(e,t){if(e){var n;if(e instanceof Error){n=e.message}else{n=e}i(r.util.error(new Error("Error fetching MFA token: "+n),{code:"SharedIniFileCredentialsProviderFailure"}));return}y.TokenCode=t;f.assumeRole(y,i)});return}f.assumeRole(y,i)}})},5588:(e,t,i)=>{var r=i(8738);var n=i(7181);r.TemporaryCredentials=r.util.inherit(r.Credentials,{constructor:function TemporaryCredentials(e,t){r.Credentials.call(this);this.loadMasterCredentials(t);this.expired=true;this.params=e||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials;var i=t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken;i.call(t.service,function(i,r){if(!i){t.service.credentialsFrom(r,t)}e(i)})})},loadMasterCredentials:function loadMasterCredentials(e){this.masterCredentials=e||r.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}if(typeof this.masterCredentials.get!=="function"){this.masterCredentials=new r.Credentials(this.masterCredentials)}},createClients:function(){this.service=this.service||new n({params:this.params})}})},85:(e,t,i)=>{var r=i(8738);var n=i(5747);var o=i(7181);var a=r.util.iniLoader;r.TokenFileWebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function TokenFileWebIdentityCredentials(e){r.Credentials.call(this);this.data=null;this.clientConfig=r.util.copy(e||{})},getParamsFromEnv:function getParamsFromEnv(){var e="AWS_WEB_IDENTITY_TOKEN_FILE",t="AWS_ROLE_ARN";if(process.env[e]&&process.env[t]){return[{envTokenFile:process.env[e],roleArn:process.env[t],roleSessionName:process.env["AWS_ROLE_SESSION_NAME"]}]}},getParamsFromSharedConfig:function getParamsFromSharedConfig(){var e=r.util.getProfilesFromSharedConfig(a);var t=process.env.AWS_PROFILE||r.util.defaultProfile;var i=e[t]||{};if(Object.keys(i).length===0){throw r.util.error(new Error("Profile "+t+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"})}var n=[];while(!i["web_identity_token_file"]&&i["source_profile"]){n.unshift({roleArn:i["role_arn"],roleSessionName:i["role_session_name"]});var o=i["source_profile"];i=e[o]}n.unshift({envTokenFile:i["web_identity_token_file"],roleArn:i["role_arn"],roleSessionName:i["role_session_name"]});return n},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},assumeRoleChaining:function assumeRoleChaining(e,t){var i=this;if(e.length===0){i.service.credentialsFrom(i.data,i);t()}else{var r=e.shift();i.service.config.credentials=i.service.credentialsFrom(i.data,i);i.service.assumeRole({RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,n){i.data=null;if(r){t(r)}else{i.data=n;i.assumeRoleChaining(e,t)}})}},load:function load(e){var t=this;try{var i=t.getParamsFromEnv();if(!i){i=t.getParamsFromSharedConfig()}if(i){var r=i.shift();var o=n.readFileSync(r.envTokenFile,{encoding:"ascii"});if(!t.service){t.createClients()}t.service.assumeRoleWithWebIdentity({WebIdentityToken:o,RoleArn:r.roleArn,RoleSessionName:r.roleSessionName||"token-file-web-identity"},function(r,n){t.data=null;if(r){e(r)}else{t.data=n;t.assumeRoleChaining(i,e)}})}}catch(t){e(t)}},createClients:function(){if(!this.service){var e=r.util.merge({},this.clientConfig);this.service=new o(e);this.service.retryableError=function(e){if(e.code==="IDPCommunicationErrorException"||e.code==="InvalidIdentityToken"){return true}else{return r.Service.prototype.retryableError.call(this,e)}}}}})},780:(e,t,i)=>{var r=i(8738);var n=i(7181);r.WebIdentityCredentials=r.util.inherit(r.Credentials,{constructor:function WebIdentityCredentials(e,t){r.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=r.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||r.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(i,r){t.data=null;if(!i){t.data=r;t.service.credentialsFrom(r,t)}e(i)})},createClients:function(){if(!this.service){var e=r.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},9235:(e,t,i)=>{var r=i(8738);var n=i(3067);var o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var i=t.api||{};var r=i.operations;var n={};if(t.config.region){n.region=t.config.region}if(i.serviceId){n.serviceId=i.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,i){if(!i||t===undefined||t===null)return;if(i.type==="structure"&&i.required&&i.required.length>0){n.arrayEach(i.required,function(r){var n=i.members[r];if(n.endpointDiscoveryId===true){var o=n.isLocationName?n.name:r;e[o]=String(t[r])}else{marshallCustomIdentifiersHelper(e,t[r],n)}})}}function marshallCustomIdentifiers(e,t){var i={};marshallCustomIdentifiersHelper(i,e.params,t);return i}function optionalDiscoverEndpoint(e){var t=e.service;var i=t.api;var o=i.operations?i.operations[e.operation]:undefined;var a=o?o.input:undefined;var s=marshallCustomIdentifiers(e,a);var u=getCacheKey(e);if(Object.keys(s).length>0){u=n.update(u,s);if(o)u.operation=o.name}var c=r.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var l=t.makeRequest(i.endpointOperation,{Operation:o.name,Identifiers:s});addApiVersionHeader(l);l.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",r.EventListeners.Core.RETRY_CHECK);r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){r.endpointCache.put(u,t.Endpoints)}else if(e){r.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var a={};function requiredDiscoverEndpoint(e,t){var i=e.service;var o=i.api;var s=o.operations?o.operations[e.operation]:undefined;var u=s?s.input:undefined;var c=marshallCustomIdentifiers(e,u);var l=getCacheKey(e);if(Object.keys(c).length>0){l=n.update(l,c);if(s)l.operation=s.name}var d=r.EndpointCache.getKeyString(l);var p=r.endpointCache.get(d);if(p&&p.length===1&&p[0].Address===""){if(!a[d])a[d]=[];a[d].push({request:e,callback:t});return}else if(p&&p.length>0){e.httpRequest.updateEndpoint(p[0].Address);t()}else{var m=i.makeRequest(o.endpointOperation,{Operation:s.name,Identifiers:c});m.removeListener("validate",r.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(m);r.endpointCache.put(d,[{Address:"",CachePeriodInMinutes:60}]);m.send(function(i,o){if(i){e.response.error=n.error(i,{retryable:false});r.endpointCache.remove(l);if(a[d]){var s=a[d];n.arrayEach(s,function(e){e.request.response.error=n.error(i,{retryable:false});e.callback()});delete a[d]}}else if(o){r.endpointCache.put(d,o.Endpoints);e.httpRequest.updateEndpoint(o.Endpoints[0].Address);if(a[d]){var s=a[d];n.arrayEach(s,function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address);e.callback()});delete a[d]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var i=t.apiVersion;if(i&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=i}}function invalidateCachedEndpoints(e){var t=e.error;var i=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||i.statusCode===421)){var o=e.request;var a=o.service.api.operations||{};var s=a[o.operation]?a[o.operation].input:undefined;var u=marshallCustomIdentifiers(o,s);var c=getCacheKey(o);if(Object.keys(u).length>0){c=n.update(c,u);if(a[o.operation])c.operation=a[o.operation].name}r.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=r.config[e.serviceIdentifier]||{};return Boolean(r.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function resolveEndpointDiscoveryConfig(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled!==undefined){return t.config.endpointDiscoveryEnabled}if(n.isBrowser())return undefined;for(var i=0;i{var r=i(5811).eventMessageChunker;var n=i(4333).parseEvent;function createEventStream(e,t,i){var o=r(e);var a=[];for(var s=0;s{var r=i(8738).util;var n=i(2413).Transform;var o=r.buffer.alloc;function EventMessageChunkerStream(e){n.call(this,e);this.currentMessageTotalLength=0;this.currentMessagePendingLength=0;this.currentMessage=null;this.messageLengthBuffer=null}EventMessageChunkerStream.prototype=Object.create(n.prototype);EventMessageChunkerStream.prototype._transform=function(e,t,i){var r=e.length;var n=0;while(n{function eventMessageChunker(e){var t=[];var i=0;while(i{var r=i(2413).Transform;var n=i(4333).parseEvent;function EventUnmarshallerStream(e){e=e||{};e.readableObjectMode=true;r.call(this,e);this._readableState.objectMode=true;this.parser=e.parser;this.eventStreamModel=e.eventStreamModel}EventUnmarshallerStream.prototype=Object.create(r.prototype);EventUnmarshallerStream.prototype._transform=function(e,t,i){try{var r=n(this.parser,e,this.eventStreamModel);this.push(r);return i()}catch(e){i(e)}};e.exports={EventUnmarshallerStream:EventUnmarshallerStream}},6137:(e,t,i)=>{var r=i(8738).util;var n=r.buffer.toBuffer;function Int64(e){if(e.length!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}if(!r.Buffer.isBuffer(e))e=n(e);this.bytes=e}Int64.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var i=7,r=Math.abs(Math.round(e));i>-1&&r>0;i--,r/=256){t[i]=r}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},4333:(e,t,i)=>{var r=i(5960).parseMessage;function parseEvent(e,t,i){var n=r(t);var o=n.headers[":message-type"];if(o){if(o.value==="error"){throw parseError(n)}else if(o.value!=="event"){return}}var a=n.headers[":event-type"];var s=i.members[a.value];if(!s){return}var u={};var c=s.eventPayloadMemberName;if(c){var l=s.members[c];if(l.type==="binary"){u[c]=n.body}else{u[c]=e.parse(n.body.toString(),l)}}var d=s.eventHeaderMemberNames;for(var p=0;p{var r=i(6137).Int64;var n=i(1973).splitMessage;var o="boolean";var a="byte";var s="short";var u="integer";var c="long";var l="binary";var d="string";var p="timestamp";var m="uuid";function parseHeaders(e){var t={};var i=0;while(i{var r=i(8738).util;var n=r.buffer.toBuffer;var o=4;var a=o*2;var s=4;var u=a+s*2;function splitMessage(e){if(!r.Buffer.isBuffer(e))e=n(e);if(e.length{var r=i(3016).EventMessageChunkerStream;var n=i(8889).EventUnmarshallerStream;function createEventStream(e,t,i){var o=new n({parser:t,eventStreamModel:i});var a=new r;e.pipe(a).pipe(o);e.on("error",function(e){a.emit("error",e)});a.on("error",function(e){o.emit("error",e)});return o}e.exports={createEventStream:createEventStream}},1241:(e,t,i)=>{var r=i(8738);var n=i(2375);var o=i(9235).discoverEndpoint;r.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}r.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(i){if(i){e.response.error=r.util.error(i,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!e.service.config.region){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}else if(!t.test(e.service.config.region)){e.response.error=r.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})}}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var i=t.idempotentMembers;if(!i.length){return}var n=r.util.copy(e.params);for(var o=0,a=i.length;o=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}r.util.computeSha256(o,function(i,r){if(i){t(i)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=r;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var i=r.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=r.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(r){if(i&&i.isStreaming){if(i.requiresLength){throw r}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw r}}throw r}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new r.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,i,n){i.httpResponse.statusCode=e;i.httpResponse.statusMessage=n;i.httpResponse.headers=t;i.httpResponse.body=r.util.buffer.toBuffer("");i.httpResponse.buffers=[];i.httpResponse.numBytes=0;var o=t.date||t.Date;var a=i.request.service;if(o){var s=Date.parse(o);if(a.config.correctClockSkew&&a.isClockSkewed(s)){a.applyClockOffset(s)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(r.util.isNode()){t.httpResponse.numBytes+=e.length;var i=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:i};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(r.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=r.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new r.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,i)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",r.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",r.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){function isDNSError(e){return e.errno==="ENOTFOUND"||typeof e.errno==="number"&&typeof r.util.getSystemErrorName==="function"&&["EAI_NONAME","EAI_NODATA"].indexOf(r.util.getSystemErrorName(e.errno)>=0)}if(e.code==="NetworkingError"&&isDNSError(e)){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=r.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}if(e.isSensitive){return"***SensitiveInformation***"}switch(e.type){case"structure":var i={};r.util.each(t,function(t,r){if(Object.prototype.hasOwnProperty.call(e.members,t)){i[t]=filterSensitiveLog(e.members[t],r)}else{i[t]=r}});return i;case"list":var n=[];r.util.arrayEach(t,function(t,i){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var o={};r.util.each(t,function(t,i){o[t]=filterSensitiveLog(e.value,i)});return o;default:return t}}function buildMessage(){var o=e.request.service.getSkewCorrectedDate().getTime();var a=(o-t.startTime.getTime())/1e3;var s=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;c=filterSensitiveLog(l,t.params)}var d=i(1669).inspect(c,true,null);var p="";if(s)p+="";p+="[AWS "+t.service.serviceIdentifier+" "+u;p+=" "+a.toString()+"s "+e.retryCount+" retries]";if(s)p+="";p+=" "+r.util.string.lowerFirst(t.operation);p+="("+d+")";if(s)p+="";return p}var o=buildMessage();if(typeof n.log==="function"){n.log(o)}else if(typeof n.write==="function"){n.write(o+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=i(3242);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=i(1331);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=i(550);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=i(4382);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=i(9198);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},3366:(e,t,i)=>{var r=i(8738);var n=r.util.inherit;r.Endpoint=n({constructor:function Endpoint(e,t){r.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return r.util.copy(e)}if(!e.match(/^http/)){var i=t&&t.sslEnabled!==undefined?t.sslEnabled:r.config.sslEnabled;e=(i?"https":"http")+"://"+e}r.util.update(this,r.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});r.HttpRequest=n({constructor:function HttpRequest(e,t){e=new r.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=r.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=r.util.queryStringParse(e);return r.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new r.Endpoint(e);this.endpoint=t;this.path=t.path||"/";if(this.headers["Host"]){this.headers["Host"]=t.host}}});r.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});r.HttpClient=n({});r.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},4136:(e,t,i)=>{var r=i(8738);var n=r.util.stream.Stream;var o=r.util.stream.Transform;var a=r.util.stream.Readable;i(3366);var s="AWS_NODEJS_CONNECTION_REUSE_ENABLED";r.NodeHttpClient=r.util.inherit({handleRequest:function handleRequest(e,t,n,o){var a=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new r.Endpoint(t.proxy)}var l=u.protocol==="https:";var d=l?i(7211):i(8605);var p={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){p.agent=this.getAgent(l,{keepAlive:process.env[s]==="1"?true:false})}r.util.update(p,t);delete p.proxy;delete p.timeout;var m=d.request(p,function(e){if(m.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=m;m.didCallback=false;if(t.connectTimeout){var h;m.on("socket",function(e){if(e.connecting){h=setTimeout(function connectTimeout(){if(m.didCallback)return;m.didCallback=true;m.abort();o(r.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(h);h=null})}})}m.setTimeout(t.timeout||0,function(){if(m.didCallback)return;m.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";o(r.util.error(new Error(e),{code:"TimeoutError"}));m.abort()});m.on("error",function(){if(h){clearTimeout(h);h=null}if(m.didCallback)return;m.didCallback=true;o.apply(m,arguments)});var f=e.headers.Expect||e.headers.expect;if(f==="100-continue"){m.on("continue",function(){a.writeBody(m,e)})}else{this.writeBody(m,e)}return m},writeBody:function writeBody(e,t){var i=t.body;var r=parseInt(t.headers["Content-Length"],10);if(i instanceof n){var o=this.progressStream(e,r);if(o){i.pipe(o).pipe(e)}else{i.pipe(e)}}else if(i){e.once("finish",function(){e.emit("sendProgress",{loaded:r,total:r})});e.end(i)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?i(7211):i(8605);if(e){if(!r.NodeHttpClient.sslAgent){r.NodeHttpClient.sslAgent=new n.Agent(r.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED==="0"?false:true},t||{}));r.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(r.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return r.NodeHttpClient.sslAgent}else{if(!r.NodeHttpClient.agent){r.NodeHttpClient.agent=new n.Agent(t)}return r.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof o==="undefined"){return}var i=0;var r=new o;r._transform=function(r,n,o){if(r){i+=r.length;e.emit("sendProgress",{loaded:i,total:t})}o(null,r)};return r},emitter:null});r.HttpClient.prototype=r.NodeHttpClient.prototype;r.HttpClient.streamsApiVersion=a?2:1},794:(e,t,i)=>{var r=i(3067);function JsonBuilder(){}JsonBuilder.prototype.build=function(e,t){return JSON.stringify(translate(e,t))};function translate(e,t){if(!t||e===undefined||e===null)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){var i={};r.each(e,function(e,r){var n=t.members[e];if(n){if(n.location!=="body")return;var o=n.isLocationName?n.name:e;var a=translate(r,n);if(a!==undefined)i[o]=a}});return i}function translateList(e,t){var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r!==undefined)i.push(r)});return i}function translateMap(e,t){var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n!==undefined)i[e]=n});return i}function translateScalar(e,t){return t.toWireFormat(e)}e.exports=JsonBuilder},4106:(e,t,i)=>{var r=i(3067);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var i={};var n=t.members;r.each(n,function(t,r){var n=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var o=e[n];var a=translate(o,r);if(a!==undefined)i[t]=a}});return i}function translateList(e,t){if(e==null)return undefined;var i=[];r.arrayEach(e,function(e){var r=translate(e,t.member);if(r===undefined)i.push(null);else i.push(r)});return i}function translateMap(e,t){if(e==null)return undefined;var i={};r.each(e,function(e,r){var n=translate(r,t.value);if(n===undefined)i[e]=null;else i[e]=n});return i}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},7015:(e,t,i)=>{var r=i(8738);i(3366);var n=r.util.inherit;r.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){r.util.update(this,e)},request:function request(e,t,i){if(arguments.length===2){i=t;t={}}if(process.env[r.util.imdsDisabledEnv]){i(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new r.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}r.util.handleRequestWithRetries(n,this,i)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var i="/latest/api/token";t.request(i,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var i=this;var n="/latest/meta-data/iam/security-credentials/";i.request(n,e,function(o,a){if(o){i.disableFetchToken=!(o.statusCode===401);t(r.util.error(o,{message:"EC2 Metadata roleName request returned error"}));return}a=a.split("\n")[0];i.request(n+a,e,function(e,n){if(e){i.disableFetchToken=!(e.statusCode===401);t(r.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var o=JSON.parse(n);t(null,o)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,i){var r;while((r=t.loadCredentialsCallbacks.shift())!==undefined){r(e,i)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,i){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(r.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(i){n.headers={"x-aws-ec2-metadata-token":i}}t.fetchCredentials(n,callbacks)})}}});e.exports=r.MetadataService},9541:(e,t,i)=>{var r=i(1178);var n=i(25);var o=i(377);var a=i(7269);var s=i(9878);var u=i(2969);var c=i(3067);var l=c.property;var d=c.memoizedProperty;function Api(e,t){var i=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};var p=t.serviceIdentifier;delete t.serviceIdentifier;l(this,"isApi",true,false);l(this,"apiVersion",e.metadata.apiVersion);l(this,"endpointPrefix",e.metadata.endpointPrefix);l(this,"signingName",e.metadata.signingName);l(this,"globalEndpoint",e.metadata.globalEndpoint);l(this,"signatureVersion",e.metadata.signatureVersion);l(this,"jsonVersion",e.metadata.jsonVersion);l(this,"targetPrefix",e.metadata.targetPrefix);l(this,"protocol",e.metadata.protocol);l(this,"timestampFormat",e.metadata.timestampFormat);l(this,"xmlNamespaceUri",e.metadata.xmlNamespace);l(this,"abbreviation",e.metadata.serviceAbbreviation);l(this,"fullName",e.metadata.serviceFullName);l(this,"serviceId",e.metadata.serviceId);if(p&&u[p]){l(this,"xmlNoDefaultLists",u[p].xmlNoDefaultLists,false)}d(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){l(i,"endpointOperation",c.string.lowerFirst(e))}if(t.endpointdiscovery&&!i.hasRequiredEndpointDiscovery){l(i,"hasRequiredEndpointDiscovery",t.endpointdiscovery.required===true)}}l(this,"operations",new r(e.operations,t,function(e,i){return new n(e,i,t)},c.string.lowerFirst,addEndpointOperation));l(this,"shapes",new r(e.shapes,t,function(e,i){return o.create(i,t)}));l(this,"paginators",new r(e.paginators,t,function(e,i){return new a(e,i,t)}));l(this,"waiters",new r(e.waiters,t,function(e,i){return new s(e,i,t)},c.string.lowerFirst));if(t.documentation){l(this,"documentation",e.documentation);l(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},1178:(e,t,i)=>{var r=i(3067).memoizedProperty;function memoize(e,t,i,n){r(this,n(e),function(){return i(e,t)})}function Collection(e,t,i,r,n){r=r||String;var o=this;for(var a in e){if(Object.prototype.hasOwnProperty.call(e,a)){memoize.call(o,a,e[a],i,r);if(n)n(a,e[a])}}}e.exports=Collection},25:(e,t,i)=>{var r=i(377);var n=i(3067);var o=n.property;var a=n.memoizedProperty;function Operation(e,t,i){var n=this;i=i||{};o(this,"name",t.name||e);o(this,"api",i.api,false);t.http=t.http||{};o(this,"endpoint",t.endpoint);o(this,"httpMethod",t.http.method||"POST");o(this,"httpPath",t.http.requestUri||"/");o(this,"authtype",t.authtype||"");o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");a(this,"input",function(){if(!t.input){return new r.create({type:"structure"},i)}return r.create(t.input,i)});a(this,"output",function(){if(!t.output){return new r.create({type:"structure"},i)}return r.create(t.output,i)});a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var n=0;n{var r=i(3067).property;function Paginator(e,t){r(this,"inputToken",t.input_token);r(this,"limitKey",t.limit_key);r(this,"moreResults",t.more_results);r(this,"outputToken",t.output_token);r(this,"resultKey",t.result_key)}e.exports=Paginator},9878:(e,t,i)=>{var r=i(3067);var n=r.property;function ResourceWaiter(e,t,i){i=i||{};n(this,"name",e);n(this,"api",i.api,false);if(t.operation){n(this,"operation",r.string.lowerFirst(t.operation))}var o=this;var a=["type","description","delay","maxAttempts","acceptors"];a.forEach(function(e){var i=t[e];if(i){n(o,e,i)}})}e.exports=ResourceWaiter},377:(e,t,i)=>{var r=i(1178);var n=i(3067);function property(e,t,i){if(i!==null&&i!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,i){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||i);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var i=t.api.shapes[e.shape];if(!i){throw new Error("Cannot find shape reference: "+e.shape)}return i}else{return null}};Shape.create=function create(e,t,i){if(e.isShape)return e;var r=Shape.resolve(e,t);if(r){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var o=function(){r.constructor.call(this,e,t,i)};o.prototype=r;return new o}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var a=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,i)}else{throw new Error("Unrecognized shape type: "+a)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var i=this;var n=null,o=!this.isShape;CompositeShape.apply(this,arguments);if(o){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new r(e.members,t,function(e,i){return Shape.create(i,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=i.members;var t=i.memberNames;for(var r=0,n=t.length;r-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var i=n.Buffer.alloc(t.length,t);t.fill(0);t=i}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},2432:(e,t,i)=>{var r=i(3067);r.isBrowser=function(){return false};r.isNode=function(){return true};r.crypto.lib=i(6417);r.Buffer=i(4293).Buffer;r.domain=i(5229);r.stream=i(2413);r.url=i(8835);r.querystring=i(1191);r.environment="nodejs";r.createEventStream=r.stream.Readable?i(3828).createEventStream:i(2706).createEventStream;r.realClock=i(6858);r.clientSideMonitoring={Publisher:i(1453).Publisher,configProvider:i(5261)};r.iniLoader=i(6674).b;r.getSystemErrorName=i(1669).getSystemErrorName;var n;e.exports=n=i(8738);i(4764);i(9992);i(5588);i(6498);i(780);i(7864);i(7792);i(3037);n.XML.Parser=i(9958);i(4136);i(2733);i(85);i(4134);i(5539);i(8649);i(3897);i(5979);i(6859);i(3037);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,i){if(!t)e=i});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var i=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var r=n.util.iniLoader;while(!t&&i.length){var o=r.loadFrom(i.shift());var a=o[e.AWS_PROFILE||n.util.defaultProfile];t=a&&a.region}}return t}});n.config=new n.Config},4757:(e,t,i)=>{var r=i(8738);r.ParamValidator=r.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,i){this.errors=[];this.validateMember(e,t||{},i||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw r.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(r.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,i){this.validateType(t,i,["object"],"structure");var r;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+i)}}},validatePattern:function validatePattern(e,t,i){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+i)}}},validateRange:function validateRange(e,t,i,r){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+i)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+r+" <= "+e["max"]+", but found "+t+" for "+i)}}},validateEnum:function validateRange(e,t,i){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+i)}}},validateType:function validateType(e,t,i,n){if(e===null||e===undefined)return false;var o=false;for(var a=0;a{var r=i(3067);var n=i(8738);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var i=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(i.endpoint&&i.endpoint.hostPrefix){var r=i.endpoint.hostPrefix;var n=expandHostPrefix(r,e.params,i.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var i=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(i.name);return i.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,i){r.each(i.members,function(i,n){if(n.hostLabel===true){if(typeof t[i]!=="string"||t[i]===""){throw r.error(new Error,{message:"Parameter "+i+" should be a non-empty string.",code:"InvalidParameter"})}var o=new RegExp("\\{"+i+"\\}","g");e=e.replace(o,t[i])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var i=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;r.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!i.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},3242:(e,t,i)=>{var r=i(3067);var n=i(794);var o=i(4106);var a=i(7736).populateHostPrefix;function buildRequest(e){var t=e.httpRequest;var i=e.service.api;var r=i.targetPrefix+"."+i.operations[e.operation].name;var o=i.jsonVersion||"1.0";var s=i.operations[e.operation].input;var u=new n;if(o===1)o="1.0";t.body=u.build(e.params||{},s);t.headers["Content-Type"]="application/x-amz-json-"+o;t.headers["X-Amz-Target"]=r;a(e)}function extractError(e){var t={};var i=e.httpResponse;t.code=i.headers["x-amzn-errortype"]||"UnknownError";if(typeof t.code==="string"){t.code=t.code.split(":")[0]}if(i.body.length>0){try{var n=JSON.parse(i.body.toString());var o=n.__type||n.code||n.Code;if(o){t.code=o.split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=i.statusCode;t.message=i.statusMessage}}else{t.statusCode=i.statusCode;t.message=i.statusCode.toString()}e.error=r.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var i=e.request.service.api.operations[e.request.operation];var r=i.output||{};var n=new o;e.data=n.parse(t,r)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},9198:(e,t,i)=>{var r=i(8738);var n=i(3067);var o=i(8135);var a=i(377);var s=i(7736).populateHostPrefix;function buildRequest(e){var t=e.service.api.operations[e.operation];var i=e.httpRequest;i.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";i.params={Version:e.service.api.apiVersion,Action:t.name};var r=new o;r.serialize(e.params,t.input,function(e,t){i.params[e]=t});i.body=n.queryParamsToString(i.params);s(e)}function extractError(e){var t,i=e.httpResponse.body.toString();if(i.match("{var r=i(3067);var n=i(7736).populateHostPrefix;function populateMethod(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function generateURI(e,t,i,n){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=false;r.each(i.members,function(e,t){var i=n[e];if(i===null||i===undefined)return;if(t.location==="uri"){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){var n=t?r.uriEscapePath:r.uriEscape;return n(String(i))})}else if(t.location==="querystring"){s=true;if(t.type==="list"){a[t.name]=i.map(function(e){return r.uriEscape(t.member.toWireFormat(e).toString())})}else if(t.type==="map"){r.each(i,function(e,t){if(Array.isArray(t)){a[e]=t.map(function(e){return r.uriEscape(String(e))})}else{a[e]=r.uriEscape(String(t))}})}else{a[t.name]=r.uriEscape(t.toWireFormat(i).toString())}}});if(s){o+=o.indexOf("?")>=0?"&":"?";var u=[];r.arrayEach(Object.keys(a).sort(),function(e){if(!Array.isArray(a[e])){a[e]=[a[e]]}for(var t=0;t{var r=i(3067);var n=i(1331);var o=i(3242);var a=i(794);var s=i(4106);function populateBody(e){var t=new a;var i=e.service.api.operations[e.operation].input;if(i.payload){var r={};var n=i.members[i.payload];r=e.params[i.payload];if(r===undefined)return;if(n.type==="structure"){e.httpRequest.body=t.build(r,n);applyContentTypeHeader(e)}else{e.httpRequest.body=r;if(n.type==="binary"||n.isStreaming){applyContentTypeHeader(e,true)}}}else{var o=t.build(e.params,i);if(o!=="{}"||e.httpRequest.method!=="GET"){e.httpRequest.body=o}applyContentTypeHeader(e)}}function applyContentTypeHeader(e,t){var i=e.service.api.operations[e.operation];var r=i.input;if(!e.httpRequest.headers["Content-Type"]){var n=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=n}}function buildRequest(e){n.buildRequest(e);if(["HEAD","DELETE"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e)}function extractData(e){n.extractData(e);var t=e.request;var i=t.service.api.operations[t.operation];var a=t.service.api.operations[t.operation].output||{};var u;var c=i.hasEventOutput;if(a.payload){var l=a.members[a.payload];var d=e.httpResponse.body;if(l.isEventStream){u=new s;e.data[payload]=r.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:d,u,l)}else if(l.type==="structure"||l.type==="list"){var u=new s;e.data[a.payload]=u.parse(d,l)}else if(l.type==="binary"||l.isStreaming){e.data[a.payload]=d}else{e.data[a.payload]=l.toType(d)}}else{var p=e.data;o.extractData(e);e.data=r.merge(p,e.data)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},4382:(e,t,i)=>{var r=i(8738);var n=i(3067);var o=i(1331);function populateBody(e){var t=e.service.api.operations[e.operation].input;var i=new r.XML.Builder;var o=e.params;var a=t.payload;if(a){var s=t.members[a];o=o[a];if(o===undefined)return;if(s.type==="structure"){var u=s.name;e.httpRequest.body=i.toXML(o,s,u,true)}else{e.httpRequest.body=o}}else{e.httpRequest.body=i.toXML(o,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){o.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){o.extractError(e);var t;try{t=(new r.XML.Parser).parse(e.httpResponse.body.toString())}catch(i){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){o.extractData(e);var t;var i=e.request;var a=e.httpResponse.body;var s=i.service.api.operations[i.operation];var u=s.output;var c=s.hasEventOutput;var l=u.payload;if(l){var d=u.members[l];if(d.isEventStream){t=new r.XML.Parser;e.data[l]=n.createEventStream(r.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,d)}else if(d.type==="structure"){t=new r.XML.Parser;e.data[l]=t.parse(a.toString(),d)}else if(d.type==="binary"||d.isStreaming){e.data[l]=a}else{e.data[l]=d.toType(a)}}else if(a.length>0){t=new r.XML.Parser;var p=t.parse(a.toString(),u);n.update(e.data,p)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},5261:(e,t,i)=>{var r=i(8738);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var i=r.util.iniLoader.loadFrom({isConfig:true,filename:process.env[r.util.sharedConfigFileEnv]});var t=i[process.env.AWS_PROFILE||r.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},1453:(e,t,i)=>{var r=i(8738).util;var n=i(6200);var o=r.buffer.toBuffer;var a=1024*8;function Publisher(e){e=e||{};this.enabled=e.enabled||false;this.port=e.port||31e3;this.clientId=e.clientId||"";this.address=e.host||"127.0.0.1";if(this.clientId.length>255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var i=0,r=t.length;io){e[n]=a.substr(0,o)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=o(JSON.stringify(e));if(!this.enabled||t.length>a){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var i=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,i){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},8135:(e,t,i)=>{var r=i(3067);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,i){serializeStructure("",e,t,i)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,i,n){r.each(i.members,function(i,r){var o=t[i];if(o===null||o===undefined)return;var a=ucfirst(r);a=e?e+"."+a:a;serializeMember(a,o,r,n)})}function serializeMap(e,t,i,n){var o=1;r.each(t,function(t,r){var a=i.flattened?".":".entry.";var s=a+o+++".";var u=s+(i.key.name||"key");var c=s+(i.value.name||"value");serializeMember(e+u,t,i.key,n);serializeMember(e+c,r,i.value,n)})}function serializeList(e,t,i,n){var o=i.member||{};if(t.length===0){n.call(this,e,null);return}r.arrayEach(t,function(t,r){var a="."+(r+1);if(i.api.protocol==="ec2"){a=a+""}else if(i.flattened){if(o.name){var s=e.split(".");s.pop();s.push(ucfirst(o));e=s.join(".")}}else{a="."+(o.name?o.name:"member")+a}serializeMember(e+a,t,o,n)})}function serializeMember(e,t,i,r){if(t===null||t===undefined)return;if(i.type==="structure"){serializeStructure(e,t,i,r)}else if(i.type==="list"){serializeList(e,t,i,r)}else if(i.type==="map"){serializeMap(e,t,i,r)}else{r(e,i.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},6858:e=>{e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},8948:(e,t,i)=>{var r=i(3067);var n=i(9294);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var i=generateRegionPrefix(t);var r=e.api.endpointPrefix;return[[t,r],[i,r],[t,"*"],[i,"*"],["*",r],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){r.each(t,function(t,i){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=i}})}function configureEndpoint(e){var t=derivedKeys(e);for(var i=0;i{var r=i(8738);var n=i(9681);var o=r.util.inherit;var a=r.util.domain;var s=i(3748);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var i=this;i._haltHandlersOnError=false;i.emit(i._asm.currentState,function(e){if(e){if(isTerminalState(i)){if(a&&i.domain instanceof a.Domain){e.domainEmitter=i;e.domain=i.domain;e.domainThrown=false;i.domain.emit("error",e)}else{throw e}}else{i.response.error=e;t(e)}}else{t(i.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();r.Request=o({constructor:function Request(e,t,i){var o=e.endpoint;var s=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint){if(e.signingRegion){s=e.signingRegion}else{s="us-east-1"}}this.domain=a&&a.active;this.service=e;this.operation=t;this.params=i||{};this.httpRequest=new r.HttpRequest(o,s);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new r.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;r.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=r.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=r.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(i){if(i===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,r.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(i,n){if(i)return e(i,null);if(n===null)return e(null,null);var o=t.service.paginationConfig(t.operation);var a=o.resultKey;if(Array.isArray(a))a=a[0];var u=s.search(n,a);var c=true;r.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return r.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=r.util.stream;var t=this;var i=null;if(r.HttpClient.streamsApiVersion===2){i=new e.PassThrough;process.nextTick(function(){t.send()})}else{i=new e.Stream;i.readable=true;i.sent=false;i.on("newListener",function(e){if(!i.sent&&e==="data"){i.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){i.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,o,a){if(n<300){t.removeListener("httpData",r.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",r.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){a.error=e;a.error.retryable=false});var s=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(o["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){s=true;var c=0}var l=function checkContentLengthAndEmit(){if(s&&c!==u){i.emit("error",r.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(r.HttpClient.streamsApiVersion===2){i.end()}else{i.emit("end")}};var d=a.httpResponse.createUnbufferedStream();if(r.HttpClient.streamsApiVersion===2){if(s){var p=new e.PassThrough;p._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};p.on("end",l);i.on("error",function(e){s=false;d.unpipe(p);p.emit("end");p.end()});d.pipe(p).pipe(i,{end:false})}else{d.pipe(i)}}else{if(s){d.on("data",function(e){if(e&&e.length){c+=e.length}})}d.on("data",function(e){i.emit("data",e)});d.on("end",l)}d.on("error",function(e){s=false;i.emit("error",e)})}});return i},emitEvent:function emit(e,t,i){if(typeof t==="function"){i=t;t=null}if(!i)i=function(){};if(!t)t=this.eventParameters(e,this.response);var n=r.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;i.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new r.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",r.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",r.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});r.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,i){t.on("complete",function(t){if(t.error){i(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};r.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};r.util.addPromises(r.Request);r.util.mixin(r.Request,r.SequentialExecutor)},6532:(e,t,i)=>{var r=i(8738);var n=r.util.inherit;var o=i(3748);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var i=t.config.acceptors;var r=false;var n="retry";i.forEach(function(i){if(!r){var o=t.matchers[i.matcher];if(o&&o(e,i.expected,i.argument)){r=true;n=i.state}}});if(!r&&e.error)n="failure";if(n==="success"){t.setSuccess(e)}else{t.setError(e,n==="retry")}}r.ResourceWaiter=n({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}return o.strictDeepEqual(r,t)},pathAll:function(e,t,i){try{var r=o.search(e.data,i)}catch(e){return false}if(!Array.isArray(r))r=[r];var n=r.length;if(!n)return false;for(var a=0;a{var r=i(8738);var n=r.util.inherit;var o=i(3748);r.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new r.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var i=this.request.service;var n=this.request.operation;try{t=i.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=r.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var a=t.inputToken;if(typeof a==="string")a=[a];for(var s=0;s{var r=i(8738);r.SequentialExecutor=r.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(e){return this._events[e]?this._events[e].slice(0):[]},on:function on(e,t,i){if(this._events[e]){i?this._events[e].unshift(t):this._events[e].push(t)}else{this._events[e]=[t]}return this},onAsync:function onAsync(e,t,i){t._isAsync=true;return this.on(e,t,i)},removeListener:function removeListener(e,t){var i=this._events[e];if(i){var r=i.length;var n=-1;for(var o=0;o-1){i.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,i){if(!i)i=function(){};var r=this.listeners(e);var n=r.length;this.callListeners(r,t,i);return n>0},callListeners:function callListeners(e,t,i,n){var o=this;var a=n||null;function callNextListener(n){if(n){a=r.util.error(a||new Error,n);if(o._haltHandlersOnError){return i.call(o,a)}}o.callListeners(e,t,i,a)}while(e.length>0){var s=e.shift();if(s._isAsync){s.apply(o,t.concat([callNextListener]));return}else{try{s.apply(o,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError){i.call(o,a);return}}}i.call(o,a)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;r.util.each(e,function(e,i){if(typeof i==="function")i=[i];r.util.arrayEach(i,function(i){t.on(e,i)})});return t},addNamedListener:function addNamedListener(e,t,i,r){this[e]=i;this.addListener(t,i,r);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,i,r){i._isAsync=true;return this.addNamedListener(e,t,i,r)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on;e.exports=r.SequentialExecutor},7119:(e,t,i)=>{var r=i(8738);var n=i(9541);var o=i(8948);var a=r.util.inherit;var s=0;r.Service=a({constructor:function Service(e){if(!this.loadServiceClass){throw r.util.error(new Error,"Service must be constructed with `new' operator")}var t=this.loadServiceClass(e||{});if(t){var i=r.util.copy(e);var n=new t(e);Object.defineProperty(n,"_originalConfig",{get:function(){return i},enumerable:false,configurable:true});n._clientId=++s;return n}this.initialize(e)},initialize:function initialize(e){var t=r.config[this.serviceIdentifier];this.config=new r.Config(r.config);if(t)this.config.update(t,true);if(e)this.config.update(e,true);this.validateService();if(!this.config.endpoint)o.configureEndpoint(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint);r.SequentialExecutor.call(this);r.Service.addDefaultMonitoringListeners(this);if((this.config.clientSideMonitoring||r.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function PUBLISH_API_CALL(e){process.nextTick(function(){i.eventHandler(e)})});this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function PUBLISH_API_ATTEMPT(e){process.nextTick(function(){i.eventHandler(e)})})}},validateService:function validateService(){},loadServiceClass:function loadServiceClass(e){var t=e;if(!r.util.isEmpty(this.api)){return null}else if(t.apiConfig){return r.Service.defineServiceApi(this.constructor,t.apiConfig)}else if(!this.constructor.services){return null}else{t=new r.Config(r.config);t.update(e,true);var i=t.apiVersions[this.constructor.serviceIdentifier];i=i||t.apiVersion;return this.getLatestServiceClass(i)}},getLatestServiceClass:function getLatestServiceClass(e){e=this.getLatestServiceVersion(e);if(this.constructor.services[e]===null){r.Service.defineServiceApi(this.constructor,e)}return this.constructor.services[e]},getLatestServiceVersion:function getLatestServiceVersion(e){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!e){e="latest"}else if(r.util.isType(e,Date)){e=r.util.date.iso8601(e).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,e)){return e}var t=Object.keys(this.constructor.services).sort();var i=null;for(var n=t.length-1;n>=0;n--){if(t[n][t[n].length-1]!=="*"){i=t[n]}if(t[n].substr(0,10)<=e){return i}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,i){if(typeof t==="function"){i=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=r.util.copy(t);r.util.each(this.config.params,function(e,i){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=i}}})}}var o=new r.Request(this,e,t);this.addAllRequestListeners(o);this.attachMonitoringEmitter(o);if(i)o.send(i);return o},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,i){if(typeof t==="function"){i=t;t={}}var r=this.makeRequest(e,t).toUnauthenticated();return i?r.send(i):r},waitFor:function waitFor(e,t,i){var n=new r.ResourceWaiter(this,e);return n.wait(t,i)},addAllRequestListeners:function addAllRequestListeners(e){var t=[r.events,r.EventListeners.Core,this.serviceInterface(),r.EventListeners.CorePost];for(var i=0;i299){if(n.code)i.FinalAwsException=n.code;if(n.message)i.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)i.FinalSdkException=n.code||n.name;if(n.message)i.FinalSdkExceptionMessage=n.message}}return i},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var i={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var r=e.response;if(r.httpResponse.statusCode){i.HttpStatusCode=r.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){i.AccessKey=e.service.config.credentials.accessKeyId}if(!r.httpResponse.headers)return i;if(e.httpRequest.headers["x-amz-security-token"]){i.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(r.httpResponse.headers["x-amzn-requestid"]){i.XAmznRequestId=r.httpResponse.headers["x-amzn-requestid"]}if(r.httpResponse.headers["x-amz-request-id"]){i.XAmzRequestId=r.httpResponse.headers["x-amz-request-id"]}if(r.httpResponse.headers["x-amz-id-2"]){i.XAmzId2=r.httpResponse.headers["x-amz-id-2"]}return i},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var i=e.response;var r=i.error;if(i.httpResponse.statusCode>299){if(r.code)t.AwsException=r.code;if(r.message)t.AwsExceptionMessage=r.message}else{if(r.code||r.name)t.SdkException=r.code||r.name;if(r.message)t.SdkExceptionMessage=r.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var i;var n;var o;var a=0;var s;var u;var c=this;var l=true;e.on("validate",function(){o=r.util.realClock.now();u=Date.now()},l);e.on("sign",function(){i=r.util.realClock.now();t=Date.now();s=e.httpRequest.region;a++},l);e.on("validateResponse",function(){n=Math.round(r.util.realClock.now()-i)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var i=c.apiAttemptEvent(e);i.Timestamp=t;i.AttemptLatency=n>=0?n:0;i.Region=s;c.emit("apiCallAttempt",[i])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var o=c.attemptFailEvent(e);o.Timestamp=t;n=n||Math.round(r.util.realClock.now()-i);o.AttemptLatency=n>=0?n:0;o.Region=s;c.emit("apiCallAttempt",[o])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=a;if(t.AttemptCount<=0)return;t.Timestamp=u;var i=Math.round(r.util.realClock.now()-o);t.Latency=i>=0?i:0;var n=e.response;if(n.error&&n.error.retryable&&typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var i=null;var n="";if(e){var o=e.service.api.operations||{};i=o[e.operation]||null;n=i?i.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return r.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return r.EventListeners.Query;case"query":return r.EventListeners.Query;case"json":return r.EventListeners.Json;case"rest-json":return r.EventListeners.RestJson;case"rest-xml":return r.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return r.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new r.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var i=this.api.operations[e].paginator;if(!i){if(t){var n=new Error;throw r.util.error(n,"No pagination configuration for "+e)}return null}return i}});r.util.update(r.Service,{defineMethods:function defineMethods(e){r.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var i=e.prototype.api.operations[t];if(i.authtype==="none"){e.prototype[t]=function(e,i){return this.makeUnauthenticatedRequest(t,e,i)}}else{e.prototype[t]=function(e,i){return this.makeRequest(t,e,i)}}})},defineService:function defineService(e,t,i){r.Service._serviceMap[e]=true;if(!Array.isArray(t)){i=t;t=[]}var n=a(r.Service,i||{});if(typeof e==="string"){r.Service.addVersions(n,t);var o=n.serviceIdentifier||e;n.serviceIdentifier=o}else{n.prototype.api=e;r.Service.defineMethods(n)}r.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&r.util.clientSideMonitoring){var s=r.util.clientSideMonitoring.Publisher;var u=r.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new s(c);if(c.enabled){r.Service._clientSideMonitoring=true}}r.SequentialExecutor.call(n.prototype);r.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var i=0;i{var r=i(8738);i(9732);r.util.update(r.CloudFront.prototype,{setupRequestListeners:function setupRequestListeners(e){e.addListener("extractData",r.util.hoistPayloadMember)}})},8142:(e,t,i)=>{var r=i(8738);r.util.update(r.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},7046:(e,t,i)=>{var r=i(8738);var n=i(3226);var o="AWS_STS_REGIONAL_ENDPOINTS";var a="sts_regional_endpoints";r.util.update(r.STS.prototype,{credentialsFrom:function credentialsFrom(e,t){if(!e)return null;if(!t)t=new r.TemporaryCredentials;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretAccessKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration;return t},assumeRoleWithWebIdentity:function assumeRoleWithWebIdentity(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function assumeRoleWithSAML(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function setupRequestListeners(e){e.addListener("validate",this.optInRegionalEndpoint,true)},optInRegionalEndpoint:function optInRegionalEndpoint(e){var t=e.service;var i=t.config;i.stsRegionalEndpoints=n(t._originalConfig,{env:o,sharedConfig:a,clientConfig:"stsRegionalEndpoints"});if(i.stsRegionalEndpoints==="regional"&&t.isGlobalEndpoint){if(!i.region){throw r.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}var s=i.endpoint.indexOf(".amazonaws.com");var u=i.endpoint.substring(0,s)+"."+i.region+i.endpoint.substring(s);e.httpRequest.updateEndpoint(u);e.httpRequest.region=i.region}}})},6674:(e,t,i)=>{var r=i(2733).IniLoader;e.exports.b=new r},2733:(e,t,i)=>{var r=i(8738);var n=i(2087);var o=i(5622);function parseFile(e,t){var i=r.util.ini.parse(r.util.readFileSync(e));var n={};Object.keys(i).forEach(function(e){var r=i[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:r,enumerable:true})});return n}r.IniLoader=r.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var i=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[i]){var r=this.parseFile(i,t);Object.defineProperty(this.resolvedProfiles,i,{value:r})}return this.resolvedProfiles[i]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return o.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw r.util.error(new Error("Cannot load credentials, HOME path not set"))}});var a=r.IniLoader;e.exports={IniLoader:a,parseFile:parseFile}},343:(e,t,i)=>{var r=i(8738);var n=r.util.inherit;var o="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[o];var i=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(i===r.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw r.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[o]=t}else if(i===r.Signers.S3){var a=e.service?e.service.getSkewCorrectedDate():r.util.date.getDate();e.httpRequest.headers[o]=parseInt(r.util.date.unixTimestamp(a)+t,10).toString()}else{throw r.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var i=r.util.urlParse(e.httpRequest.path);var n={};if(i.search){n=r.util.queryStringParse(i.search.substr(1))}var a=e.httpRequest.headers["Authorization"].split(" ");if(a[0]==="AWS"){a=a[1].split(":");n["Signature"]=a.pop();n["AWSAccessKeyId"]=a.join(":");r.util.each(e.httpRequest.headers,function(e,t){if(e===o)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[o];delete n["Authorization"];delete n["Host"]}else if(a[0]==="AWS4-HMAC-SHA256"){a.shift();var s=a.join(" ");var u=s.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=i.pathname;t.search=r.util.queryParamsToString(n)}r.Signers.Presign=n({sign:function sign(e,t,i){e.httpRequest.headers[o]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",r.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",r.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(i){e.build(function(){if(this.response.error)i(this.response.error);else{i(null,r.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return r.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=r.Signers.Presign},3728:(e,t,i)=>{var r=i(8738);var n=r.util.inherit;r.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});r.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return r.Signers.V2;case"v3":return r.Signers.V3;case"s3v4":return r.Signers.V4;case"v4":return r.Signers.V4;case"s3":return r.Signers.S3;case"v3https":return r.Signers.V3Https}throw new Error("Unknown signing version "+e)};i(6576);i(7406);i(8908);i(1794);i(4779);i(343)},4779:(e,t,i)=>{var r=i(8738);var n=r.util.inherit;r.Signers.S3=n(r.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(e,t){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=r.util.date.rfc822(t)}if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}var i=this.sign(e.secretAccessKey,this.stringToSign());var n="AWS "+e.accessKeyId+":"+i;this.request.headers["Authorization"]=n},stringToSign:function stringToSign(){var e=this.request;var t=[];t.push(e.method);t.push(e.headers["Content-MD5"]||"");t.push(e.headers["Content-Type"]||"");t.push(e.headers["presigned-expires"]||"");var i=this.canonicalizedAmzHeaders();if(i)t.push(i);t.push(this.canonicalizedResource());return t.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var e=[];r.util.each(this.request.headers,function(t){if(t.match(/^x-amz-/i))e.push(t)});e.sort(function(e,t){return e.toLowerCase(){var r=i(8738);var n=r.util.inherit;r.Signers.V2=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){if(!t)t=r.util.date.getDate();var i=this.request;i.params.Timestamp=r.util.date.iso8601(t);i.params.SignatureVersion="2";i.params.SignatureMethod="HmacSHA256";i.params.AWSAccessKeyId=e.accessKeyId;if(e.sessionToken){i.params.SecurityToken=e.sessionToken}delete i.params.Signature;i.params.Signature=this.signature(e);i.body=r.util.queryParamsToString(i.params);i.headers["Content-Length"]=i.body.length},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push(this.request.endpoint.host.toLowerCase());e.push(this.request.pathname());e.push(r.util.queryParamsToString(this.request.params));return e.join("\n")}});e.exports=r.Signers.V2},7406:(e,t,i)=>{var r=i(8738);var n=r.util.inherit;r.Signers.V3=n(r.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var i=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=i;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,i)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];r.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];r.util.arrayEach(this.headersToSign(),function iterator(i){t.push(i.toLowerCase().trim()+":"+String(e[i]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];r.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return r.util.crypto.sha256(e.join("\n"))}});e.exports=r.Signers.V3},8908:(e,t,i)=>{var r=i(8738);var n=r.util.inherit;i(7406);r.Signers.V3Https=n(r.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=r.Signers.V3Https},1794:(e,t,i)=>{var r=i(8738);var n=i(2275);var o=r.util.inherit;var a="presigned-expires";r.Signers.V4=o(r.Signers.RequestSigner,{constructor:function V4(e,t,i){r.Signers.RequestSigner.call(this,e);this.serviceName=t;i=i||{};this.signatureCache=typeof i.signatureCache==="boolean"?i.signatureCache:true;this.operation=i.operation;this.signatureVersion=i.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function addAuthorization(e,t){var i=r.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");if(this.isPresigned()){this.updateForPresigned(e,i)}else{this.addHeaders(e,i)}this.request.headers["Authorization"]=this.authorization(e,i)},addHeaders:function addHeaders(e,t){this.request.headers["X-Amz-Date"]=t;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}},updateForPresigned:function updateForPresigned(e,t){var i=this.credentialString(t);var n={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+i,"X-Amz-Expires":this.request.headers[a],"X-Amz-SignedHeaders":this.signedHeaders()};if(e.sessionToken){n["X-Amz-Security-Token"]=e.sessionToken}if(this.request.headers["Content-Type"]){n["Content-Type"]=this.request.headers["Content-Type"]}if(this.request.headers["Content-MD5"]){n["Content-MD5"]=this.request.headers["Content-MD5"]}if(this.request.headers["Cache-Control"]){n["Cache-Control"]=this.request.headers["Cache-Control"]}r.util.each.call(this,this.request.headers,function(e,t){if(e===a)return;if(this.isSignableHeader(e)){var i=e.toLowerCase();if(i.indexOf("x-amz-meta-")===0){n[i]=t}else if(i.indexOf("x-amz-")===0){n[e]=t}}});var o=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=o+r.util.queryParamsToString(n)},authorization:function authorization(e,t){var i=[];var r=this.credentialString(t);i.push(this.algorithm+" Credential="+e.accessKeyId+"/"+r);i.push("SignedHeaders="+this.signedHeaders());i.push("Signature="+this.signature(e,t));return i.join(", ")},signature:function signature(e,t){var i=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return r.util.crypto.hmac(i,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=r.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];r.util.each.call(this,this.request.headers,function(t,i){e.push([t,i])});e.sort(function(e,t){return e[0].toLowerCase(){var r=i(8738);var n={};var o=[];var a=50;var s="aws4_request";e.exports={createScope:function createScope(e,t,i){return[e.substr(0,8),t,i,s].join("/")},getSigningKey:function getSigningKey(e,t,i,u,c){var l=r.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64");var d=[l,t,i,u].join("_");c=c!==false;if(c&&d in n){return n[d]}var p=r.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer");var m=r.util.crypto.hmac(p,i,"buffer");var h=r.util.crypto.hmac(m,u,"buffer");var f=r.util.crypto.hmac(h,s,"buffer");if(c){n[d]=f;o.push(d);if(o.length>a){delete n[o.shift()]}}return f},emptyCache:function emptyCache(){n={};o=[]}}},9681:e=>{function AcceptorStateMachine(e,t){this.currentState=t||null;this.states=e||{}}AcceptorStateMachine.prototype.runTo=function runTo(e,t,i,r){if(typeof e==="function"){r=i;i=t;t=e;e=null}var n=this;var o=n.states[n.currentState];o.fn.call(i||n,r,function(r){if(r){if(o.fail)n.currentState=o.fail;else return t?t.call(i,r):null}else{if(o.accept)n.currentState=o.accept;else return t?t.call(i):null}if(n.currentState===e){return t?t.call(i,r):null}n.runTo(e,t,i,r)})};AcceptorStateMachine.prototype.addState=function addState(e,t,i,r){if(typeof t==="function"){r=t;t=null;i=null}else if(typeof i==="function"){r=i;i=null}if(!this.currentState)this.currentState=e;this.states[e]={accept:t,fail:i,fn:r};return this};e.exports=AcceptorStateMachine},3067:(e,t,i)=>{var r;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+i(8738).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var i=n.uriEscape;var r=Object.keys(e).sort();n.arrayEach(r,function(r){var o=e[r];var a=i(r);var s=a+"=";if(Array.isArray(o)){var u=[];n.arrayEach(o,function(e){u.push(i(e))});s=a+"="+u.sort().join("&"+a+"=")}else if(o!==undefined&&o!==null){s=a+"="+i(o)}t.push(s)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return i(5747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,i){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,i)}else{var r=new n.Buffer(e);if(t!==undefined&&typeof r.fill==="function"){r.fill(t,undefined,undefined,i)}return r}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var i=0;t._read=function(r){if(i>=e.length)return t.push(null);var n=i+r;if(n>e.length)n=e.length;t.push(e.slice(i,n));i=n};return t},concat:function(e){var t=0,i=0,r=null,o;for(o=0;o>>8^t[(i^o)&255]}return(i^-1)>>>0},hmac:function hmac(e,t,i,r){if(!i)i="binary";if(i==="buffer"){i=undefined}if(!r)r="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(r,e).update(t).digest(i)},md5:function md5(e,t,i){return n.crypto.hash("md5",e,t,i)},sha256:function sha256(e,t,i){return n.crypto.hash("sha256",e,t,i)},hash:function(e,t,i,r){var o=n.crypto.createHash(e);if(!i){i="binary"}if(i==="buffer"){i=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var a=n.arraySliceFn(t);var s=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)s=true;if(r&&typeof t==="object"&&typeof t.on==="function"&&!s){t.on("data",function(e){o.update(e)});t.on("error",function(e){r(e)});t.on("end",function(){r(null,o.digest(i))})}else if(r&&a&&!s&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))};l.onload=function(){var e=new n.Buffer(new Uint8Array(l.result));o.update(e);u+=e.length;l._continueReading()};l._continueReading=function(){if(u>=t.size){r(null,o.digest(i));return}var e=u+c;if(e>t.size)e=t.size;l.readAsArrayBuffer(a.call(t,u,e))};l._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!s){t=new n.Buffer(new Uint8Array(t))}var d=o.update(t).digest(i);if(r)r(null,d);return d}},toHex:function toHex(e){var t=[];for(var i=0;i=3e5,false);return r.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)r.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var i=false;if(t===undefined&&r&&r.config){t=r.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")i=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){s++;setTimeout(c,o+(e.retryAfter||0))}else{i(e)}};var c=function(){var t="";o.handleRequest(e,a,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var r=e.statusCode;if(r<300){i(null,t)}else{var o=parseInt(e.headers["retry-after"],10)*1e3||0;var a=n.error(new Error,{statusCode:r,retryable:r>=500||r===429});if(o&&a.retryable)a.retryAfter=o;u(a)}})},u)};r.util.defer(c)},uuid:{v4:function uuidV4(){return i(6355).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var i=t.operation;var r=t.service.api.operations[i].output||{};if(r.payload&&e.data[r.payload]){e.data[r.payload]=e.data[r.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var i=(t||{})[e.operation];if(!i||!i.input||!i.input.payload)return undefined;return i.input.members[i.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var i={};var r={};if(process.env[n.configOptInEnv]){var r=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var o=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var a=0,s=Object.keys(r);a=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},3026:(e,t,i)=>{var r=i(3067);var n=i(6407).XmlNode;var o=i(4160).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,i,r){var o=new n(i);applyNamespaces(o,t,true);serialize(o,e,t);return o.children.length>0||r?o.toString():""};function serialize(e,t,i){switch(i.type){case"structure":return serializeStructure(e,t,i);case"map":return serializeMap(e,t,i);case"list":return serializeList(e,t,i);default:return serializeScalar(e,t,i)}}function serializeStructure(e,t,i){r.arrayEach(i.memberNames,function(r){var o=i.members[r];if(o.location!=="body")return;var a=t[r];var s=o.name;if(a!==undefined&&a!==null){if(o.isXmlAttribute){e.addAttribute(s,a)}else if(o.flattened){serialize(e,a,o)}else{var u=new n(s);e.addChildNode(u);applyNamespaces(u,o);serialize(u,a,o)}}})}function serializeMap(e,t,i){var o=i.key.name||"key";var a=i.value.name||"value";r.each(t,function(t,r){var s=new n(i.flattened?i.name:"entry");e.addChildNode(s);var u=new n(o);var c=new n(a);s.addChildNode(u);s.addChildNode(c);serialize(u,t,i.key);serialize(c,r,i.value)})}function serializeList(e,t,i){if(i.flattened){r.arrayEach(t,function(t){var r=i.member.name||i.name;var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}else{r.arrayEach(t,function(t){var r=i.member.name||"member";var o=new n(r);e.addChildNode(o);serialize(o,t,i.member)})}}function serializeScalar(e,t,i){e.addChildNode(new o(i.toWireFormat(t)))}function applyNamespaces(e,t,i){var r,n="xmlns";if(t.xmlNamespaceUri){r=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(i&&t.api.xmlNamespaceUri){r=t.api.xmlNamespaceUri}if(r)e.addAttribute(n,r)}e.exports=XmlBuilder},6007:e=>{function escapeAttribute(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},1741:e=>{function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},9958:(e,t,i)=>{var r=i(8738);var n=r.util;var o=r.Model.Shape;var a=i(7013);var s={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var i=null;var r=null;var o=new a.Parser(s);o.parseString(e,function(e,t){r=e;i=t});if(i){var u=parseXml(i,t);if(i.ResponseMetadata){u.ResponseMetadata=parseXml(i.ResponseMetadata[0],{})}return u}else if(r){throw n.error(r,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var i={};if(e===null)return i;n.each(t.members,function(r,n){var o=n.name;if(Object.prototype.hasOwnProperty.call(e,o)&&Array.isArray(e[o])){var a=e[o];if(!n.flattened)a=a[0];i[r]=parseXml(a,n)}else if(n.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,o)){i[r]=parseScalar(e.$[o],n)}else if(n.type==="list"&&!t.api.xmlNoDefaultLists){i[r]=n.defaultValue}});return i}function parseMap(e,t){var i={};if(e===null)return i;var r=t.key.name||"key";var o=t.value.name||"value";var a=t.flattened?e:e.entry;if(Array.isArray(a)){n.arrayEach(a,function(e){i[e[r][0]]=parseXml(e[o][0],t.value)})}return i}function parseList(e,t){var i=[];var r=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){i.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[r])){n.arrayEach(e[r],function(e){i.push(parseXml(e,t.member))})}return i}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new o.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(r=0;r1){n[o]=parseList(a,{member:{}})}else{n[o]=parseXml(a[0],{})}}return n}e.exports=NodeXmlParser},6407:(e,t,i)=>{var r=i(6007).escapeAttribute;function XmlNode(e,t){if(t===void 0){t=[]}this.name=e;this.children=t;this.attributes={}}XmlNode.prototype.addAttribute=function(e,t){this.attributes[e]=t;return this};XmlNode.prototype.addChildNode=function(e){this.children.push(e);return this};XmlNode.prototype.removeAttribute=function(e){delete this.attributes[e];return this};XmlNode.prototype.toString=function(){var e=Boolean(this.children.length);var t="<"+this.name;var i=this.attributes;for(var n=0,o=Object.keys(i);n":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},4160:(e,t,i)=>{var r=i(1741).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return r(""+this.value)};e.exports={XmlText:XmlText}},6355:(e,t,i)=>{var r=i(9858);var n=i(2586);var o=n;o.v1=r;o.v4=n;e.exports=o},7640:e=>{var t=[];for(var i=0;i<256;++i){t[i]=(i+256).toString(16).substr(1)}function bytesToUuid(e,i){var r=i||0;var n=t;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}e.exports=bytesToUuid},28:(e,t,i)=>{var r=i(6417);e.exports=function nodeRNG(){return r.randomBytes(16)}},9858:(e,t,i)=>{var r=i(28);var n=i(7640);var o;var a;var s=0;var u=0;function v1(e,t,i){var c=t&&i||0;var l=t||[];e=e||{};var d=e.node||o;var p=e.clockseq!==undefined?e.clockseq:a;if(d==null||p==null){var m=r();if(d==null){d=o=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]}if(p==null){p=a=(m[6]<<8|m[7])&16383}}var h=e.msecs!==undefined?e.msecs:(new Date).getTime();var f=e.nsecs!==undefined?e.nsecs:u+1;var y=h-s+(f-u)/1e4;if(y<0&&e.clockseq===undefined){p=p+1&16383}if((y<0||h>s)&&e.nsecs===undefined){f=0}if(f>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}s=h;u=f;a=p;h+=122192928e5;var g=((h&268435455)*1e4+f)%4294967296;l[c++]=g>>>24&255;l[c++]=g>>>16&255;l[c++]=g>>>8&255;l[c++]=g&255;var b=h/4294967296*1e4&268435455;l[c++]=b>>>8&255;l[c++]=b&255;l[c++]=b>>>24&15|16;l[c++]=b>>>16&255;l[c++]=p>>>8|128;l[c++]=p&255;for(var v=0;v<6;++v){l[c+v]=d[v]}return t?t:n(l)}e.exports=v1},2586:(e,t,i)=>{var r=i(28);var n=i(7640);function v4(e,t,i){var o=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var a=e.random||(e.rng||r)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(t){for(var s=0;s<16;++s){t[o+s]=a[s]}}return t||n(a)}e.exports=v4},6069:(e,t,i)=>{"use strict";var r;r={value:true};var n=i(8105);var o=1e3;var a=function(){function EndpointCache(e){if(e===void 0){e=o}this.maxSize=e;this.cache=new n.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var i=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=this.populateValue(t);this.cache.put(i,r)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=Date.now();var r=this.cache.get(t);if(r){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});var i=function(){function LinkedListNode(e,t){this.key=e;this.value=t}return LinkedListNode}();var r=function(){function LRUCache(e){this.nodeMap={};this.size=0;if(typeof e!=="number"||e<1){throw new Error("Cache size can only be positive number")}this.sizeLimit=e}Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this.size},enumerable:true,configurable:true});LRUCache.prototype.prependToList=function(e){if(!this.headerNode){this.tailNode=e}else{this.headerNode.prev=e;e.next=this.headerNode}this.headerNode=e;this.size++};LRUCache.prototype.removeFromTail=function(){if(!this.tailNode){return undefined}var e=this.tailNode;var t=e.prev;if(t){t.next=undefined}e.prev=undefined;this.tailNode=t;this.size--;return e};LRUCache.prototype.detachFromList=function(e){if(this.headerNode===e){this.headerNode=e.next}if(this.tailNode===e){this.tailNode=e.prev}if(e.prev){e.prev.next=e.next}if(e.next){e.next.prev=e.prev}e.next=undefined;e.prev=undefined;this.size--};LRUCache.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);this.prependToList(t);return t.value}};LRUCache.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);delete this.nodeMap[e]}};LRUCache.prototype.put=function(e,t){if(this.nodeMap[e]){this.remove(e)}else if(this.size===this.sizeLimit){var r=this.removeFromTail();var n=r.key;delete this.nodeMap[n]}var o=new i(e,t);this.nodeMap[e]=o;this.prependToList(o)};LRUCache.prototype.empty=function(){var e=Object.keys(this.nodeMap);for(var t=0;t{(function(e){"use strict";function isArray(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Array]"}else{return false}}function isObject(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Object]"}else{return false}}function strictDeepEqual(e,t){if(e===t){return true}var i=Object.prototype.toString.call(e);if(i!==Object.prototype.toString.call(t)){return false}if(isArray(e)===true){if(e.length!==t.length){return false}for(var r=0;r":true,"=":true,"!":true};var z={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var i;var r;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:P,value:">=",start:t}}else{return{type:L,value:">",start:t}}}else if(i==="="){if(e[this._current]==="="){this._current++;return{type:D,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var i=this._current;var r=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(i.indexOf(e)>=0){return true}else if(r.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var X={};X[p]=0;X[m]=0;X[h]=0;X[f]=0;X[y]=0;X[g]=0;X[v]=0;X[I]=0;X[C]=0;X[S]=0;X[E]=1;X[T]=2;X[N]=3;X[D]=5;X[L]=5;X[q]=5;X[P]=5;X[M]=5;X[w]=5;X[x]=9;X[A]=20;X[R]=21;X[F]=40;X[O]=45;X[_]=50;X[k]=55;X[U]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==p){var i=this._lookaheadToken(0);var r=new Error("Unexpected token type: "+i.type+", value: "+i.value);r.name="ParserError";throw r}return t},_loadTokens:function(e){var t=new Lexer;var i=t.tokenize(e);i.push({type:p,value:"",start:e.length});this.tokens=i},expression:function(e){var t=this._lookaheadToken(0);this._advance();var i=this.nud(t);var r=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===k){this._match(k);return this._parseMultiselectList()}else if(t===_){this._match(_);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(X[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===k){t=this.expression(e)}else if(this._lookahead(0)===R){t=this.expression(e)}else if(this._lookahead(0)===F){this._match(F);t=this._parseDotRHS(e)}else{var i=this._lookaheadToken(0);var r=new Error("Sytanx error, unexpected token: "+i.value+"("+i.type+")");r.name="ParserError";throw r}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==f){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===f){throw new Error("Unexpected token Rbracket")}}}this._match(f);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[m,h];var i,r,n,o;for(;;){i=this._lookaheadToken(0);if(t.indexOf(i.type)<0){throw new Error("Expecting an identifier token, got: "+i.type)}r=i.value;this._advance();this._match(b);n=this.expression(0);o={type:"KeyValuePair",name:r,value:n};e.push(o);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===v){this._match(v);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var i,r,n,o,a,s,u,c,l,d;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){s=t[e.name];if(s===undefined){return null}else{return s}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(d=1;d0){for(d=f;dy;d+=g){n.push(t[d])}}return n;case"Projection":var b=this.visit(e.children[0],t);if(!isArray(b)){return null}l=[];for(d=0;da;break;case P:n=o>=a;break;case q:n=o=e){t=i<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[i]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[i]}]},contains:{_func:this._functionContains,_signature:[{types:[n,o]},{types:[r]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[i]}]},length:{_func:this._functionLength,_signature:[{types:[n,o,a]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[o]}]},max:{_func:this._functionMax,_signature:[{types:[l,d]}]},merge:{_func:this._functionMerge,_signature:[{types:[a],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[o]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[l,d]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[o]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[r]}]},keys:{_func:this._functionKeys,_signature:[{types:[a]}]},values:{_func:this._functionValues,_signature:[{types:[a]}]},sort:{_func:this._functionSort,_signature:[{types:[d,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[o]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[d]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,o]}]},to_array:{_func:this._functionToArray,_signature:[{types:[r]}]},to_string:{_func:this._functionToString,_signature:[{types:[r]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[r]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[r],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var i=this.functionTable[e];if(i===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,i._signature);return i._func.call(this,t)},_validateArgs:function(e,t,i){var r;if(i[i.length-1].variadic){if(t.length=0;o--){r+=i[o]}return r}else{var a=e[0].slice(0);a.reverse();return a}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var i=e[0];for(var r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var i=this._interpreter;var r=e[0];var n=e[1];for(var o=0;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.max.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;o0){var t=this._getTypeName(e[0][0]);if(t===i){return Math.min.apply(Math,e[0])}else{var r=e[0];var n=r[0];for(var o=1;on){return 1}else if(ia){a=u;s=r[c]}}return s},_functionMinBy:function(e){var t=e[1];var r=e[0];var o=this.createKeyFunction(t,[i,n]);var a=Infinity;var s;var u;for(var c=0;c=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};a=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,i,n;this.options={};i=r["0.2"];for(t in i){if(!s.call(i,t))continue;n=i[t];this.options[t]=n}for(t in e){if(!s.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var i,n,u,c,l;i=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===r["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}u=function(e){return function(t,r){var c,l,d,p,m,h;if(typeof r!=="object"){if(e.options.cdata&&o(r)){t.raw(a(r))}else{t.txt(r)}}else if(Array.isArray(r)){for(p in r){if(!s.call(r,p))continue;l=r[p];for(m in l){d=l[m];t=u(t.ele(m),d).up()}}}else{for(m in r){if(!s.call(r,m))continue;l=r[m];if(m===i){if(typeof l==="object"){for(c in l){h=l[c];t=t.att(c,h)}}}else if(m===n){if(e.options.cdata&&o(l)){t=t.raw(a(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(p in l){if(!s.call(l,p))continue;d=l[p];if(typeof d==="string"){if(e.options.cdata&&o(d)){t=t.ele(m).raw(a(d)).up()}else{t=t.ele(m,d).up()}}else{t=u(t.ele(m),d).up()}}}else if(typeof l==="object"){t=u(t.ele(m),l).up()}else{if(typeof l==="string"&&e.options.cdata&&o(l)){t=t.ele(m).raw(a(l)).up()}else{if(l==null){l=""}t=t.ele(m,l.toString()).up()}}}}return t}}(this);c=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},9498:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},7426:function(e,t,i){(function(){"use strict";var e,r,n,o,a,s,u,c,l=function(e,t){return function(){return e.apply(t,arguments)}},d=function(e,t){for(var i in t){if(p.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},p={}.hasOwnProperty;u=i(2696);n=i(8614);e=i(4604);s=i(9068);c=i(8213).setImmediate;r=i(9498).defaults;o=function(e){return typeof e==="object"&&e!=null&&Object.keys(e).length===0};a=function(e,t,i){var r,n,o;for(r=0,n=e.length;r0){u[e.options.childkey]=l}l=u}else if(h){h[e.options.childkey]=h[e.options.childkey]||[];d={};for(s in l){if(!p.call(l,s))continue;d[s]=l[s]}h[e.options.childkey].push(d);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(r.length>0){return e.assignOrPush(h,c,l)}else{if(e.options.explicitRoot){m=l;l={};l[c]=m}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);i=function(e){return function(i){var n,o;o=r[r.length-1];if(o){o[t]+=i;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||i.replace(/\\n/g,"").trim()!=="")){o[e.options.childkey]=o[e.options.childkey]||[];n={"#name":"__text__"};n[t]=i;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}o[e.options.childkey].push(n)}return o}}}(this);this.saxParser.ontext=i;return this.saxParser.oncdata=function(e){return function(e){var t;t=i(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,i){var r;if(i!=null&&typeof i==="function"){this.on("end",function(e){this.reset();return i(null,e)});this.on("error",function(e){this.reset();return i(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){r=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",r);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw r}}};return Parser}(n.EventEmitter);t.parseString=function(e,i,r){var n,o,a;if(r!=null){if(typeof r==="function"){n=r}if(typeof i==="object"){o=i}}else{if(typeof i==="function"){n=i}o={}}a=new t.Parser(o);return a.parseString(e,n)}}).call(this)},9068:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},7013:function(e,t,i){(function(){"use strict";var e,r,n,o,a=function(e,t){for(var i in t){if(s.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},s={}.hasOwnProperty;r=i(9498);e=i(1002);n=i(7426);o=i(9068);t.defaults=r.defaults;t.processors=o;t.ValidationError=function(e){a(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},2696:(e,t,i)=>{(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,i){if(!(this instanceof SAXParser)){return new SAXParser(t,i)}var r=this;clearBuffers(r);r.q=r.c="";r.bufferCheckPosition=e.MAX_BUFFER_LENGTH;r.opt=i||{};r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags;r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase";r.tags=[];r.closed=r.closedRoot=r.sawRoot=false;r.tag=r.error=null;r.strict=!!t;r.noscript=!!(t||r.opt.noscript);r.state=h.BEGIN;r.strictEntities=r.opt.strictEntities;r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);r.attribList=[];if(r.opt.xmlns){r.ns=Object.create(c)}r.trackPosition=r.opt.position!==false;if(r.trackPosition){r.position=r.line=r.column=0}emit(r,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i))t.push(i);return t}}function checkBufferLength(i){var r=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var o=0,a=t.length;or){switch(t[o]){case"textNode":closeText(i);break;case"cdata":emitNode(i,"oncdata",i.cdata);i.cdata="";break;case"script":emitNode(i,"onscript",i.script);i.script="";break;default:error(i,"Max buffer length exceeded: "+t[o])}}n=Math.max(n,s)}var u=e.MAX_BUFFER_LENGTH-n;i.bufferCheckPosition=u+i.position}function clearBuffers(e){for(var i=0,r=t.length;i"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var h=0;e.STATE={BEGIN:h++,BEGIN_WHITESPACE:h++,TEXT:h++,TEXT_ENTITY:h++,OPEN_WAKA:h++,SGML_DECL:h++,SGML_DECL_QUOTED:h++,DOCTYPE:h++,DOCTYPE_QUOTED:h++,DOCTYPE_DTD:h++,DOCTYPE_DTD_QUOTED:h++,COMMENT_STARTING:h++,COMMENT:h++,COMMENT_ENDING:h++,COMMENT_ENDED:h++,CDATA:h++,CDATA_ENDING:h++,CDATA_ENDING_2:h++,PROC_INST:h++,PROC_INST_BODY:h++,PROC_INST_ENDING:h++,OPEN_TAG:h++,OPEN_TAG_SLASH:h++,ATTRIB:h++,ATTRIB_NAME:h++,ATTRIB_NAME_SAW_WHITE:h++,ATTRIB_VALUE:h++,ATTRIB_VALUE_QUOTED:h++,ATTRIB_VALUE_CLOSED:h++,ATTRIB_VALUE_UNQUOTED:h++,ATTRIB_VALUE_ENTITY_Q:h++,ATTRIB_VALUE_ENTITY_U:h++,CLOSE_TAG:h++,CLOSE_TAG_SAW_WHITE:h++,SCRIPT:h++,SCRIPT_ENDING:h++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var i=e.ENTITIES[t];var r=typeof i==="number"?String.fromCharCode(i):i;e.ENTITIES[t]=r});for(var f in e.STATE){e.STATE[e.STATE[f]]=f}h=e.STATE;function emit(e,t,i){e[t]&&e[t](i)}function emitNode(e,t,i){if(e.textNode)closeText(e);emit(e,t,i)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==h.BEGIN&&e.state!==h.BEGIN_WHITESPACE&&e.state!==h.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var i=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){i.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",i)}function qname(e,t){var i=e.indexOf(":");var r=i<0?["",e]:e.split(":");var n=r[0];var o=r[1];if(t&&e==="xmlns"){n="xmlns";o=""}return{prefix:n,local:o}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var i=t.prefix;var r=t.local;if(i==="xmlns"){if(r==="xml"&&e.attribValue!==s){strictFail(e,"xml: prefix must be bound to "+s+"\n"+"Actual: "+e.attribValue)}else if(r==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var o=e.tags[e.tags.length-1]||e;if(n.ns===o.ns){n.ns=Object.create(o.ns)}n.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var i=e.tag;var r=qname(e.tagName);i.prefix=r.prefix;i.local=r.local;i.uri=i.ns[r.prefix]||"";if(i.prefix&&!i.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));i.uri=r.prefix}var n=e.tags[e.tags.length-1]||e;if(i.ns&&n.ns!==i.ns){Object.keys(i.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:i.ns[t]})})}for(var o=0,a=e.attribList.length;o";e.tagName="";e.state=h.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var i=e.tagName;if(!e.strict){i=i[e.looseCase]()}var r=i;while(t--){var n=e.tags[t];if(n.name!==r){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=h.TEXT;return}e.tagName=i;var o=e.tags.length;while(o-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var s={};for(var u in a.ns){s[u]=a.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&a.ns!==c.ns){Object.keys(a.ns).forEach(function(t){var i=a.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:i})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=h.TEXT}function parseEntity(e){var t=e.entity;var i=t.toLowerCase();var r;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[i]){return e.ENTITIES[i]}t=i;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);r=parseInt(t,16);n=r.toString(16)}else{t=t.slice(1);r=parseInt(t,10);n=r.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(r)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(r)}function beginWhiteSpace(e,t){if(t==="<"){e.state=h.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=h.TEXT}}function charAt(e,t){var i="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=h.TEXT}else if(isQuote(r)){t.state=h.SGML_DECL_QUOTED;t.sgmlDecl+=r}else{t.sgmlDecl+=r}continue;case h.SGML_DECL_QUOTED:if(r===t.q){t.state=h.SGML_DECL;t.q=""}t.sgmlDecl+=r;continue;case h.DOCTYPE:if(r===">"){t.state=h.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=r;if(r==="["){t.state=h.DOCTYPE_DTD}else if(isQuote(r)){t.state=h.DOCTYPE_QUOTED;t.q=r}}continue;case h.DOCTYPE_QUOTED:t.doctype+=r;if(r===t.q){t.q="";t.state=h.DOCTYPE}continue;case h.DOCTYPE_DTD:t.doctype+=r;if(r==="]"){t.state=h.DOCTYPE}else if(isQuote(r)){t.state=h.DOCTYPE_DTD_QUOTED;t.q=r}continue;case h.DOCTYPE_DTD_QUOTED:t.doctype+=r;if(r===t.q){t.state=h.DOCTYPE_DTD;t.q=""}continue;case h.COMMENT:if(r==="-"){t.state=h.COMMENT_ENDING}else{t.comment+=r}continue;case h.COMMENT_ENDING:if(r==="-"){t.state=h.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+r;t.state=h.COMMENT}continue;case h.COMMENT_ENDED:if(r!==">"){strictFail(t,"Malformed comment");t.comment+="--"+r;t.state=h.COMMENT}else{t.state=h.TEXT}continue;case h.CDATA:if(r==="]"){t.state=h.CDATA_ENDING}else{t.cdata+=r}continue;case h.CDATA_ENDING:if(r==="]"){t.state=h.CDATA_ENDING_2}else{t.cdata+="]"+r;t.state=h.CDATA}continue;case h.CDATA_ENDING_2:if(r===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=h.TEXT}else if(r==="]"){t.cdata+="]"}else{t.cdata+="]]"+r;t.state=h.CDATA}continue;case h.PROC_INST:if(r==="?"){t.state=h.PROC_INST_ENDING}else if(isWhitespace(r)){t.state=h.PROC_INST_BODY}else{t.procInstName+=r}continue;case h.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(r)){continue}else if(r==="?"){t.state=h.PROC_INST_ENDING}else{t.procInstBody+=r}continue;case h.PROC_INST_ENDING:if(r===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=h.TEXT}else{t.procInstBody+="?"+r;t.state=h.PROC_INST_BODY}continue;case h.OPEN_TAG:if(isMatch(d,r)){t.tagName+=r}else{newTag(t);if(r===">"){openTag(t)}else if(r==="/"){t.state=h.OPEN_TAG_SLASH}else{if(!isWhitespace(r)){strictFail(t,"Invalid character in tag name")}t.state=h.ATTRIB}}continue;case h.OPEN_TAG_SLASH:if(r===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=h.ATTRIB}continue;case h.ATTRIB:if(isWhitespace(r)){continue}else if(r===">"){openTag(t)}else if(r==="/"){t.state=h.OPEN_TAG_SLASH}else if(isMatch(l,r)){t.attribName=r;t.attribValue="";t.state=h.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case h.ATTRIB_NAME:if(r==="="){t.state=h.ATTRIB_VALUE}else if(r===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(r)){t.state=h.ATTRIB_NAME_SAW_WHITE}else if(isMatch(d,r)){t.attribName+=r}else{strictFail(t,"Invalid attribute name")}continue;case h.ATTRIB_NAME_SAW_WHITE:if(r==="="){t.state=h.ATTRIB_VALUE}else if(isWhitespace(r)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(r===">"){openTag(t)}else if(isMatch(l,r)){t.attribName=r;t.state=h.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=h.ATTRIB}}continue;case h.ATTRIB_VALUE:if(isWhitespace(r)){continue}else if(isQuote(r)){t.q=r;t.state=h.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=h.ATTRIB_VALUE_UNQUOTED;t.attribValue=r}continue;case h.ATTRIB_VALUE_QUOTED:if(r!==t.q){if(r==="&"){t.state=h.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=r}continue}attrib(t);t.q="";t.state=h.ATTRIB_VALUE_CLOSED;continue;case h.ATTRIB_VALUE_CLOSED:if(isWhitespace(r)){t.state=h.ATTRIB}else if(r===">"){openTag(t)}else if(r==="/"){t.state=h.OPEN_TAG_SLASH}else if(isMatch(l,r)){strictFail(t,"No whitespace between attributes");t.attribName=r;t.attribValue="";t.state=h.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case h.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(r)){if(r==="&"){t.state=h.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=r}continue}attrib(t);if(r===">"){openTag(t)}else{t.state=h.ATTRIB}continue;case h.CLOSE_TAG:if(!t.tagName){if(isWhitespace(r)){continue}else if(notMatch(l,r)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(d,r)){t.tagName+=r}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case h.TEXT_ENTITY:case h.ATTRIB_VALUE_ENTITY_Q:case h.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case h.TEXT_ENTITY:u=h.TEXT;c="textNode";break;case h.ATTRIB_VALUE_ENTITY_Q:u=h.ATTRIB_VALUE_QUOTED;c="attribValue";break;case h.ATTRIB_VALUE_ENTITY_U:u=h.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(r===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?m:p,r)){t.entity+=r}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+r;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var i=function(){var i=16384;var r=[];var n;var o;var a=-1;var s=arguments.length;if(!s){return""}var u="";while(++a1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){r.push(c)}else{c-=65536;n=(c>>10)+55296;o=c%1024+56320;r.push(n,o)}if(a+1===s||r.length>i){u+=e.apply(null,r);r.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:i,configurable:true,writable:true})}else{String.fromCodePoint=i}})()}})(false?0:t)},983:function(e){(function(){var t,i,r,n,o,a,s=[].slice,u={}.hasOwnProperty;t=function(){var e,t,i,r,o,a;a=arguments[0],o=2<=arguments.length?s.call(arguments,1):[];if(n(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,i=o.length;e=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof p){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,i){return this.declaration(e,t,i)};XMLDocumentCB.prototype.dtd=function(e,t,i){return this.doctype(e,t,i)};XMLDocumentCB.prototype.e=function(e,t,i){return this.element(e,t,i)};XMLDocumentCB.prototype.n=function(e,t,i){return this.node(e,t,i)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},6484:function(e,t,i){(function(){var t,r,n,o,a,s,u=function(e,t){for(var i in t){if(c.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;s=i(983),a=s.isObject,o=s.isFunction;n=i(5089);t=i(1395);e.exports=r=function(e){u(XMLElement,e);function XMLElement(e,t,i){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(i!=null){this.attribute(i)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,i,r;i=Object.create(this);if(i.isRoot){i.documentObject=null}i.attributes={};r=this.attributes;for(t in r){if(!c.call(r,t))continue;e=r[t];i.attributes[t]=e.clone()}i.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=i;return i.children.push(t)});return i};XMLElement.prototype.attribute=function(e,i){var r,n;if(e!=null){e=e.valueOf()}if(a(e)){for(r in e){if(!c.call(e,r))continue;n=e[r];this.attribute(r,n)}}else{if(o(i)){i=i.apply()}if(!this.options.skipNullAttributes||i!=null){this.attributes[e]=new t(this,e,i)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,i,r;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(i=0,r=e.length;i"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,i){var u,c,l,p;i||(i=0);this.stream.write(this.space(i));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));p=e.children;for(c=0,l=p.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,f;i||(i=0);f=this.space(i);this.stream.write(f+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);m=e.children;for(a=0,s=m.length;a")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(f)}).call(this)},7834:function(e,t,i){(function(){var t,r,n,o,a,s,u,c,l,d,p,m,h,f,y=function(e,t){for(var i in t){if(g.call(t,i))e[i]=t[i]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=i(6645);c=i(8873);t=i(9236);r=i(360);l=i(6484);p=i(8732);h=i(617);d=i(8947);n=i(2529);o=i(7486);a=i(9252);s=i(3353);f=i(6670);e.exports=m=function(e){y(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,i,n,o,a;this.textispresent=false;o="";a=e.children;for(i=0,n=a.length;i"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var i;i=this.space(t);i+='";i+=this.newline;return i};XMLStringWriter.prototype.docType=function(e,i){var u,c,l,p,m;i||(i=0);p=this.space(i);p+="0){p+=" [";p+=this.newline;m=e.children;for(c=0,l=m.length;c";p+=this.newline;return p};XMLStringWriter.prototype.element=function(e,i){var n,o,a,s,u,c,m,f,y,b,v,I,C;i||(i=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}I=this.space(i);f="";f+=I+"<"+e.name;y=e.attributes;for(m in y){if(!g.call(y,m))continue;n=y[m];f+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){f+=">"+this.newline}else{f+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){f+=">";f+=e.children[0].value;f+=""+this.newline}else{if(this.dontprettytextnodes){b=e.children;for(a=0,u=b.length;a"+this.newline;v=e.children;for(s=0,c=v.length;s"+this.newline}return f};XMLStringWriter.prototype.processingInstruction=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.dtdNotation=function(e,t){var i;i=this.space(t)+""+this.newline;return i};XMLStringWriter.prototype.openNode=function(e,t){var i,r,n,o;t||(t=0);if(e instanceof l){n=this.space(t)+"<"+e.name;o=e.attributes;for(r in o){if(!g.call(o,r))continue;i=o[r];n+=this.attribute(i)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(f)}).call(this)},645:function(e){(function(){var t,i=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=i(this.assertLegalChar,this);var t,n,o;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!r.call(n,t))continue;o=n[t];this[t]=o}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},5769:function(e,t,i){(function(){var t,r,n,o,a,s,u;u=i(983),a=u.assign,s=u.isFunction;t=i(1582);r=i(2871);o=i(7834);n=i(5922);e.exports.create=function(e,i,r,n){var o,s;if(e==null){throw new Error("Root element needs a name")}n=a({},i,r,n);o=new t(n);s=o.element(e);if(!n.headless){o.declaration(n);if(n.pubID!=null||n.sysID!=null){o.doctype(n)}}return s};e.exports.begin=function(e,i,n){var o;if(s(e)){o=[e,i],i=o[0],n=o[1];e={}}if(i){return new r(e,i,n)}else{return new t(e)}};e.exports.stringWriter=function(e){return new o(e)};e.exports.streamWriter=function(e,t){return new n(e,t)}}).call(this)},2178:(e,t,i)=>{"use strict";i.r(t);i.d(t,{default:()=>u});var r=i(7117);var n=i.n(r);var o=i(7749);var a=i.n(o);const s=async()=>{try{const e=r.getInput("distribution-id",{required:true});const t=r.getInput("caller-reference",{required:false});const i=r.getInput("paths",{required:false}).trim().split(/\r?[\n,]/);const n={DistributionId:e,InvalidationBatch:{CallerReference:t,Paths:{Quantity:i.length,Items:i}}};const a=new o({apiVersion:"2019-03-26",customUserAgent:"aws-github-actions-cloudfront"});const s=await a.createInvalidation(n).promise();const u=s.Invalidation.Id;r.setOutput("invalidation-id",u)}catch(e){r.setFailed(e.message)}};s();const u=s},8866:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2016-11-25","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2016-11-25"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2016-11-25/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2016-11-25/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2016-11-25/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S21"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateInvalidation":{"http":{"requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S28","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2016-11-25/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2016-11-25/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S2e"},"Tags":{"shape":"S21"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2016-11-25/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2016-11-25/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2016-11-25/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2016-11-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S2e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2016-11-25/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3a"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2016-11-25/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3a"}},"payload":"DistributionList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2016-11-25/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2016-11-25/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2016-11-25/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S21"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2016-11-25/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S21","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2016-11-25/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2016-11-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2016-11-25/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2016-11-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2016-11-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","members":{"LambdaFunctionARN":{},"EventType":{}}}}}},"S1a":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}}}}},"S1d":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1i":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1m":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1s":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"DistributionConfig":{"shape":"S7"}}},"S1u":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S21":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S28":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2c":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S28"}}},"S2e":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S2f":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S2i":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"StreamingDistributionConfig":{"shape":"S2e"}}},"S3a":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},8238:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","output_token":"DistributionList.NextMarker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","output_token":"InvalidationList.NextMarker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","output_token":"StreamingDistributionList.NextMarker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","result_key":"StreamingDistributionList.Items"}}}')},554:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},1927:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2017-03-25","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2017-03-25"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2017-03-25/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2017-03-25/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2017-03-25/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S21"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateInvalidation":{"http":{"requestUri":"/2017-03-25/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S28","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2017-03-25/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2017-03-25/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S2e"},"Tags":{"shape":"S21"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2017-03-25/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteServiceLinkedRole":{"http":{"method":"DELETE","requestUri":"/2017-03-25/service-linked-role/{RoleName}","responseCode":204},"input":{"type":"structure","required":["RoleName"],"members":{"RoleName":{"location":"uri","locationName":"RoleName"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2017-03-25/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2c"}},"payload":"Invalidation"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2017-03-25/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-03-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S2e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2017-03-25/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3b"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2017-03-25/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S3b"}},"payload":"DistributionList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2017-03-25/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2017-03-25/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2017-03-25/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S21"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2017-03-25/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S21","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2017-03-25/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2017-03-25/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2017-03-25/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1s"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2017-03-25/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S2e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-03-25/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","members":{"LambdaFunctionARN":{},"EventType":{}}}}}},"S1a":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"}}}}}},"S1d":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1i":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1m":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1s":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"DistributionConfig":{"shape":"S7"}}},"S1u":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S21":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S28":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2c":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S28"}}},"S2e":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S2f"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S2f":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S2i":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1u"},"StreamingDistributionConfig":{"shape":"S2e"}}},"S3b":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1a"},"CustomErrorResponses":{"shape":"S1d"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1i"},"Restrictions":{"shape":"S1m"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},4471:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},5903:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},5316:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2017-10-30","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2017-10-30"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2017-10-30/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2017-10-30/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2017-10-30/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S22"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2017-10-30/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2017-10-30/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2017-10-30/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S2v","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2017-10-30/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2017-10-30/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2017-10-30/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S35"},"Tags":{"shape":"S22"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2017-10-30/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2017-10-30/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2017-10-30/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2017-10-30/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S29"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2017-10-30/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S31"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2017-10-30/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2017-10-30/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S35"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2017-10-30/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2017-10-30/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2017-10-30/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S2n"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2017-10-30/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2017-10-30/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2017-10-30/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2017-10-30/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S22"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2017-10-30/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S22","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2017-10-30/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2017-10-30/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2017-10-30/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2017-10-30/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2017-10-30/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2017-10-30/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2017-10-30/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2017-10-30/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{}}}}}},"S1b":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}}}}},"S1e":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1j":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1n":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1t":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"DistributionConfig":{"shape":"S7"}}},"S1v":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S22":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S29":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}},"S2a":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2e":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2k":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S29"}}},"S2m":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S2n"}}},"S2n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S2t":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2m"}}},"S2v":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2z":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S2v"}}},"S31":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S33":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S31"}}},"S35":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S36":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S39":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"StreamingDistributionConfig":{"shape":"S35"}}},"S4g":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},2603:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},215:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},2621:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2018-06-18","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2018-06-18"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2018-06-18/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2018-06-18/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2018-06-18/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S22"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2018-06-18/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2018-06-18/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S2v","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2018-06-18/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2018-06-18/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2018-06-18/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S35"},"Tags":{"shape":"S22"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2018-06-18/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2018-06-18/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2018-06-18/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2018-06-18/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S29"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S2z"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2018-06-18/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S31"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2018-06-18/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-06-18/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S35"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2018-06-18/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2018-06-18/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4g"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2018-06-18/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S2n"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2018-06-18/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2018-06-18/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2018-06-18/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"Sy"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2018-06-18/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S22"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2018-06-18/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S22","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2018-06-18/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2018-06-18/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2018-06-18/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S1t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2018-06-18/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S29","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2k"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2018-06-18/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2018-06-18/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S31","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S33"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2018-06-18/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S35","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-06-18/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S39"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}},"So":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Sy":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S12":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S13"}}}}},"S13":{"type":"list","member":{"locationName":"Method"}},"S16":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1b":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"So"},"TrustedSigners":{"shape":"Sy"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S12"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S16"},"FieldLevelEncryptionId":{}}}}}},"S1e":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1j":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1n":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S1t":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"DistributionConfig":{"shape":"S7"}}},"S1v":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S22":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S29":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2a"},"ContentTypeProfileConfig":{"shape":"S2e"}}},"S2a":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2e":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2k":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S29"}}},"S2m":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S2n"}}},"S2n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S2t":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2m"}}},"S2v":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S2z":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S2v"}}},"S31":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S33":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S31"}}},"S35":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S36"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"Sy"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S36":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S39":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S1v"},"StreamingDistributionConfig":{"shape":"S35"}}},"S4g":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"DefaultCacheBehavior":{"shape":"Sn"},"CacheBehaviors":{"shape":"S1b"},"CustomErrorResponses":{"shape":"S1e"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1j"},"Restrictions":{"shape":"S1n"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},1432:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},393:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},721:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2018-11-05","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2018-11-05"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2018-11-05/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2018-11-05/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2018-11-05/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S2b"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2018-11-05/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2i","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2t"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2018-11-05/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2v","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S32"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S34","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S38"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2018-11-05/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S3a","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3c"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2018-11-05/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S3e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2018-11-05/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S3e"},"Tags":{"shape":"S2b"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2018-11-05/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2018-11-05/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2018-11-05/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2018-11-05/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S2i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S32"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2v"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S38"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2018-11-05/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3c"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S3a"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2018-11-05/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2018-11-05/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S3e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2018-11-05/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4p"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2018-11-05/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4p"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2j"},"ContentTypeProfileConfig":{"shape":"S2n"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2018-11-05/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S2w"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2018-11-05/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2018-11-05/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2018-11-05/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S3f"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"S17"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2018-11-05/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S2b"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2018-11-05/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S2b","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2018-11-05/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2018-11-05/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2018-11-05/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S22"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2018-11-05/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2i","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2t"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2018-11-05/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2v","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S32"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2018-11-05/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S3a","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3c"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2018-11-05/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S3e","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2018-11-05/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1s"},"Restrictions":{"shape":"S1w"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}}}}}}},"Sn":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroup","type":"structure","required":["Id","FailoverCriteria","Members"],"members":{"Id":{},"FailoverCriteria":{"type":"structure","required":["StatusCodes"],"members":{"StatusCodes":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StatusCode","type":"integer"}}}}}},"Members":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroupMember","type":"structure","required":["OriginId"],"members":{"OriginId":{}}}}}}}}}}},"Sw":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}},"Sx":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"S17":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S1b":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"}}}}},"S1c":{"type":"list","member":{"locationName":"Method"}},"S1f":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1k":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}}}}},"S1n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1s":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1w":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S22":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S24"},"DistributionConfig":{"shape":"S7"}}},"S24":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S2b":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S2i":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2j"},"ContentTypeProfileConfig":{"shape":"S2n"}}},"S2j":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2n":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2t":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S2i"}}},"S2v":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S2w"}}},"S2w":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S32":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2v"}}},"S34":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S38":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S34"}}},"S3a":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S3c":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S3a"}}},"S3e":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S3f"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"S17"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S3f":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S3i":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S24"},"StreamingDistributionConfig":{"shape":"S3e"}}},"S4p":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1s"},"Restrictions":{"shape":"S1w"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}}}}}}}')},8762:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},3113:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":25,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},6817:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2019-03-26","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2019-03-26"},"operations":{"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2019-03-26/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2019-03-26/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2019-03-26/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"S7"},"Tags":{"shape":"S2f"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2019-03-26/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2x"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2019-03-26/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S36"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2019-03-26/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S38","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S3c"}},"payload":"Invalidation"}},"CreatePublicKey":{"http":{"requestUri":"/2019-03-26/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S3e","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3g"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateStreamingDistribution":{"http":{"requestUri":"/2019-03-26/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S3i","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2019-03-26/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S3i"},"Tags":{"shape":"S2f"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2019-03-26/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2019-03-26/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2019-03-26/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2019-03-26/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"S7"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2x"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S2m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S36"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2z"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S3c"}},"payload":"Invalidation"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2019-03-26/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3g"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S3e"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2019-03-26/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2019-03-26/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S3i"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2019-03-26/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4t"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2019-03-26/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S4t"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S2n"},"ContentTypeProfileConfig":{"shape":"S2r"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2019-03-26/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S30"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2019-03-26/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2019-03-26/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2019-03-26/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S3j"},"Aliases":{"shape":"S8"},"TrustedSigners":{"shape":"S17"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2019-03-26/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S2f"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2019-03-26/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S2f","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2019-03-26/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2019-03-26/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"S2","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"S5"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2019-03-26/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"S7","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S23"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2019-03-26/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2m","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S2x"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2019-03-26/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S36"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2019-03-26/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S3e","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S3g"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2019-03-26/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S3i","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2019-03-26/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S3m"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"S5":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"S2"}}},"S7":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"S8"},"DefaultRootObject":{},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{"type":"string","sensitive":true},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1t"},"Restrictions":{"shape":"S1x"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"S8":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sb":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}},"ConnectionAttempts":{"type":"integer"},"ConnectionTimeout":{"type":"integer"}}}}}},"Sn":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroup","type":"structure","required":["Id","FailoverCriteria","Members"],"members":{"Id":{},"FailoverCriteria":{"type":"structure","required":["StatusCodes"],"members":{"StatusCodes":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StatusCode","type":"integer"}}}}}},"Members":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroupMember","type":"structure","required":["OriginId"],"members":{"OriginId":{}}}}}}}}}}},"Sw":{"type":"structure","required":["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}},"Sx":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"Headers":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"S17":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S1b":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1c"}}}}},"S1c":{"type":"list","member":{"locationName":"Method"}},"S1f":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1k":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],"members":{"PathPattern":{},"TargetOriginId":{},"ForwardedValues":{"shape":"Sx"},"TrustedSigners":{"shape":"S17"},"ViewerProtocolPolicy":{},"MinTTL":{"type":"long"},"AllowedMethods":{"shape":"S1b"},"SmoothStreaming":{"type":"boolean"},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1f"},"FieldLevelEncryptionId":{}}}}}},"S1n":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S1t":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S1x":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S23":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S25"},"DistributionConfig":{"shape":"S7"},"AliasICPRecordals":{"shape":"S2a"}}},"S25":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S2a":{"type":"list","member":{"locationName":"AliasICPRecordal","type":"structure","members":{"CNAME":{},"ICPRecordalStatus":{}}}},"S2f":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S2m":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S2n"},"ContentTypeProfileConfig":{"shape":"S2r"}}},"S2n":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S2r":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S2x":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S2m"}}},"S2z":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S30"}}},"S30":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S36":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S2z"}}},"S38":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S3c":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S38"}}},"S3e":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S3g":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S3e"}}},"S3i":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S3j"},"Aliases":{"shape":"S8"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"S17"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S3j":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S3m":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S25"},"StreamingDistributionConfig":{"shape":"S3i"}}},"S4t":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"S8"},"Origins":{"shape":"Sb"},"OriginGroups":{"shape":"Sn"},"DefaultCacheBehavior":{"shape":"Sw"},"CacheBehaviors":{"shape":"S1k"},"CustomErrorResponses":{"shape":"S1n"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S1t"},"Restrictions":{"shape":"S1x"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"},"AliasICPRecordals":{"shape":"S2a"}}}}}}}}')},2645:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},6997:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":35,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},9711:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2020-05-31","endpointPrefix":"cloudfront","globalEndpoint":"cloudfront.amazonaws.com","protocol":"rest-xml","serviceAbbreviation":"CloudFront","serviceFullName":"Amazon CloudFront","serviceId":"CloudFront","signatureVersion":"v4","uid":"cloudfront-2020-05-31"},"operations":{"CreateCachePolicy":{"http":{"requestUri":"/2020-05-31/cache-policy","responseCode":201},"input":{"type":"structure","required":["CachePolicyConfig"],"members":{"CachePolicyConfig":{"shape":"S2","locationName":"CachePolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"CachePolicyConfig"},"output":{"type":"structure","members":{"CachePolicy":{"shape":"Sl"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicy"}},"CreateCloudFrontOriginAccessIdentity":{"http":{"requestUri":"/2020-05-31/origin-access-identity/cloudfront","responseCode":201},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"So","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"Sq"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"CreateDistribution":{"http":{"requestUri":"/2020-05-31/distribution","responseCode":201},"input":{"type":"structure","required":["DistributionConfig"],"members":{"DistributionConfig":{"shape":"Ss","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateDistributionWithTags":{"http":{"requestUri":"/2020-05-31/distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["DistributionConfigWithTags"],"members":{"DistributionConfigWithTags":{"locationName":"DistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","required":["DistributionConfig","Tags"],"members":{"DistributionConfig":{"shape":"Ss"},"Tags":{"shape":"S2s"}}}},"payload":"DistributionConfigWithTags"},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"CreateFieldLevelEncryptionConfig":{"http":{"requestUri":"/2020-05-31/field-level-encryption","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionConfig"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S3a"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"CreateFieldLevelEncryptionProfile":{"http":{"requestUri":"/2020-05-31/field-level-encryption-profile","responseCode":201},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S3c","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S3j"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"CreateInvalidation":{"http":{"requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation","responseCode":201},"input":{"type":"structure","required":["DistributionId","InvalidationBatch"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"InvalidationBatch":{"shape":"S3l","locationName":"InvalidationBatch","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"InvalidationBatch"},"output":{"type":"structure","members":{"Location":{"location":"header","locationName":"Location"},"Invalidation":{"shape":"S3p"}},"payload":"Invalidation"}},"CreateMonitoringSubscription":{"http":{"requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},"input":{"type":"structure","required":["MonitoringSubscription","DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"MonitoringSubscription":{"shape":"S3r","locationName":"MonitoringSubscription","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"MonitoringSubscription"},"output":{"type":"structure","members":{"MonitoringSubscription":{"shape":"S3r"}},"payload":"MonitoringSubscription"}},"CreateOriginRequestPolicy":{"http":{"requestUri":"/2020-05-31/origin-request-policy","responseCode":201},"input":{"type":"structure","required":["OriginRequestPolicyConfig"],"members":{"OriginRequestPolicyConfig":{"shape":"S3w","locationName":"OriginRequestPolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"OriginRequestPolicyConfig"},"output":{"type":"structure","members":{"OriginRequestPolicy":{"shape":"S44"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicy"}},"CreatePublicKey":{"http":{"requestUri":"/2020-05-31/public-key","responseCode":201},"input":{"type":"structure","required":["PublicKeyConfig"],"members":{"PublicKeyConfig":{"shape":"S46","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S48"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"CreateRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/realtime-log-config","responseCode":201},"input":{"locationName":"CreateRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","required":["EndPoints","Fields","Name","SamplingRate"],"members":{"EndPoints":{"shape":"S4a"},"Fields":{"shape":"S4d"},"Name":{},"SamplingRate":{"type":"long"}}},"output":{"type":"structure","members":{"RealtimeLogConfig":{"shape":"S4f"}}}},"CreateStreamingDistribution":{"http":{"requestUri":"/2020-05-31/streaming-distribution","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfig"],"members":{"StreamingDistributionConfig":{"shape":"S4h","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"CreateStreamingDistributionWithTags":{"http":{"requestUri":"/2020-05-31/streaming-distribution?WithTags","responseCode":201},"input":{"type":"structure","required":["StreamingDistributionConfigWithTags"],"members":{"StreamingDistributionConfigWithTags":{"locationName":"StreamingDistributionConfigWithTags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","required":["StreamingDistributionConfig","Tags"],"members":{"StreamingDistributionConfig":{"shape":"S4h"},"Tags":{"shape":"S2s"}}}},"payload":"StreamingDistributionConfigWithTags"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"Location":{"location":"header","locationName":"Location"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"DeleteCachePolicy":{"http":{"method":"DELETE","requestUri":"/2020-05-31/cache-policy/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteCloudFrontOriginAccessIdentity":{"http":{"method":"DELETE","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteDistribution":{"http":{"method":"DELETE","requestUri":"/2020-05-31/distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionConfig":{"http":{"method":"DELETE","requestUri":"/2020-05-31/field-level-encryption/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteFieldLevelEncryptionProfile":{"http":{"method":"DELETE","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteMonitoringSubscription":{"http":{"method":"DELETE","requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"}}},"output":{"type":"structure","members":{}}},"DeleteOriginRequestPolicy":{"http":{"method":"DELETE","requestUri":"/2020-05-31/origin-request-policy/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeletePublicKey":{"http":{"method":"DELETE","requestUri":"/2020-05-31/public-key/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"DeleteRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/delete-realtime-log-config/","responseCode":204},"input":{"locationName":"DeleteRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Name":{},"ARN":{}}}},"DeleteStreamingDistribution":{"http":{"method":"DELETE","requestUri":"/2020-05-31/streaming-distribution/{Id}","responseCode":204},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}}}},"GetCachePolicy":{"http":{"method":"GET","requestUri":"/2020-05-31/cache-policy/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CachePolicy":{"shape":"Sl"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicy"}},"GetCachePolicyConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/cache-policy/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CachePolicyConfig":{"shape":"S2"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicyConfig"}},"GetCloudFrontOriginAccessIdentity":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"Sq"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"GetCloudFrontOriginAccessIdentityConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"So"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentityConfig"}},"GetDistribution":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"GetDistributionConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"DistributionConfig":{"shape":"Ss"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"DistributionConfig"}},"GetFieldLevelEncryption":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S3a"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"GetFieldLevelEncryptionConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionConfig":{"shape":"S2z"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionConfig"}},"GetFieldLevelEncryptionProfile":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S3j"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"GetFieldLevelEncryptionProfileConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileConfig":{"shape":"S3c"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfileConfig"}},"GetInvalidation":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation/{Id}"},"input":{"type":"structure","required":["DistributionId","Id"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"Invalidation":{"shape":"S3p"}},"payload":"Invalidation"}},"GetMonitoringSubscription":{"http":{"method":"GET","requestUri":"/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"}}},"output":{"type":"structure","members":{"MonitoringSubscription":{"shape":"S3r"}},"payload":"MonitoringSubscription"}},"GetOriginRequestPolicy":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-request-policy/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"OriginRequestPolicy":{"shape":"S44"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicy"}},"GetOriginRequestPolicyConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-request-policy/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"OriginRequestPolicyConfig":{"shape":"S3w"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicyConfig"}},"GetPublicKey":{"http":{"method":"GET","requestUri":"/2020-05-31/public-key/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKey":{"shape":"S48"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"GetPublicKeyConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/public-key/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"PublicKeyConfig":{"shape":"S46"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKeyConfig"}},"GetRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/get-realtime-log-config/"},"input":{"locationName":"GetRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Name":{},"ARN":{}}},"output":{"type":"structure","members":{"RealtimeLogConfig":{"shape":"S4f"}}}},"GetStreamingDistribution":{"http":{"method":"GET","requestUri":"/2020-05-31/streaming-distribution/{Id}"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}},"GetStreamingDistributionConfig":{"http":{"method":"GET","requestUri":"/2020-05-31/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["Id"],"members":{"Id":{"location":"uri","locationName":"Id"}}},"output":{"type":"structure","members":{"StreamingDistributionConfig":{"shape":"S4h"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistributionConfig"}},"ListCachePolicies":{"http":{"method":"GET","requestUri":"/2020-05-31/cache-policy"},"input":{"type":"structure","members":{"Type":{"location":"querystring","locationName":"Type"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CachePolicyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CachePolicySummary","type":"structure","required":["Type","CachePolicy"],"members":{"Type":{},"CachePolicy":{"shape":"Sl"}}}}}}},"payload":"CachePolicyList"}},"ListCloudFrontOriginAccessIdentities":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-access-identity/cloudfront"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentityList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CloudFrontOriginAccessIdentitySummary","type":"structure","required":["Id","S3CanonicalUserId","Comment"],"members":{"Id":{},"S3CanonicalUserId":{},"Comment":{}}}}}}},"payload":"CloudFrontOriginAccessIdentityList"}},"ListDistributions":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S6f"}},"payload":"DistributionList"}},"ListDistributionsByCachePolicyId":{"http":{"method":"GET","requestUri":"/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}"},"input":{"type":"structure","required":["CachePolicyId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"CachePolicyId":{"location":"uri","locationName":"CachePolicyId"}}},"output":{"type":"structure","members":{"DistributionIdList":{"shape":"S6k"}},"payload":"DistributionIdList"}},"ListDistributionsByOriginRequestPolicyId":{"http":{"method":"GET","requestUri":"/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}"},"input":{"type":"structure","required":["OriginRequestPolicyId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"OriginRequestPolicyId":{"location":"uri","locationName":"OriginRequestPolicyId"}}},"output":{"type":"structure","members":{"DistributionIdList":{"shape":"S6k"}},"payload":"DistributionIdList"}},"ListDistributionsByRealtimeLogConfig":{"http":{"requestUri":"/2020-05-31/distributionsByRealtimeLogConfig/"},"input":{"locationName":"ListDistributionsByRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Marker":{},"MaxItems":{},"RealtimeLogConfigName":{},"RealtimeLogConfigArn":{}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S6f"}},"payload":"DistributionList"}},"ListDistributionsByWebACLId":{"http":{"method":"GET","requestUri":"/2020-05-31/distributionsByWebACLId/{WebACLId}"},"input":{"type":"structure","required":["WebACLId"],"members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"},"WebACLId":{"location":"uri","locationName":"WebACLId"}}},"output":{"type":"structure","members":{"DistributionList":{"shape":"S6f"}},"payload":"DistributionList"}},"ListFieldLevelEncryptionConfigs":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionSummary","type":"structure","required":["Id","LastModifiedTime"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Comment":{},"QueryArgProfileConfig":{"shape":"S30"},"ContentTypeProfileConfig":{"shape":"S34"}}}}}}},"payload":"FieldLevelEncryptionList"}},"ListFieldLevelEncryptionProfiles":{"http":{"method":"GET","requestUri":"/2020-05-31/field-level-encryption-profile"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"FieldLevelEncryptionProfileList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldLevelEncryptionProfileSummary","type":"structure","required":["Id","LastModifiedTime","Name","EncryptionEntities"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"Name":{},"EncryptionEntities":{"shape":"S3d"},"Comment":{}}}}}}},"payload":"FieldLevelEncryptionProfileList"}},"ListInvalidations":{"http":{"method":"GET","requestUri":"/2020-05-31/distribution/{DistributionId}/invalidation"},"input":{"type":"structure","required":["DistributionId"],"members":{"DistributionId":{"location":"uri","locationName":"DistributionId"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"InvalidationList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"InvalidationSummary","type":"structure","required":["Id","CreateTime","Status"],"members":{"Id":{},"CreateTime":{"type":"timestamp"},"Status":{}}}}}}},"payload":"InvalidationList"}},"ListOriginRequestPolicies":{"http":{"method":"GET","requestUri":"/2020-05-31/origin-request-policy"},"input":{"type":"structure","members":{"Type":{"location":"querystring","locationName":"Type"},"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"OriginRequestPolicyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginRequestPolicySummary","type":"structure","required":["Type","OriginRequestPolicy"],"members":{"Type":{},"OriginRequestPolicy":{"shape":"S44"}}}}}}},"payload":"OriginRequestPolicyList"}},"ListPublicKeys":{"http":{"method":"GET","requestUri":"/2020-05-31/public-key"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"PublicKeyList":{"type":"structure","required":["MaxItems","Quantity"],"members":{"NextMarker":{},"MaxItems":{"type":"integer"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"PublicKeySummary","type":"structure","required":["Id","Name","CreatedTime","EncodedKey"],"members":{"Id":{},"Name":{},"CreatedTime":{"type":"timestamp"},"EncodedKey":{},"Comment":{}}}}}}},"payload":"PublicKeyList"}},"ListRealtimeLogConfigs":{"http":{"method":"GET","requestUri":"/2020-05-31/realtime-log-config"},"input":{"type":"structure","members":{"MaxItems":{"location":"querystring","locationName":"MaxItems"},"Marker":{"location":"querystring","locationName":"Marker"}}},"output":{"type":"structure","members":{"RealtimeLogConfigs":{"type":"structure","required":["MaxItems","IsTruncated","Marker"],"members":{"MaxItems":{"type":"integer"},"Items":{"type":"list","member":{"shape":"S4f"}},"IsTruncated":{"type":"boolean"},"Marker":{},"NextMarker":{}}}},"payload":"RealtimeLogConfigs"}},"ListStreamingDistributions":{"http":{"method":"GET","requestUri":"/2020-05-31/streaming-distribution"},"input":{"type":"structure","members":{"Marker":{"location":"querystring","locationName":"Marker"},"MaxItems":{"location":"querystring","locationName":"MaxItems"}}},"output":{"type":"structure","members":{"StreamingDistributionList":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StreamingDistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"S3Origin":{"shape":"S4i"},"Aliases":{"shape":"St"},"TrustedSigners":{"shape":"S1h"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"}}}}}}},"payload":"StreamingDistributionList"}},"ListTagsForResource":{"http":{"method":"GET","requestUri":"/2020-05-31/tagging"},"input":{"type":"structure","required":["Resource"],"members":{"Resource":{"location":"querystring","locationName":"Resource"}}},"output":{"type":"structure","required":["Tags"],"members":{"Tags":{"shape":"S2s"}},"payload":"Tags"}},"TagResource":{"http":{"requestUri":"/2020-05-31/tagging?Operation=Tag","responseCode":204},"input":{"type":"structure","required":["Resource","Tags"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"Tags":{"shape":"S2s","locationName":"Tags","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}}},"payload":"Tags"}},"UntagResource":{"http":{"requestUri":"/2020-05-31/tagging?Operation=Untag","responseCode":204},"input":{"type":"structure","required":["Resource","TagKeys"],"members":{"Resource":{"location":"querystring","locationName":"Resource"},"TagKeys":{"locationName":"TagKeys","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Key"}}}}},"payload":"TagKeys"}},"UpdateCachePolicy":{"http":{"method":"PUT","requestUri":"/2020-05-31/cache-policy/{Id}"},"input":{"type":"structure","required":["CachePolicyConfig","Id"],"members":{"CachePolicyConfig":{"shape":"S2","locationName":"CachePolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CachePolicyConfig"},"output":{"type":"structure","members":{"CachePolicy":{"shape":"Sl"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CachePolicy"}},"UpdateCloudFrontOriginAccessIdentity":{"http":{"method":"PUT","requestUri":"/2020-05-31/origin-access-identity/cloudfront/{Id}/config"},"input":{"type":"structure","required":["CloudFrontOriginAccessIdentityConfig","Id"],"members":{"CloudFrontOriginAccessIdentityConfig":{"shape":"So","locationName":"CloudFrontOriginAccessIdentityConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"CloudFrontOriginAccessIdentityConfig"},"output":{"type":"structure","members":{"CloudFrontOriginAccessIdentity":{"shape":"Sq"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"CloudFrontOriginAccessIdentity"}},"UpdateDistribution":{"http":{"method":"PUT","requestUri":"/2020-05-31/distribution/{Id}/config"},"input":{"type":"structure","required":["DistributionConfig","Id"],"members":{"DistributionConfig":{"shape":"Ss","locationName":"DistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"DistributionConfig"},"output":{"type":"structure","members":{"Distribution":{"shape":"S2h"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"Distribution"}},"UpdateFieldLevelEncryptionConfig":{"http":{"method":"PUT","requestUri":"/2020-05-31/field-level-encryption/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionConfig","Id"],"members":{"FieldLevelEncryptionConfig":{"shape":"S2z","locationName":"FieldLevelEncryptionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionConfig"},"output":{"type":"structure","members":{"FieldLevelEncryption":{"shape":"S3a"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryption"}},"UpdateFieldLevelEncryptionProfile":{"http":{"method":"PUT","requestUri":"/2020-05-31/field-level-encryption-profile/{Id}/config"},"input":{"type":"structure","required":["FieldLevelEncryptionProfileConfig","Id"],"members":{"FieldLevelEncryptionProfileConfig":{"shape":"S3c","locationName":"FieldLevelEncryptionProfileConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"FieldLevelEncryptionProfileConfig"},"output":{"type":"structure","members":{"FieldLevelEncryptionProfile":{"shape":"S3j"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"FieldLevelEncryptionProfile"}},"UpdateOriginRequestPolicy":{"http":{"method":"PUT","requestUri":"/2020-05-31/origin-request-policy/{Id}"},"input":{"type":"structure","required":["OriginRequestPolicyConfig","Id"],"members":{"OriginRequestPolicyConfig":{"shape":"S3w","locationName":"OriginRequestPolicyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"OriginRequestPolicyConfig"},"output":{"type":"structure","members":{"OriginRequestPolicy":{"shape":"S44"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"OriginRequestPolicy"}},"UpdatePublicKey":{"http":{"method":"PUT","requestUri":"/2020-05-31/public-key/{Id}/config"},"input":{"type":"structure","required":["PublicKeyConfig","Id"],"members":{"PublicKeyConfig":{"shape":"S46","locationName":"PublicKeyConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"PublicKeyConfig"},"output":{"type":"structure","members":{"PublicKey":{"shape":"S48"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"PublicKey"}},"UpdateRealtimeLogConfig":{"http":{"method":"PUT","requestUri":"/2020-05-31/realtime-log-config/"},"input":{"locationName":"UpdateRealtimeLogConfigRequest","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"},"type":"structure","members":{"EndPoints":{"shape":"S4a"},"Fields":{"shape":"S4d"},"Name":{},"ARN":{},"SamplingRate":{"type":"long"}}},"output":{"type":"structure","members":{"RealtimeLogConfig":{"shape":"S4f"}}}},"UpdateStreamingDistribution":{"http":{"method":"PUT","requestUri":"/2020-05-31/streaming-distribution/{Id}/config"},"input":{"type":"structure","required":["StreamingDistributionConfig","Id"],"members":{"StreamingDistributionConfig":{"shape":"S4h","locationName":"StreamingDistributionConfig","xmlNamespace":{"uri":"http://cloudfront.amazonaws.com/doc/2020-05-31/"}},"Id":{"location":"uri","locationName":"Id"},"IfMatch":{"location":"header","locationName":"If-Match"}},"payload":"StreamingDistributionConfig"},"output":{"type":"structure","members":{"StreamingDistribution":{"shape":"S4l"},"ETag":{"location":"header","locationName":"ETag"}},"payload":"StreamingDistribution"}}},"shapes":{"S2":{"type":"structure","required":["Name","MinTTL"],"members":{"Comment":{},"Name":{},"DefaultTTL":{"type":"long"},"MaxTTL":{"type":"long"},"MinTTL":{"type":"long"},"ParametersInCacheKeyAndForwardedToOrigin":{"type":"structure","required":["EnableAcceptEncodingGzip","HeadersConfig","CookiesConfig","QueryStringsConfig"],"members":{"EnableAcceptEncodingGzip":{"type":"boolean"},"EnableAcceptEncodingBrotli":{"type":"boolean"},"HeadersConfig":{"type":"structure","required":["HeaderBehavior"],"members":{"HeaderBehavior":{},"Headers":{"shape":"S9"}}},"CookiesConfig":{"type":"structure","required":["CookieBehavior"],"members":{"CookieBehavior":{},"Cookies":{"shape":"Se"}}},"QueryStringsConfig":{"type":"structure","required":["QueryStringBehavior"],"members":{"QueryStringBehavior":{},"QueryStrings":{"shape":"Si"}}}}}}},"S9":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"Se":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"Si":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}},"Sl":{"type":"structure","required":["Id","LastModifiedTime","CachePolicyConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"CachePolicyConfig":{"shape":"S2"}}},"So":{"type":"structure","required":["CallerReference","Comment"],"members":{"CallerReference":{},"Comment":{}}},"Sq":{"type":"structure","required":["Id","S3CanonicalUserId"],"members":{"Id":{},"S3CanonicalUserId":{},"CloudFrontOriginAccessIdentityConfig":{"shape":"So"}}},"Ss":{"type":"structure","required":["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],"members":{"CallerReference":{},"Aliases":{"shape":"St"},"DefaultRootObject":{},"Origins":{"shape":"Sv"},"OriginGroups":{"shape":"S17"},"DefaultCacheBehavior":{"shape":"S1g"},"CacheBehaviors":{"shape":"S1y"},"CustomErrorResponses":{"shape":"S21"},"Comment":{"type":"string","sensitive":true},"Logging":{"type":"structure","required":["Enabled","IncludeCookies","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"IncludeCookies":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S27"},"Restrictions":{"shape":"S2b"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"}}},"St":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CNAME"}}}},"Sv":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Origin","type":"structure","required":["Id","DomainName"],"members":{"Id":{},"DomainName":{},"OriginPath":{},"CustomHeaders":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginCustomHeader","type":"structure","required":["HeaderName","HeaderValue"],"members":{"HeaderName":{},"HeaderValue":{}}}}}},"S3OriginConfig":{"type":"structure","required":["OriginAccessIdentity"],"members":{"OriginAccessIdentity":{}}},"CustomOriginConfig":{"type":"structure","required":["HTTPPort","HTTPSPort","OriginProtocolPolicy"],"members":{"HTTPPort":{"type":"integer"},"HTTPSPort":{"type":"integer"},"OriginProtocolPolicy":{},"OriginSslProtocols":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"SslProtocol"}}}},"OriginReadTimeout":{"type":"integer"},"OriginKeepaliveTimeout":{"type":"integer"}}},"ConnectionAttempts":{"type":"integer"},"ConnectionTimeout":{"type":"integer"}}}}}},"S17":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroup","type":"structure","required":["Id","FailoverCriteria","Members"],"members":{"Id":{},"FailoverCriteria":{"type":"structure","required":["StatusCodes"],"members":{"StatusCodes":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"StatusCode","type":"integer"}}}}}},"Members":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"OriginGroupMember","type":"structure","required":["OriginId"],"members":{"OriginId":{}}}}}}}}}}},"S1g":{"type":"structure","required":["TargetOriginId","TrustedSigners","ViewerProtocolPolicy"],"members":{"TargetOriginId":{},"TrustedSigners":{"shape":"S1h"},"ViewerProtocolPolicy":{},"AllowedMethods":{"shape":"S1k"},"SmoothStreaming":{"type":"boolean"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1o"},"FieldLevelEncryptionId":{},"RealtimeLogConfigArn":{},"CachePolicyId":{},"OriginRequestPolicyId":{},"ForwardedValues":{"shape":"S1t","deprecated":true},"MinTTL":{"deprecated":true,"type":"long"},"DefaultTTL":{"deprecated":true,"type":"long"},"MaxTTL":{"deprecated":true,"type":"long"}}},"S1h":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"AwsAccountNumber"}}}},"S1k":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1l"},"CachedMethods":{"type":"structure","required":["Quantity","Items"],"members":{"Quantity":{"type":"integer"},"Items":{"shape":"S1l"}}}}},"S1l":{"type":"list","member":{"locationName":"Method"}},"S1o":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"LambdaFunctionAssociation","type":"structure","required":["LambdaFunctionARN","EventType"],"members":{"LambdaFunctionARN":{},"EventType":{},"IncludeBody":{"type":"boolean"}}}}}},"S1t":{"type":"structure","required":["QueryString","Cookies"],"members":{"QueryString":{"type":"boolean"},"Cookies":{"type":"structure","required":["Forward"],"members":{"Forward":{},"WhitelistedNames":{"shape":"Se"}}},"Headers":{"shape":"S9"},"QueryStringCacheKeys":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Name"}}}}}},"S1y":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CacheBehavior","type":"structure","required":["PathPattern","TargetOriginId","TrustedSigners","ViewerProtocolPolicy"],"members":{"PathPattern":{},"TargetOriginId":{},"TrustedSigners":{"shape":"S1h"},"ViewerProtocolPolicy":{},"AllowedMethods":{"shape":"S1k"},"SmoothStreaming":{"type":"boolean"},"Compress":{"type":"boolean"},"LambdaFunctionAssociations":{"shape":"S1o"},"FieldLevelEncryptionId":{},"RealtimeLogConfigArn":{},"CachePolicyId":{},"OriginRequestPolicyId":{},"ForwardedValues":{"shape":"S1t","deprecated":true},"MinTTL":{"deprecated":true,"type":"long"},"DefaultTTL":{"deprecated":true,"type":"long"},"MaxTTL":{"deprecated":true,"type":"long"}}}}}},"S21":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"CustomErrorResponse","type":"structure","required":["ErrorCode"],"members":{"ErrorCode":{"type":"integer"},"ResponsePagePath":{},"ResponseCode":{},"ErrorCachingMinTTL":{"type":"long"}}}}}},"S27":{"type":"structure","members":{"CloudFrontDefaultCertificate":{"type":"boolean"},"IAMCertificateId":{},"ACMCertificateArn":{},"SSLSupportMethod":{},"MinimumProtocolVersion":{},"Certificate":{"deprecated":true},"CertificateSource":{"deprecated":true}}},"S2b":{"type":"structure","required":["GeoRestriction"],"members":{"GeoRestriction":{"type":"structure","required":["RestrictionType","Quantity"],"members":{"RestrictionType":{},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Location"}}}}}},"S2h":{"type":"structure","required":["Id","ARN","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"InProgressInvalidationBatches":{"type":"integer"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S2i"},"DistributionConfig":{"shape":"Ss"},"AliasICPRecordals":{"shape":"S2n"}}},"S2i":{"type":"structure","required":["Enabled","Quantity"],"members":{"Enabled":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Signer","type":"structure","members":{"AwsAccountNumber":{},"KeyPairIds":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"KeyPairId"}}}}}}}}},"S2n":{"type":"list","member":{"locationName":"AliasICPRecordal","type":"structure","members":{"CNAME":{},"ICPRecordalStatus":{}}}},"S2s":{"type":"structure","members":{"Items":{"type":"list","member":{"locationName":"Tag","type":"structure","required":["Key"],"members":{"Key":{},"Value":{}}}}}},"S2z":{"type":"structure","required":["CallerReference"],"members":{"CallerReference":{},"Comment":{},"QueryArgProfileConfig":{"shape":"S30"},"ContentTypeProfileConfig":{"shape":"S34"}}},"S30":{"type":"structure","required":["ForwardWhenQueryArgProfileIsUnknown"],"members":{"ForwardWhenQueryArgProfileIsUnknown":{"type":"boolean"},"QueryArgProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"QueryArgProfile","type":"structure","required":["QueryArg","ProfileId"],"members":{"QueryArg":{},"ProfileId":{}}}}}}}},"S34":{"type":"structure","required":["ForwardWhenContentTypeIsUnknown"],"members":{"ForwardWhenContentTypeIsUnknown":{"type":"boolean"},"ContentTypeProfiles":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"ContentTypeProfile","type":"structure","required":["Format","ContentType"],"members":{"Format":{},"ProfileId":{},"ContentType":{}}}}}}}},"S3a":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionConfig":{"shape":"S2z"}}},"S3c":{"type":"structure","required":["Name","CallerReference","EncryptionEntities"],"members":{"Name":{},"CallerReference":{},"Comment":{},"EncryptionEntities":{"shape":"S3d"}}},"S3d":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"EncryptionEntity","type":"structure","required":["PublicKeyId","ProviderId","FieldPatterns"],"members":{"PublicKeyId":{},"ProviderId":{},"FieldPatterns":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"FieldPattern"}}}}}}}}},"S3j":{"type":"structure","required":["Id","LastModifiedTime","FieldLevelEncryptionProfileConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"FieldLevelEncryptionProfileConfig":{"shape":"S3c"}}},"S3l":{"type":"structure","required":["Paths","CallerReference"],"members":{"Paths":{"type":"structure","required":["Quantity"],"members":{"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"Path"}}}},"CallerReference":{}}},"S3p":{"type":"structure","required":["Id","Status","CreateTime","InvalidationBatch"],"members":{"Id":{},"Status":{},"CreateTime":{"type":"timestamp"},"InvalidationBatch":{"shape":"S3l"}}},"S3r":{"type":"structure","members":{"RealtimeMetricsSubscriptionConfig":{"type":"structure","required":["RealtimeMetricsSubscriptionStatus"],"members":{"RealtimeMetricsSubscriptionStatus":{}}}}},"S3w":{"type":"structure","required":["Name","HeadersConfig","CookiesConfig","QueryStringsConfig"],"members":{"Comment":{},"Name":{},"HeadersConfig":{"type":"structure","required":["HeaderBehavior"],"members":{"HeaderBehavior":{},"Headers":{"shape":"S9"}}},"CookiesConfig":{"type":"structure","required":["CookieBehavior"],"members":{"CookieBehavior":{},"Cookies":{"shape":"Se"}}},"QueryStringsConfig":{"type":"structure","required":["QueryStringBehavior"],"members":{"QueryStringBehavior":{},"QueryStrings":{"shape":"Si"}}}}},"S44":{"type":"structure","required":["Id","LastModifiedTime","OriginRequestPolicyConfig"],"members":{"Id":{},"LastModifiedTime":{"type":"timestamp"},"OriginRequestPolicyConfig":{"shape":"S3w"}}},"S46":{"type":"structure","required":["CallerReference","Name","EncodedKey"],"members":{"CallerReference":{},"Name":{},"EncodedKey":{},"Comment":{}}},"S48":{"type":"structure","required":["Id","CreatedTime","PublicKeyConfig"],"members":{"Id":{},"CreatedTime":{"type":"timestamp"},"PublicKeyConfig":{"shape":"S46"}}},"S4a":{"type":"list","member":{"type":"structure","required":["StreamType"],"members":{"StreamType":{},"KinesisStreamConfig":{"type":"structure","required":["RoleARN","StreamARN"],"members":{"RoleARN":{},"StreamARN":{}}}}}},"S4d":{"type":"list","member":{"locationName":"Field"}},"S4f":{"type":"structure","required":["ARN","Name","SamplingRate","EndPoints","Fields"],"members":{"ARN":{},"Name":{},"SamplingRate":{"type":"long"},"EndPoints":{"shape":"S4a"},"Fields":{"shape":"S4d"}}},"S4h":{"type":"structure","required":["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],"members":{"CallerReference":{},"S3Origin":{"shape":"S4i"},"Aliases":{"shape":"St"},"Comment":{},"Logging":{"type":"structure","required":["Enabled","Bucket","Prefix"],"members":{"Enabled":{"type":"boolean"},"Bucket":{},"Prefix":{}}},"TrustedSigners":{"shape":"S1h"},"PriceClass":{},"Enabled":{"type":"boolean"}}},"S4i":{"type":"structure","required":["DomainName","OriginAccessIdentity"],"members":{"DomainName":{},"OriginAccessIdentity":{}}},"S4l":{"type":"structure","required":["Id","ARN","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"ActiveTrustedSigners":{"shape":"S2i"},"StreamingDistributionConfig":{"shape":"S4h"}}},"S6f":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionSummary","type":"structure","required":["Id","ARN","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId","HttpVersion","IsIPV6Enabled"],"members":{"Id":{},"ARN":{},"Status":{},"LastModifiedTime":{"type":"timestamp"},"DomainName":{},"Aliases":{"shape":"St"},"Origins":{"shape":"Sv"},"OriginGroups":{"shape":"S17"},"DefaultCacheBehavior":{"shape":"S1g"},"CacheBehaviors":{"shape":"S1y"},"CustomErrorResponses":{"shape":"S21"},"Comment":{},"PriceClass":{},"Enabled":{"type":"boolean"},"ViewerCertificate":{"shape":"S27"},"Restrictions":{"shape":"S2b"},"WebACLId":{},"HttpVersion":{},"IsIPV6Enabled":{"type":"boolean"},"AliasICPRecordals":{"shape":"S2n"}}}}}},"S6k":{"type":"structure","required":["Marker","MaxItems","IsTruncated","Quantity"],"members":{"Marker":{},"NextMarker":{},"MaxItems":{"type":"integer"},"IsTruncated":{"type":"boolean"},"Quantity":{"type":"integer"},"Items":{"type":"list","member":{"locationName":"DistributionId"}}}}}}')},4840:e=>{"use strict";e.exports=JSON.parse('{"o":{"ListCloudFrontOriginAccessIdentities":{"input_token":"Marker","limit_key":"MaxItems","more_results":"CloudFrontOriginAccessIdentityList.IsTruncated","output_token":"CloudFrontOriginAccessIdentityList.NextMarker","result_key":"CloudFrontOriginAccessIdentityList.Items"},"ListDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"DistributionList.IsTruncated","output_token":"DistributionList.NextMarker","result_key":"DistributionList.Items"},"ListInvalidations":{"input_token":"Marker","limit_key":"MaxItems","more_results":"InvalidationList.IsTruncated","output_token":"InvalidationList.NextMarker","result_key":"InvalidationList.Items"},"ListStreamingDistributions":{"input_token":"Marker","limit_key":"MaxItems","more_results":"StreamingDistributionList.IsTruncated","output_token":"StreamingDistributionList.NextMarker","result_key":"StreamingDistributionList.Items"}}}')},2802:e=>{"use strict";e.exports=JSON.parse('{"V":{"DistributionDeployed":{"delay":60,"operation":"GetDistribution","maxAttempts":35,"description":"Wait until a distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"Distribution.Status"}]},"InvalidationCompleted":{"delay":20,"operation":"GetInvalidation","maxAttempts":30,"description":"Wait until an invalidation has completed.","acceptors":[{"expected":"Completed","matcher":"path","state":"success","argument":"Invalidation.Status"}]},"StreamingDistributionDeployed":{"delay":60,"operation":"GetStreamingDistribution","maxAttempts":25,"description":"Wait until a streaming distribution is deployed.","acceptors":[{"expected":"Deployed","matcher":"path","state":"success","argument":"StreamingDistribution.Status"}]}}}')},9875:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}}},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}}},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}}}}')},7067:e=>{"use strict";e.exports={o:{}}},2969:e=>{"use strict";e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena"},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2"},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"}}')},6129:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sh":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sm":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},7202:e=>{"use strict";e.exports={o:{}}},9294:e=>{"use strict";e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"}}}')},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},6417:e=>{"use strict";e.exports=require("crypto")},6200:e=>{"use strict";e.exports=require("dgram")},5229:e=>{"use strict";e.exports=require("domain")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1191:e=>{"use strict";e.exports=require("querystring")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(i){if(t[i]){return t[i].exports}var r=t[i]={exports:{}};var n=true;try{e[i].call(r.exports,r,r.exports,__webpack_require__);n=false}finally{if(n)delete t[i]}return r.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var i in t){if(__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)){Object.defineProperty(e,i,{enumerable:true,get:t[i]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(2178)})(); \ No newline at end of file diff --git a/packages/iam_access_credentials/dist/index.js b/packages/iam_access_credentials/dist/index.js deleted file mode 100644 index 5707eb5..0000000 --- a/packages/iam_access_credentials/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=(()=>{var e={9548:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(r(2087));const s=r(7472);function issueCommand(e,t,r){const i=new Command(e,t,r);process.stdout.write(i.toString()+n.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const i=this.properties[r];if(i){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(i)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},7117:function(e,t,r){"use strict";var i=this&&this.__awaiter||function(e,t,r,i){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,n){function fulfilled(e){try{step(i.next(e))}catch(e){n(e)}}function rejected(e){try{step(i["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(9548);const o=r(2469);const a=r(7472);const u=n(r(2087));const c=n(r(5622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const i=process.env["GITHUB_ENV"]||"";if(i){const t="_GitHubActionsFileCommandDelimeter_";const i=`${e}<<${t}${u.EOL}${r}${u.EOL}${t}`;o.issueCommand("ENV",i)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+u.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return i(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},2469:function(e,t,r){"use strict";var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=i(r(5747));const s=i(r(2087));const o=r(7472);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!n.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}n.appendFileSync(r,`${o.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},7472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},5066:(e,t,r)=>{r(2432);var i=r(8738);var n=i.Service;var s=i.apiLoader;s.services["cognitoidentity"]={};i.CognitoIdentity=n.defineService("cognitoidentity",["2014-06-30"]);r(8142);Object.defineProperty(s.services["cognitoidentity"],"2014-06-30",{get:function get(){var e=r(9875);e.paginators=r(7067).o;return e},enumerable:true,configurable:true});e.exports=i.CognitoIdentity},7181:(e,t,r)=>{r(2432);var i=r(8738);var n=i.Service;var s=i.apiLoader;s.services["sts"]={};i.STS=n.defineService("sts",["2011-06-15"]);r(7046);Object.defineProperty(s.services["sts"],"2011-06-15",{get:function get(){var e=r(6129);e.paginators=r(7202).o;return e},enumerable:true,configurable:true});e.exports=i.STS},650:e=>{function apiLoader(e,t){if(!apiLoader.services.hasOwnProperty(e)){throw new Error("InvalidService: Failed to load api for "+e)}return apiLoader.services[e][t]}apiLoader.services={};e.exports=apiLoader},1547:(e,t,r)=>{var i=r(8738);r(4764);r(9992);var n;i.Config=i.util.inherit({constructor:function Config(e){if(e===undefined)e={};e=this.extractCredentials(e);i.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function getCredentials(e){var t=this;function finish(r){e(r,r?null:t.credentials)}function credError(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}function getAsyncCredentials(){t.credentials.get(function(e){if(e){var r="Could not load credentials from "+t.credentials.constructor.name;e=credError(r,e)}finish(e)})}function getStaticCredentials(){var e=null;if(!t.credentials.accessKeyId||!t.credentials.secretAccessKey){e=credError("Missing credentials")}finish(e)}if(t.credentials){if(typeof t.credentials.get==="function"){getAsyncCredentials()}else{getStaticCredentials()}}else if(t.credentialProvider){t.credentialProvider.resolve(function(e,r){if(e){e=credError("Could not load credentials from any providers",e)}t.credentials=r;finish(e)})}else{finish(credError("No credentials to load"))}},update:function update(e,t){t=t||false;e=this.extractCredentials(e);i.util.each.call(this,e,function(e,r){if(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e)){this.set(e,r)}})},loadFromPath:function loadFromPath(e){this.clear();var t=JSON.parse(i.util.readFileSync(e));var r=new i.FileSystemCredentials(e);var n=new i.CredentialProviderChain;n.providers.unshift(r);n.resolve(function(e,r){if(e)throw e;else t.credentials=r});this.constructor(t);return this},clear:function clear(){i.util.each.call(this,this.keys,function(e){delete this[e]});this.set("credentials",undefined);this.set("credentialProvider",undefined)},set:function set(e,t,r){if(t===undefined){if(r===undefined){r=this.keys[e]}if(typeof r==="function"){this[e]=r.call(this)}else{this[e]=r}}else if(e==="httpOptions"&&this[e]){this[e]=i.util.merge(this[e],t)}else{this[e]=t}},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:undefined,httpOptions:{timeout:12e4},maxRetries:undefined,maxRedirects:10,paramValidation:true,sslEnabled:true,s3ForcePathStyle:false,s3BucketEndpoint:false,s3DisableBodySigning:true,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:undefined,computeChecksums:true,convertResponseTypes:true,correctClockSkew:false,customUserAgent:null,dynamoDbCrc32:true,systemClockOffset:0,signatureVersion:null,signatureCache:true,retryDelayOptions:{},useAccelerateEndpoint:false,clientSideMonitoring:false,endpointDiscoveryEnabled:undefined,endpointCacheSize:1e3,hostPrefixEnabled:true,stsRegionalEndpoints:"legacy"},extractCredentials:function extractCredentials(e){if(e.accessKeyId&&e.secretAccessKey){e=i.util.copy(e);e.credentials=new i.Credentials(e)}return e},setPromisesDependency:function setPromisesDependency(e){n=e;if(e===null&&typeof Promise==="function"){n=Promise}var t=[i.Request,i.Credentials,i.CredentialProviderChain];if(i.S3){t.push(i.S3);if(i.S3.ManagedUpload){t.push(i.S3.ManagedUpload)}}i.util.addPromises(t,n)},getPromisesDependency:function getPromisesDependency(){return n}});i.config=new i.Config},3226:(e,t,r)=>{var i=r(8738);function validateRegionalEndpointsFlagValue(e,t){if(typeof e!=="string")return undefined;else if(["legacy","regional"].indexOf(e.toLowerCase())>=0){return e.toLowerCase()}else{throw i.util.error(new Error,t)}}function resolveRegionalEndpointsFlag(e,t){e=e||{};var r;if(e[t.clientConfig]){r=validateRegionalEndpointsFlagValue(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" '+' or "regional". Got "'+e[t.clientConfig]+'".'});if(r)return r}if(!i.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)){var n=process.env[t.env];r=validateRegionalEndpointsFlagValue(n,{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" '+' or "regional". Got "'+process.env[t.env]+'".'});if(r)return r}var s={};try{var o=i.util.getProfilesFromSharedConfig(i.util.iniLoader);s=o[process.env.AWS_PROFILE||i.util.defaultProfile]}catch(e){}if(s&&Object.prototype.hasOwnProperty.call(s,t.sharedConfig)){var a=s[t.sharedConfig];r=validateRegionalEndpointsFlagValue(a,{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" '+' or "regional". Got "'+s[t.sharedConfig]+'".'});if(r)return r}return r}e.exports=resolveRegionalEndpointsFlag},8738:(e,t,r)=>{var i={util:r(3067)};var n={};n.toString();e.exports=i;i.util.update(i,{VERSION:"2.759.0",Signers:{},Protocol:{Json:r(3242),Query:r(9198),Rest:r(1331),RestJson:r(550),RestXml:r(4382)},XML:{Builder:r(3026),Parser:null},JSON:{Builder:r(794),Parser:r(4106)},Model:{Api:r(9541),Operation:r(25),Shape:r(377),Paginator:r(7269),ResourceWaiter:r(9878)},apiLoader:r(650),EndpointCache:r(6069).$});r(2375);r(7119);r(1547);r(3366);r(1241);r(711);r(7371);r(6532);r(3728);r(4757);i.events=new i.SequentialExecutor;i.util.memoizedProperty(i,"endpointCache",function(){return new i.EndpointCache(i.config.endpointCacheSize)},true)},4764:(e,t,r)=>{var i=r(8738);i.Credentials=i.util.inherit({constructor:function Credentials(){i.util.hideProperties(this,["secretAccessKey"]);this.expired=false;this.expireTime=null;this.refreshCallbacks=[];if(arguments.length===1&&typeof arguments[0]==="object"){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId;this.secretAccessKey=e.secretAccessKey;this.sessionToken=e.sessionToken}else{this.accessKeyId=arguments[0];this.secretAccessKey=arguments[1];this.sessionToken=arguments[2]}},expiryWindow:15,needsRefresh:function needsRefresh(){var e=i.util.date.getDate().getTime();var t=new Date(e+this.expiryWindow*1e3);if(this.expireTime&&t>this.expireTime){return true}else{return this.expired||!this.accessKeyId||!this.secretAccessKey}},get:function get(e){var t=this;if(this.needsRefresh()){this.refresh(function(r){if(!r)t.expired=false;if(e)e(r)})}else if(e){e()}},refresh:function refresh(e){this.expired=false;e()},coalesceRefresh:function coalesceRefresh(e,t){var r=this;if(r.refreshCallbacks.push(e)===1){r.load(function onLoad(e){i.util.arrayEach(r.refreshCallbacks,function(r){if(t){r(e)}else{i.util.defer(function(){r(e)})}});r.refreshCallbacks.length=0})}},load:function load(e){e()}});i.Credentials.addPromisesToClass=function addPromisesToClass(e){this.prototype.getPromise=i.util.promisifyMethod("get",e);this.prototype.refreshPromise=i.util.promisifyMethod("refresh",e)};i.Credentials.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.getPromise;delete this.prototype.refreshPromise};i.util.addPromises(i.Credentials)},6498:(e,t,r)=>{var i=r(8738);var n=r(7181);i.ChainableTemporaryCredentials=i.util.inherit(i.Credentials,{constructor:function ChainableTemporaryCredentials(e){i.Credentials.call(this);e=e||{};this.errorCode="ChainableTemporaryCredentialsProviderFailure";this.expired=true;this.tokenCodeFn=null;var t=i.util.copy(e.params)||{};if(t.RoleArn){t.RoleSessionName=t.RoleSessionName||"temporary-credentials"}if(t.SerialNumber){if(!e.tokenCodeFn||typeof e.tokenCodeFn!=="function"){throw new i.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode})}else{this.tokenCodeFn=e.tokenCodeFn}}var r=i.util.merge({params:t,credentials:e.masterCredentials||i.config.credentials},e.stsConfig||{});this.service=new n(r)},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;var r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(i,n){var s={};if(i){e(i);return}if(n){s.TokenCode=n}t.service[r](s,function(r,i){if(!r){t.service.credentialsFrom(i,t)}e(r)})})},getTokenCode:function getTokenCode(e){var t=this;if(this.tokenCodeFn){this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,n){if(r){var s=r;if(r instanceof Error){s=r.message}e(i.util.error(new Error("Error fetching MFA token: "+s),{code:t.errorCode}));return}e(null,n)})}else{e(null)}}})},7864:(e,t,r)=>{var i=r(8738);var n=r(5066);var s=r(7181);i.CognitoIdentityCredentials=i.util.inherit(i.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function CognitoIdentityCredentials(e,t){i.Credentials.call(this);this.expired=true;this.params=e;this.data=null;this._identityId=null;this._clientConfig=i.util.copy(t||{});this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){r.loadCachedId();return r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.data=null;t._identityId=null;t.getId(function(r){if(!r){if(!t.params.RoleArn){t.getCredentialsForIdentity(e)}else{t.getCredentialsFromSTS(e)}}else{t.clearIdOnNotAuthorized(r);e(r)}})},clearCachedId:function clearCache(){this._identityId=null;delete this.params.IdentityId;var e=this.params.IdentityPoolId;var t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t];delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function clearIdOnNotAuthorized(e){var t=this;if(e.code=="NotAuthorizedException"){t.clearCachedId()}},getId:function getId(e){var t=this;if(typeof t.params.IdentityId==="string"){return e(null,t.params.IdentityId)}t.cognito.getId(function(r,i){if(!r&&i.IdentityId){t.params.IdentityId=i.IdentityId;e(null,i.IdentityId)}else{e(r)}})},loadCredentials:function loadCredentials(e,t){if(!e||!t)return;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration},getCredentialsForIdentity:function getCredentialsForIdentity(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,i){if(!r){t.cacheId(i);t.data=i;t.loadCredentials(t.data,t)}else{t.clearIdOnNotAuthorized(r)}e(r)})},getCredentialsFromSTS:function getCredentialsFromSTS(e){var t=this;t.cognito.getOpenIdToken(function(r,i){if(!r){t.cacheId(i);t.params.WebIdentityToken=i.Token;t.webIdentityCredentials.refresh(function(r){if(!r){t.data=t.webIdentityCredentials.data;t.sts.credentialsFrom(t.data,t)}e(r)})}else{t.clearIdOnNotAuthorized(r);e(r)}})},loadCachedId:function loadCachedId(){var e=this;if(i.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);var n=(e.getStorage("providers")||"").split(",");var s=n.filter(function(e){return r.indexOf(e)!==-1});if(s.length!==0){e.params.IdentityId=t}}else if(t){e.params.IdentityId=t}}},createClients:function(){var e=this._clientConfig;this.webIdentityCredentials=this.webIdentityCredentials||new i.WebIdentityCredentials(this.params,e);if(!this.cognito){var t=i.util.merge({},e);t.params=this.params;this.cognito=new n(t)}this.sts=this.sts||new s(e)},cacheId:function cacheId(e){this._identityId=e.IdentityId;this.params.IdentityId=this._identityId;if(i.util.isBrowser()){this.setStorage("id",e.IdentityId);if(this.params.Logins){this.setStorage("providers",Object.keys(this.params.Logins).join(","))}}},getStorage:function getStorage(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function setStorage(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(e){}},storage:function(){try{var e=i.util.isBrowser()&&window.localStorage!==null&&typeof window.localStorage==="object"?window.localStorage:{};e["aws.test-storage"]="foobar";delete e["aws.test-storage"];return e}catch(e){return{}}}()})},9992:(e,t,r)=>{var i=r(8738);i.CredentialProviderChain=i.util.inherit(i.Credentials,{constructor:function CredentialProviderChain(e){if(e){this.providers=e}else{this.providers=i.CredentialProviderChain.defaultProviders.slice(0)}this.resolveCallbacks=[]},resolve:function resolve(e){var t=this;if(t.providers.length===0){e(new Error("No providers"));return t}if(t.resolveCallbacks.push(e)===1){var r=0;var n=t.providers.slice(0);function resolveNext(e,s){if(!e&&s||r===n.length){i.util.arrayEach(t.resolveCallbacks,function(t){t(e,s)});t.resolveCallbacks.length=0;return}var o=n[r++];if(typeof o==="function"){s=o.call()}else{s=o}if(s.get){s.get(function(e){resolveNext(e,e?null:s)})}else{resolveNext(null,s)}}resolveNext()}return t}});i.CredentialProviderChain.defaultProviders=[];i.CredentialProviderChain.addPromisesToClass=function addPromisesToClass(e){this.prototype.resolvePromise=i.util.promisifyMethod("resolve",e)};i.CredentialProviderChain.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.resolvePromise};i.util.addPromises(i.CredentialProviderChain)},4134:(e,t,r)=>{var i=r(8738);r(7015);i.EC2MetadataCredentials=i.util.inherit(i.Credentials,{constructor:function EC2MetadataCredentials(e){i.Credentials.call(this);e=e?i.util.copy(e):{};e=i.util.merge({maxRetries:this.defaultMaxRetries},e);if(!e.httpOptions)e.httpOptions={};e.httpOptions=i.util.merge({timeout:this.defaultTimeout,connectTimeout:this.defaultConnectTimeout},e.httpOptions);this.metadataService=new i.MetadataService(e);this.metadata={}},defaultTimeout:1e3,defaultConnectTimeout:1e3,defaultMaxRetries:3,refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.metadataService.loadCredentials(function(r,n){if(!r){var s=i.util.date.getDate();var o=new Date(n.Expiration);if(o{var i=r(8738);i.ECSCredentials=i.RemoteCredentials},3897:(e,t,r)=>{var i=r(8738);i.EnvironmentCredentials=i.util.inherit(i.Credentials,{constructor:function EnvironmentCredentials(e){i.Credentials.call(this);this.envPrefix=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=i.util.fn.callback;if(!process||!process.env){e(i.util.error(new Error("No process info or environment variables available"),{code:"EnvironmentCredentialsProviderFailure"}));return}var t=["ACCESS_KEY_ID","SECRET_ACCESS_KEY","SESSION_TOKEN"];var r=[];for(var n=0;n{var i=r(8738);i.FileSystemCredentials=i.util.inherit(i.Credentials,{constructor:function FileSystemCredentials(e){i.Credentials.call(this);this.filename=e;this.get(function(){})},refresh:function refresh(e){if(!e)e=i.util.fn.callback;try{var t=JSON.parse(i.util.readFileSync(this.filename));i.Credentials.call(this,t);if(!this.accessKeyId||!this.secretAccessKey){throw i.util.error(new Error("Credentials not set in "+this.filename),{code:"FileSystemCredentialsProviderFailure"})}this.expired=false;e()}catch(t){e(t)}}})},3037:(e,t,r)=>{var i=r(8738);var n=r(3129);var s=i.util.iniLoader;i.ProcessCredentials=i.util.inherit(i.Credentials,{constructor:function ProcessCredentials(e){i.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||i.util.defaultProfile;this.get(e.callback||i.util.fn.noop)},load:function load(e){var t=this;try{var r=i.util.getProfilesFromSharedConfig(s,this.filename);var n=r[this.profile]||{};if(Object.keys(n).length===0){throw i.util.error(new Error("Profile "+this.profile+" not found"),{code:"ProcessCredentialsProviderFailure"})}if(n["credential_process"]){this.loadViaCredentialProcess(n,function(r,i){if(r){e(r,null)}else{t.expired=false;t.accessKeyId=i.AccessKeyId;t.secretAccessKey=i.SecretAccessKey;t.sessionToken=i.SessionToken;if(i.Expiration){t.expireTime=new Date(i.Expiration)}e(null)}})}else{throw i.util.error(new Error("Profile "+this.profile+" did not include credential process"),{code:"ProcessCredentialsProviderFailure"})}}catch(t){e(t)}},loadViaCredentialProcess:function loadViaCredentialProcess(e,t){n.exec(e["credential_process"],function(e,r,n){if(e){t(i.util.error(new Error("credential_process returned error"),{code:"ProcessCredentialsProviderFailure"}),null)}else{try{var s=JSON.parse(r);if(s.Expiration){var o=i.util.date.getDate();var a=new Date(s.Expiration);if(a{var i=r(8738),n="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",s="AWS_CONTAINER_CREDENTIALS_FULL_URI",o="AWS_CONTAINER_AUTHORIZATION_TOKEN",a=["https:"],u=["http:","https:"],c=["localhost","127.0.0.1"],l="169.254.170.2";i.RemoteCredentials=i.util.inherit(i.Credentials,{constructor:function RemoteCredentials(e){i.Credentials.call(this);e=e?i.util.copy(e):{};if(!e.httpOptions)e.httpOptions={};e.httpOptions=i.util.merge(this.httpOptions,e.httpOptions);i.util.update(this,e)},httpOptions:{timeout:1e3},maxRetries:3,isConfiguredForEcsCredentials:function isConfiguredForEcsCredentials(){return Boolean(process&&process.env&&(process.env[n]||process.env[s]))},getECSFullUri:function getECSFullUri(){if(process&&process.env){var e=process.env[n],t=process.env[s];if(e){return"http://"+l+e}else if(t){var r=i.util.urlParse(t);if(u.indexOf(r.protocol)<0){throw i.util.error(new Error("Unsupported protocol: AWS.RemoteCredentials supports "+u.join(",")+" only; "+r.protocol+" requested."),{code:"ECSCredentialsProviderFailure"})}if(a.indexOf(r.protocol)<0&&c.indexOf(r.hostname)<0){throw i.util.error(new Error("Unsupported hostname: AWS.RemoteCredentials only supports "+c.join(",")+" for "+r.protocol+"; "+r.protocol+"//"+r.hostname+" requested."),{code:"ECSCredentialsProviderFailure"})}return t}else{throw i.util.error(new Error("Variable "+n+" or "+s+" must be set to use AWS.RemoteCredentials."),{code:"ECSCredentialsProviderFailure"})}}else{throw i.util.error(new Error("No process info available"),{code:"ECSCredentialsProviderFailure"})}},getECSAuthToken:function getECSAuthToken(){if(process&&process.env&&process.env[s]){return process.env[o]}},credsFormatIsValid:function credsFormatIsValid(e){return!!e.accessKeyId&&!!e.secretAccessKey&&!!e.sessionToken&&!!e.expireTime},formatCreds:function formatCreds(e){if(!!e.credentials){e=e.credentials}return{expired:false,accessKeyId:e.accessKeyId||e.AccessKeyId,secretAccessKey:e.secretAccessKey||e.SecretAccessKey,sessionToken:e.sessionToken||e.Token,expireTime:new Date(e.expiration||e.Expiration)}},request:function request(e,t){var r=new i.HttpRequest(e);r.method="GET";r.headers.Accept="application/json";var n=this.getECSAuthToken();if(n){r.headers.Authorization=n}i.util.handleRequestWithRetries(r,this,t)},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;var r;try{r=this.getECSFullUri()}catch(t){e(t);return}this.request(r,function(r,n){if(!r){try{n=JSON.parse(n);var s=t.formatCreds(n);if(!t.credsFormatIsValid(s)){throw i.util.error(new Error("Response data is not in valid format"),{code:"ECSCredentialsProviderFailure"})}i.util.update(t,s)}catch(e){r=e}}e(r,s)})}})},7792:(e,t,r)=>{var i=r(8738);var n=r(7181);i.SAMLCredentials=i.util.inherit(i.Credentials,{constructor:function SAMLCredentials(e){i.Credentials.call(this);this.expired=true;this.params=e},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithSAML(function(r,i){if(!r){t.service.credentialsFrom(i,t)}e(r)})},createClients:function(){this.service=this.service||new n({params:this.params})}})},6859:(e,t,r)=>{var i=r(8738);var n=r(7181);var s=i.util.iniLoader;var o="us-east-1";i.SharedIniFileCredentials=i.util.inherit(i.Credentials,{constructor:function SharedIniFileCredentials(e){i.Credentials.call(this);e=e||{};this.filename=e.filename;this.profile=e.profile||process.env.AWS_PROFILE||i.util.defaultProfile;this.disableAssumeRole=Boolean(e.disableAssumeRole);this.preferStaticCredentials=Boolean(e.preferStaticCredentials);this.tokenCodeFn=e.tokenCodeFn||null;this.httpOptions=e.httpOptions||null;this.get(e.callback||i.util.fn.noop)},load:function load(e){var t=this;try{var r=i.util.getProfilesFromSharedConfig(s,this.filename);var n=r[this.profile]||{};if(Object.keys(n).length===0){throw i.util.error(new Error("Profile "+this.profile+" not found"),{code:"SharedIniFileCredentialsProviderFailure"})}var o=Boolean(this.preferStaticCredentials&&n["aws_access_key_id"]&&n["aws_secret_access_key"]);if(n["role_arn"]&&!o){this.loadRoleProfile(r,n,function(r,i){if(r){e(r)}else{t.expired=false;t.accessKeyId=i.Credentials.AccessKeyId;t.secretAccessKey=i.Credentials.SecretAccessKey;t.sessionToken=i.Credentials.SessionToken;t.expireTime=i.Credentials.Expiration;e(null)}});return}this.accessKeyId=n["aws_access_key_id"];this.secretAccessKey=n["aws_secret_access_key"];this.sessionToken=n["aws_session_token"];if(!this.accessKeyId||!this.secretAccessKey){throw i.util.error(new Error("Credentials not set for profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}this.expired=false;e(null)}catch(t){e(t)}},refresh:function refresh(e){s.clearCachedFiles();this.coalesceRefresh(e||i.util.fn.callback,this.disableAssumeRole)},loadRoleProfile:function loadRoleProfile(e,t,r){if(this.disableAssumeRole){throw i.util.error(new Error("Role assumption profiles are disabled. "+"Failed to load profile "+this.profile+" from "+e.filename),{code:"SharedIniFileCredentialsProviderFailure"})}var s=this;var a=t["role_arn"];var u=t["role_session_name"];var c=t["external_id"];var l=t["mfa_serial"];var f=t["source_profile"];var h=t["region"]||o;if(!f){throw i.util.error(new Error("source_profile is not set using profile "+this.profile),{code:"SharedIniFileCredentialsProviderFailure"})}var p=e[f];if(typeof p!=="object"){throw i.util.error(new Error("source_profile "+f+" using profile "+this.profile+" does not exist"),{code:"SharedIniFileCredentialsProviderFailure"})}var d=new i.SharedIniFileCredentials(i.util.merge(this.options||{},{profile:f,preferStaticCredentials:true}));this.roleArn=a;var v=new n({credentials:d,region:h,httpOptions:this.httpOptions});var m={RoleArn:a,RoleSessionName:u||"aws-sdk-js-"+Date.now()};if(c){m.ExternalId=c}if(l&&s.tokenCodeFn){m.SerialNumber=l;s.tokenCodeFn(l,function(e,t){if(e){var n;if(e instanceof Error){n=e.message}else{n=e}r(i.util.error(new Error("Error fetching MFA token: "+n),{code:"SharedIniFileCredentialsProviderFailure"}));return}m.TokenCode=t;v.assumeRole(m,r)});return}v.assumeRole(m,r)}})},5588:(e,t,r)=>{var i=r(8738);var n=r(7181);i.TemporaryCredentials=i.util.inherit(i.Credentials,{constructor:function TemporaryCredentials(e,t){i.Credentials.call(this);this.loadMasterCredentials(t);this.expired=true;this.params=e||{};if(this.params.RoleArn){this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials"}},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials;var r=t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken;r.call(t.service,function(r,i){if(!r){t.service.credentialsFrom(i,t)}e(r)})})},loadMasterCredentials:function loadMasterCredentials(e){this.masterCredentials=e||i.config.credentials;while(this.masterCredentials.masterCredentials){this.masterCredentials=this.masterCredentials.masterCredentials}if(typeof this.masterCredentials.get!=="function"){this.masterCredentials=new i.Credentials(this.masterCredentials)}},createClients:function(){this.service=this.service||new n({params:this.params})}})},85:(e,t,r)=>{var i=r(8738);var n=r(5747);var s=r(7181);var o=i.util.iniLoader;i.TokenFileWebIdentityCredentials=i.util.inherit(i.Credentials,{constructor:function TokenFileWebIdentityCredentials(e){i.Credentials.call(this);this.data=null;this.clientConfig=i.util.copy(e||{})},getParamsFromEnv:function getParamsFromEnv(){var e="AWS_WEB_IDENTITY_TOKEN_FILE",t="AWS_ROLE_ARN";if(process.env[e]&&process.env[t]){return[{envTokenFile:process.env[e],roleArn:process.env[t],roleSessionName:process.env["AWS_ROLE_SESSION_NAME"]}]}},getParamsFromSharedConfig:function getParamsFromSharedConfig(){var e=i.util.getProfilesFromSharedConfig(o);var t=process.env.AWS_PROFILE||i.util.defaultProfile;var r=e[t]||{};if(Object.keys(r).length===0){throw i.util.error(new Error("Profile "+t+" not found"),{code:"TokenFileWebIdentityCredentialsProviderFailure"})}var n=[];while(!r["web_identity_token_file"]&&r["source_profile"]){n.unshift({roleArn:r["role_arn"],roleSessionName:r["role_session_name"]});var s=r["source_profile"];r=e[s]}n.unshift({envTokenFile:r["web_identity_token_file"],roleArn:r["role_arn"],roleSessionName:r["role_session_name"]});return n},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},assumeRoleChaining:function assumeRoleChaining(e,t){var r=this;if(e.length===0){r.service.credentialsFrom(r.data,r);t()}else{var i=e.shift();r.service.config.credentials=r.service.credentialsFrom(r.data,r);r.service.assumeRole({RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(i,n){r.data=null;if(i){t(i)}else{r.data=n;r.assumeRoleChaining(e,t)}})}},load:function load(e){var t=this;try{var r=t.getParamsFromEnv();if(!r){r=t.getParamsFromSharedConfig()}if(r){var i=r.shift();var s=n.readFileSync(i.envTokenFile,{encoding:"ascii"});if(!t.service){t.createClients()}t.service.assumeRoleWithWebIdentity({WebIdentityToken:s,RoleArn:i.roleArn,RoleSessionName:i.roleSessionName||"token-file-web-identity"},function(i,n){t.data=null;if(i){e(i)}else{t.data=n;t.assumeRoleChaining(r,e)}})}}catch(t){e(t)}},createClients:function(){if(!this.service){var e=i.util.merge({},this.clientConfig);this.service=new s(e);this.service.retryableError=function(e){if(e.code==="IDPCommunicationErrorException"||e.code==="InvalidIdentityToken"){return true}else{return i.Service.prototype.retryableError.call(this,e)}}}}})},780:(e,t,r)=>{var i=r(8738);var n=r(7181);i.WebIdentityCredentials=i.util.inherit(i.Credentials,{constructor:function WebIdentityCredentials(e,t){i.Credentials.call(this);this.expired=true;this.params=e;this.params.RoleSessionName=this.params.RoleSessionName||"web-identity";this.data=null;this._clientConfig=i.util.copy(t||{})},refresh:function refresh(e){this.coalesceRefresh(e||i.util.fn.callback)},load:function load(e){var t=this;t.createClients();t.service.assumeRoleWithWebIdentity(function(r,i){t.data=null;if(!r){t.data=i;t.service.credentialsFrom(i,t)}e(r)})},createClients:function(){if(!this.service){var e=i.util.merge({},this._clientConfig);e.params=this.params;this.service=new n(e)}}})},9235:(e,t,r)=>{var i=r(8738);var n=r(3067);var s=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function getCacheKey(e){var t=e.service;var r=t.api||{};var i=r.operations;var n={};if(t.config.region){n.region=t.config.region}if(r.serviceId){n.serviceId=r.serviceId}if(t.config.credentials.accessKeyId){n.accessKeyId=t.config.credentials.accessKeyId}return n}function marshallCustomIdentifiersHelper(e,t,r){if(!r||t===undefined||t===null)return;if(r.type==="structure"&&r.required&&r.required.length>0){n.arrayEach(r.required,function(i){var n=r.members[i];if(n.endpointDiscoveryId===true){var s=n.isLocationName?n.name:i;e[s]=String(t[i])}else{marshallCustomIdentifiersHelper(e,t[i],n)}})}}function marshallCustomIdentifiers(e,t){var r={};marshallCustomIdentifiersHelper(r,e.params,t);return r}function optionalDiscoverEndpoint(e){var t=e.service;var r=t.api;var s=r.operations?r.operations[e.operation]:undefined;var o=s?s.input:undefined;var a=marshallCustomIdentifiers(e,o);var u=getCacheKey(e);if(Object.keys(a).length>0){u=n.update(u,a);if(s)u.operation=s.name}var c=i.endpointCache.get(u);if(c&&c.length===1&&c[0].Address===""){return}else if(c&&c.length>0){e.httpRequest.updateEndpoint(c[0].Address)}else{var l=t.makeRequest(r.endpointOperation,{Operation:s.name,Identifiers:a});addApiVersionHeader(l);l.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS);l.removeListener("retry",i.EventListeners.Core.RETRY_CHECK);i.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}]);l.send(function(e,t){if(t&&t.Endpoints){i.endpointCache.put(u,t.Endpoints)}else if(e){i.endpointCache.put(u,[{Address:"",CachePeriodInMinutes:1}])}})}}var o={};function requiredDiscoverEndpoint(e,t){var r=e.service;var s=r.api;var a=s.operations?s.operations[e.operation]:undefined;var u=a?a.input:undefined;var c=marshallCustomIdentifiers(e,u);var l=getCacheKey(e);if(Object.keys(c).length>0){l=n.update(l,c);if(a)l.operation=a.name}var f=i.EndpointCache.getKeyString(l);var h=i.endpointCache.get(f);if(h&&h.length===1&&h[0].Address===""){if(!o[f])o[f]=[];o[f].push({request:e,callback:t});return}else if(h&&h.length>0){e.httpRequest.updateEndpoint(h[0].Address);t()}else{var p=r.makeRequest(s.endpointOperation,{Operation:a.name,Identifiers:c});p.removeListener("validate",i.EventListeners.Core.VALIDATE_PARAMETERS);addApiVersionHeader(p);i.endpointCache.put(f,[{Address:"",CachePeriodInMinutes:60}]);p.send(function(r,s){if(r){e.response.error=n.error(r,{retryable:false});i.endpointCache.remove(l);if(o[f]){var a=o[f];n.arrayEach(a,function(e){e.request.response.error=n.error(r,{retryable:false});e.callback()});delete o[f]}}else if(s){i.endpointCache.put(f,s.Endpoints);e.httpRequest.updateEndpoint(s.Endpoints[0].Address);if(o[f]){var a=o[f];n.arrayEach(a,function(e){e.request.httpRequest.updateEndpoint(s.Endpoints[0].Address);e.callback()});delete o[f]}}t()})}}function addApiVersionHeader(e){var t=e.service.api;var r=t.apiVersion;if(r&&!e.httpRequest.headers["x-amz-api-version"]){e.httpRequest.headers["x-amz-api-version"]=r}}function invalidateCachedEndpoints(e){var t=e.error;var r=e.httpResponse;if(t&&(t.code==="InvalidEndpointException"||r.statusCode===421)){var s=e.request;var o=s.service.api.operations||{};var a=o[s.operation]?o[s.operation].input:undefined;var u=marshallCustomIdentifiers(s,a);var c=getCacheKey(s);if(Object.keys(u).length>0){c=n.update(c,u);if(o[s.operation])c.operation=o[s.operation].name}i.endpointCache.remove(c)}}function hasCustomEndpoint(e){if(e._originalConfig&&e._originalConfig.endpoint&&e._originalConfig.endpointDiscoveryEnabled===true){throw n.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."})}var t=i.config[e.serviceIdentifier]||{};return Boolean(i.config.endpoint||t.endpoint||e._originalConfig&&e._originalConfig.endpoint)}function isFalsy(e){return["false","0"].indexOf(e)>=0}function resolveEndpointDiscoveryConfig(e){var t=e.service||{};if(t.config.endpointDiscoveryEnabled!==undefined){return t.config.endpointDiscoveryEnabled}if(n.isBrowser())return undefined;for(var r=0;r{var i=r(5811).eventMessageChunker;var n=r(4333).parseEvent;function createEventStream(e,t,r){var s=i(e);var o=[];for(var a=0;a{var i=r(8738).util;var n=r(2413).Transform;var s=i.buffer.alloc;function EventMessageChunkerStream(e){n.call(this,e);this.currentMessageTotalLength=0;this.currentMessagePendingLength=0;this.currentMessage=null;this.messageLengthBuffer=null}EventMessageChunkerStream.prototype=Object.create(n.prototype);EventMessageChunkerStream.prototype._transform=function(e,t,r){var i=e.length;var n=0;while(n{function eventMessageChunker(e){var t=[];var r=0;while(r{var i=r(2413).Transform;var n=r(4333).parseEvent;function EventUnmarshallerStream(e){e=e||{};e.readableObjectMode=true;i.call(this,e);this._readableState.objectMode=true;this.parser=e.parser;this.eventStreamModel=e.eventStreamModel}EventUnmarshallerStream.prototype=Object.create(i.prototype);EventUnmarshallerStream.prototype._transform=function(e,t,r){try{var i=n(this.parser,e,this.eventStreamModel);this.push(i);return r()}catch(e){r(e)}};e.exports={EventUnmarshallerStream:EventUnmarshallerStream}},6137:(e,t,r)=>{var i=r(8738).util;var n=i.buffer.toBuffer;function Int64(e){if(e.length!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}if(!i.Buffer.isBuffer(e))e=n(e);this.bytes=e}Int64.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64")}var t=new Uint8Array(8);for(var r=7,i=Math.abs(Math.round(e));r>-1&&i>0;r--,i/=256){t[r]=i}if(e<0){negate(t)}return new Int64(t)};Int64.prototype.valueOf=function(){var e=this.bytes.slice(0);var t=e[0]&128;if(t){negate(e)}return parseInt(e.toString("hex"),16)*(t?-1:1)};Int64.prototype.toString=function(){return String(this.valueOf())};function negate(e){for(var t=0;t<8;t++){e[t]^=255}for(var t=7;t>-1;t--){e[t]++;if(e[t]!==0){break}}}e.exports={Int64:Int64}},4333:(e,t,r)=>{var i=r(5960).parseMessage;function parseEvent(e,t,r){var n=i(t);var s=n.headers[":message-type"];if(s){if(s.value==="error"){throw parseError(n)}else if(s.value!=="event"){return}}var o=n.headers[":event-type"];var a=r.members[o.value];if(!a){return}var u={};var c=a.eventPayloadMemberName;if(c){var l=a.members[c];if(l.type==="binary"){u[c]=n.body}else{u[c]=e.parse(n.body.toString(),l)}}var f=a.eventHeaderMemberNames;for(var h=0;h{var i=r(6137).Int64;var n=r(1973).splitMessage;var s="boolean";var o="byte";var a="short";var u="integer";var c="long";var l="binary";var f="string";var h="timestamp";var p="uuid";function parseHeaders(e){var t={};var r=0;while(r{var i=r(8738).util;var n=i.buffer.toBuffer;var s=4;var o=s*2;var a=4;var u=o+a*2;function splitMessage(e){if(!i.Buffer.isBuffer(e))e=n(e);if(e.length{var i=r(3016).EventMessageChunkerStream;var n=r(8889).EventUnmarshallerStream;function createEventStream(e,t,r){var s=new n({parser:t,eventStreamModel:r});var o=new i;e.pipe(o).pipe(s);e.on("error",function(e){o.emit("error",e)});o.on("error",function(e){s.emit("error",e)});return s}e.exports={createEventStream:createEventStream}},1241:(e,t,r)=>{var i=r(8738);var n=r(2375);var s=r(9235).discoverEndpoint;i.EventListeners={Core:{}};function getOperationAuthtype(e){if(!e.service.api.operations){return""}var t=e.service.api.operations[e.operation];return t?t.authtype:""}i.EventListeners={Core:(new n).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function VALIDATE_CREDENTIALS(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(r){if(r){e.response.error=i.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})}t()})});e("VALIDATE_REGION","validate",function VALIDATE_REGION(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!e.service.config.region){e.response.error=i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}else if(!t.test(e.service.config.region)){e.response.error=i.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})}}});e("BUILD_IDEMPOTENCY_TOKENS","validate",function BUILD_IDEMPOTENCY_TOKENS(e){if(!e.service.api.operations){return}var t=e.service.api.operations[e.operation];if(!t){return}var r=t.idempotentMembers;if(!r.length){return}var n=i.util.copy(e.params);for(var s=0,o=r.length;s=0){e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD";return t()}i.util.computeSha256(s,function(r,i){if(r){t(r)}else{e.httpRequest.headers["X-Amz-Content-Sha256"]=i;t()}})}else{t()}});e("SET_CONTENT_LENGTH","afterBuild",function SET_CONTENT_LENGTH(e){var t=getOperationAuthtype(e);var r=i.util.getRequestPayloadShape(e);if(e.httpRequest.headers["Content-Length"]===undefined){try{var n=i.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=n}catch(i){if(r&&r.isStreaming){if(r.requiresLength){throw i}else if(t.indexOf("unsigned-body")>=0){e.httpRequest.headers["Transfer-Encoding"]="chunked";return}else{throw i}}throw i}}});e("SET_HTTP_HOST","afterBuild",function SET_HTTP_HOST(e){e.httpRequest.headers["Host"]=e.httpRequest.endpoint.host});e("RESTART","restart",function RESTART(){var e=this.response.error;if(!e||!e.retryable)return;this.httpRequest=new i.HttpRequest(this.service.endpoint,this.service.region);if(this.response.retryCount=60*10){this.emit("sign",[this],function(e){if(e)t(e);else executeSend()})}else{executeSend()}});e("HTTP_HEADERS","httpHeaders",function HTTP_HEADERS(e,t,r,n){r.httpResponse.statusCode=e;r.httpResponse.statusMessage=n;r.httpResponse.headers=t;r.httpResponse.body=i.util.buffer.toBuffer("");r.httpResponse.buffers=[];r.httpResponse.numBytes=0;var s=t.date||t.Date;var o=r.request.service;if(s){var a=Date.parse(s);if(o.config.correctClockSkew&&o.isClockSkewed(a)){o.applyClockOffset(a)}}});e("HTTP_DATA","httpData",function HTTP_DATA(e,t){if(e){if(i.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"];var n={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[n,t])}t.httpResponse.buffers.push(i.util.buffer.toBuffer(e))}});e("HTTP_DONE","httpDone",function HTTP_DONE(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=i.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes;delete e.httpResponse.buffers});e("FINALIZE_ERROR","retry",function FINALIZE_ERROR(e){if(e.httpResponse.statusCode){e.error.statusCode=e.httpResponse.statusCode;if(e.error.retryable===undefined){e.error.retryable=this.service.retryableError(e.error,this)}}});e("INVALIDATE_CREDENTIALS","retry",function INVALIDATE_CREDENTIALS(e){if(!e.error)return;switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=true;e.request.service.config.credentials.expired=true}});e("EXPIRED_SIGNATURE","retry",function EXPIRED_SIGNATURE(e){var t=e.error;if(!t)return;if(typeof t.code==="string"&&typeof t.message==="string"){if(t.code.match(/Signature/)&&t.message.match(/expired/)){e.error.retryable=true}}});e("CLOCK_SKEWED","retry",function CLOCK_SKEWED(e){if(!e.error)return;if(this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew){e.error.retryable=true}});e("REDIRECT","retry",function REDIRECT(e){if(e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers["location"]){this.httpRequest.endpoint=new i.Endpoint(e.httpResponse.headers["location"]);this.httpRequest.headers["Host"]=this.httpRequest.endpoint.host;e.error.redirect=true;e.error.retryable=true}});e("RETRY_CHECK","retry",function RETRY_CHECK(e){if(e.error){if(e.error.redirect&&e.redirectCount=0){e.error=null;setTimeout(t,r)}else{t()}})}),CorePost:(new n).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",i.util.extractRequestId);e("EXTRACT_REQUEST_ID","extractError",i.util.extractRequestId);e("ENOTFOUND_ERROR","httpError",function ENOTFOUND_ERROR(e){function isDNSError(e){return e.errno==="ENOTFOUND"||typeof e.errno==="number"&&typeof i.util.getSystemErrorName==="function"&&["EAI_NONAME","EAI_NODATA"].indexOf(i.util.getSystemErrorName(e.errno)>=0)}if(e.code==="NetworkingError"&&isDNSError(e)){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=i.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:true,originalError:e})}})}),Logger:(new n).addNamedListeners(function(e){e("LOG_REQUEST","complete",function LOG_REQUEST(e){var t=e.request;var n=t.service.config.logger;if(!n)return;function filterSensitiveLog(e,t){if(!t){return t}if(e.isSensitive){return"***SensitiveInformation***"}switch(e.type){case"structure":var r={};i.util.each(t,function(t,i){if(Object.prototype.hasOwnProperty.call(e.members,t)){r[t]=filterSensitiveLog(e.members[t],i)}else{r[t]=i}});return r;case"list":var n=[];i.util.arrayEach(t,function(t,r){n.push(filterSensitiveLog(e.member,t))});return n;case"map":var s={};i.util.each(t,function(t,r){s[t]=filterSensitiveLog(e.value,r)});return s;default:return t}}function buildMessage(){var s=e.request.service.getSkewCorrectedDate().getTime();var o=(s-t.startTime.getTime())/1e3;var a=n.isTTY?true:false;var u=e.httpResponse.statusCode;var c=t.params;if(t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input){var l=t.service.api.operations[t.operation].input;c=filterSensitiveLog(l,t.params)}var f=r(1669).inspect(c,true,null);var h="";if(a)h+="";h+="[AWS "+t.service.serviceIdentifier+" "+u;h+=" "+o.toString()+"s "+e.retryCount+" retries]";if(a)h+="";h+=" "+i.util.string.lowerFirst(t.operation);h+="("+f+")";if(a)h+="";return h}var s=buildMessage();if(typeof n.log==="function"){n.log(s)}else if(typeof n.write==="function"){n.write(s+"\n")}})}),Json:(new n).addNamedListeners(function(e){var t=r(3242);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new n).addNamedListeners(function(e){var t=r(1331);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new n).addNamedListeners(function(e){var t=r(550);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new n).addNamedListeners(function(e){var t=r(4382);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new n).addNamedListeners(function(e){var t=r(9198);e("BUILD","build",t.buildRequest);e("EXTRACT_DATA","extractData",t.extractData);e("EXTRACT_ERROR","extractError",t.extractError)})}},3366:(e,t,r)=>{var i=r(8738);var n=i.util.inherit;i.Endpoint=n({constructor:function Endpoint(e,t){i.util.hideProperties(this,["slashes","auth","hash","search","query"]);if(typeof e==="undefined"||e===null){throw new Error("Invalid endpoint: "+e)}else if(typeof e!=="string"){return i.util.copy(e)}if(!e.match(/^http/)){var r=t&&t.sslEnabled!==undefined?t.sslEnabled:i.config.sslEnabled;e=(r?"https":"http")+"://"+e}i.util.update(this,i.util.urlParse(e));if(this.port){this.port=parseInt(this.port,10)}else{this.port=this.protocol==="https:"?443:80}}});i.HttpRequest=n({constructor:function HttpRequest(e,t){e=new i.Endpoint(e);this.method="POST";this.path=e.path||"/";this.headers={};this.body="";this.endpoint=e;this.region=t;this._userAgent="";this.setUserAgent()},setUserAgent:function setUserAgent(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=i.util.userAgent()},getUserAgentHeaderName:function getUserAgentHeaderName(){var e=i.util.isBrowser()?"X-Amz-":"";return e+"User-Agent"},appendToUserAgent:function appendToUserAgent(e){if(typeof e==="string"&&e){this._userAgent+=" "+e}this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function getUserAgent(){return this._userAgent},pathname:function pathname(){return this.path.split("?",1)[0]},search:function search(){var e=this.path.split("?",2)[1];if(e){e=i.util.queryStringParse(e);return i.util.queryParamsToString(e)}return""},updateEndpoint:function updateEndpoint(e){var t=new i.Endpoint(e);this.endpoint=t;this.path=t.path||"/";if(this.headers["Host"]){this.headers["Host"]=t.host}}});i.HttpResponse=n({constructor:function HttpResponse(){this.statusCode=undefined;this.headers={};this.body=undefined;this.streaming=false;this.stream=null},createUnbufferedStream:function createUnbufferedStream(){this.streaming=true;return this.stream}});i.HttpClient=n({});i.HttpClient.getInstance=function getInstance(){if(this.singleton===undefined){this.singleton=new this}return this.singleton}},4136:(e,t,r)=>{var i=r(8738);var n=i.util.stream.Stream;var s=i.util.stream.Transform;var o=i.util.stream.Readable;r(3366);var a="AWS_NODEJS_CONNECTION_REUSE_ENABLED";i.NodeHttpClient=i.util.inherit({handleRequest:function handleRequest(e,t,n,s){var o=this;var u=e.endpoint;var c="";if(!t)t={};if(t.proxy){c=u.protocol+"//"+u.hostname;if(u.port!==80&&u.port!==443){c+=":"+u.port}u=new i.Endpoint(t.proxy)}var l=u.protocol==="https:";var f=l?r(7211):r(8605);var h={host:u.hostname,port:u.port,method:e.method,headers:e.headers,path:c+e.path};if(!t.agent){h.agent=this.getAgent(l,{keepAlive:process.env[a]==="1"?true:false})}i.util.update(h,t);delete h.proxy;delete h.timeout;var p=f.request(h,function(e){if(p.didCallback)return;n(e);e.emit("headers",e.statusCode,e.headers,e.statusMessage)});e.stream=p;p.didCallback=false;if(t.connectTimeout){var d;p.on("socket",function(e){if(e.connecting){d=setTimeout(function connectTimeout(){if(p.didCallback)return;p.didCallback=true;p.abort();s(i.util.error(new Error("Socket timed out without establishing a connection"),{code:"TimeoutError"}))},t.connectTimeout);e.on("connect",function(){clearTimeout(d);d=null})}})}p.setTimeout(t.timeout||0,function(){if(p.didCallback)return;p.didCallback=true;var e="Connection timed out after "+t.timeout+"ms";s(i.util.error(new Error(e),{code:"TimeoutError"}));p.abort()});p.on("error",function(){if(d){clearTimeout(d);d=null}if(p.didCallback)return;p.didCallback=true;s.apply(p,arguments)});var v=e.headers.Expect||e.headers.expect;if(v==="100-continue"){p.on("continue",function(){o.writeBody(p,e)})}else{this.writeBody(p,e)}return p},writeBody:function writeBody(e,t){var r=t.body;var i=parseInt(t.headers["Content-Length"],10);if(r instanceof n){var s=this.progressStream(e,i);if(s){r.pipe(s).pipe(e)}else{r.pipe(e)}}else if(r){e.once("finish",function(){e.emit("sendProgress",{loaded:i,total:i})});e.end(r)}else{e.end()}},getAgent:function getAgent(e,t){var n=e?r(7211):r(8605);if(e){if(!i.NodeHttpClient.sslAgent){i.NodeHttpClient.sslAgent=new n.Agent(i.util.merge({rejectUnauthorized:process.env.NODE_TLS_REJECT_UNAUTHORIZED==="0"?false:true},t||{}));i.NodeHttpClient.sslAgent.setMaxListeners(0);Object.defineProperty(i.NodeHttpClient.sslAgent,"maxSockets",{enumerable:true,get:function(){var e=50;var t=n.globalAgent;if(t&&t.maxSockets!==Infinity&&typeof t.maxSockets==="number"){return t.maxSockets}return e}})}return i.NodeHttpClient.sslAgent}else{if(!i.NodeHttpClient.agent){i.NodeHttpClient.agent=new n.Agent(t)}return i.NodeHttpClient.agent}},progressStream:function progressStream(e,t){if(typeof s==="undefined"){return}var r=0;var i=new s;i._transform=function(i,n,s){if(i){r+=i.length;e.emit("sendProgress",{loaded:r,total:t})}s(null,i)};return i},emitter:null});i.HttpClient.prototype=i.NodeHttpClient.prototype;i.HttpClient.streamsApiVersion=o?2:1},794:(e,t,r)=>{var i=r(3067);function JsonBuilder(){}JsonBuilder.prototype.build=function(e,t){return JSON.stringify(translate(e,t))};function translate(e,t){if(!t||e===undefined||e===null)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){var r={};i.each(e,function(e,i){var n=t.members[e];if(n){if(n.location!=="body")return;var s=n.isLocationName?n.name:e;var o=translate(i,n);if(o!==undefined)r[s]=o}});return r}function translateList(e,t){var r=[];i.arrayEach(e,function(e){var i=translate(e,t.member);if(i!==undefined)r.push(i)});return r}function translateMap(e,t){var r={};i.each(e,function(e,i){var n=translate(i,t.value);if(n!==undefined)r[e]=n});return r}function translateScalar(e,t){return t.toWireFormat(e)}e.exports=JsonBuilder},4106:(e,t,r)=>{var i=r(3067);function JsonParser(){}JsonParser.prototype.parse=function(e,t){return translate(JSON.parse(e),t)};function translate(e,t){if(!t||e===undefined)return undefined;switch(t.type){case"structure":return translateStructure(e,t);case"map":return translateMap(e,t);case"list":return translateList(e,t);default:return translateScalar(e,t)}}function translateStructure(e,t){if(e==null)return undefined;var r={};var n=t.members;i.each(n,function(t,i){var n=i.isLocationName?i.name:t;if(Object.prototype.hasOwnProperty.call(e,n)){var s=e[n];var o=translate(s,i);if(o!==undefined)r[t]=o}});return r}function translateList(e,t){if(e==null)return undefined;var r=[];i.arrayEach(e,function(e){var i=translate(e,t.member);if(i===undefined)r.push(null);else r.push(i)});return r}function translateMap(e,t){if(e==null)return undefined;var r={};i.each(e,function(e,i){var n=translate(i,t.value);if(n===undefined)r[e]=null;else r[e]=n});return r}function translateScalar(e,t){return t.toType(e)}e.exports=JsonParser},7015:(e,t,r)=>{var i=r(8738);r(3366);var n=i.util.inherit;i.MetadataService=n({host:"169.254.169.254",httpOptions:{timeout:0},disableFetchToken:false,constructor:function MetadataService(e){i.util.update(this,e)},request:function request(e,t,r){if(arguments.length===2){r=t;t={}}if(process.env[i.util.imdsDisabledEnv]){r(new Error("EC2 Instance Metadata Service access disabled"));return}e=e||"/";var n=new i.HttpRequest("http://"+this.host+e);n.method=t.method||"GET";if(t.headers){n.headers=t.headers}i.util.handleRequestWithRetries(n,this,r)},loadCredentialsCallbacks:[],fetchMetadataToken:function fetchMetadataToken(e){var t=this;var r="/latest/api/token";t.request(r,{method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}},e)},fetchCredentials:function fetchCredentials(e,t){var r=this;var n="/latest/meta-data/iam/security-credentials/";r.request(n,e,function(s,o){if(s){r.disableFetchToken=!(s.statusCode===401);t(i.util.error(s,{message:"EC2 Metadata roleName request returned error"}));return}o=o.split("\n")[0];r.request(n+o,e,function(e,n){if(e){r.disableFetchToken=!(e.statusCode===401);t(i.util.error(e,{message:"EC2 Metadata creds request returned error"}));return}try{var s=JSON.parse(n);t(null,s)}catch(e){t(e)}})})},loadCredentials:function loadCredentials(e){var t=this;t.loadCredentialsCallbacks.push(e);if(t.loadCredentialsCallbacks.length>1){return}function callbacks(e,r){var i;while((i=t.loadCredentialsCallbacks.shift())!==undefined){i(e,r)}}if(t.disableFetchToken){t.fetchCredentials({},callbacks)}else{t.fetchMetadataToken(function(e,r){if(e){if(e.code==="TimeoutError"){t.disableFetchToken=true}else if(e.retryable===true){callbacks(i.util.error(e,{message:"EC2 Metadata token request returned error"}));return}else if(e.statusCode===400){callbacks(i.util.error(e,{message:"EC2 Metadata token request returned 400"}));return}}var n={};if(r){n.headers={"x-aws-ec2-metadata-token":r}}t.fetchCredentials(n,callbacks)})}}});e.exports=i.MetadataService},9541:(e,t,r)=>{var i=r(1178);var n=r(25);var s=r(377);var o=r(7269);var a=r(9878);var u=r(2969);var c=r(3067);var l=c.property;var f=c.memoizedProperty;function Api(e,t){var r=this;e=e||{};t=t||{};t.api=this;e.metadata=e.metadata||{};var h=t.serviceIdentifier;delete t.serviceIdentifier;l(this,"isApi",true,false);l(this,"apiVersion",e.metadata.apiVersion);l(this,"endpointPrefix",e.metadata.endpointPrefix);l(this,"signingName",e.metadata.signingName);l(this,"globalEndpoint",e.metadata.globalEndpoint);l(this,"signatureVersion",e.metadata.signatureVersion);l(this,"jsonVersion",e.metadata.jsonVersion);l(this,"targetPrefix",e.metadata.targetPrefix);l(this,"protocol",e.metadata.protocol);l(this,"timestampFormat",e.metadata.timestampFormat);l(this,"xmlNamespaceUri",e.metadata.xmlNamespace);l(this,"abbreviation",e.metadata.serviceAbbreviation);l(this,"fullName",e.metadata.serviceFullName);l(this,"serviceId",e.metadata.serviceId);if(h&&u[h]){l(this,"xmlNoDefaultLists",u[h].xmlNoDefaultLists,false)}f(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;if(!t)return null;t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,"");if(t==="ElasticLoadBalancing")t="ELB";return t});function addEndpointOperation(e,t){if(t.endpointoperation===true){l(r,"endpointOperation",c.string.lowerFirst(e))}if(t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery){l(r,"hasRequiredEndpointDiscovery",t.endpointdiscovery.required===true)}}l(this,"operations",new i(e.operations,t,function(e,r){return new n(e,r,t)},c.string.lowerFirst,addEndpointOperation));l(this,"shapes",new i(e.shapes,t,function(e,r){return s.create(r,t)}));l(this,"paginators",new i(e.paginators,t,function(e,r){return new o(e,r,t)}));l(this,"waiters",new i(e.waiters,t,function(e,r){return new a(e,r,t)},c.string.lowerFirst));if(t.documentation){l(this,"documentation",e.documentation);l(this,"documentationUrl",e.documentationUrl)}}e.exports=Api},1178:(e,t,r)=>{var i=r(3067).memoizedProperty;function memoize(e,t,r,n){i(this,n(e),function(){return r(e,t)})}function Collection(e,t,r,i,n){i=i||String;var s=this;for(var o in e){if(Object.prototype.hasOwnProperty.call(e,o)){memoize.call(s,o,e[o],r,i);if(n)n(o,e[o])}}}e.exports=Collection},25:(e,t,r)=>{var i=r(377);var n=r(3067);var s=n.property;var o=n.memoizedProperty;function Operation(e,t,r){var n=this;r=r||{};s(this,"name",t.name||e);s(this,"api",r.api,false);t.http=t.http||{};s(this,"endpoint",t.endpoint);s(this,"httpMethod",t.http.method||"POST");s(this,"httpPath",t.http.requestUri||"/");s(this,"authtype",t.authtype||"");s(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL");o(this,"input",function(){if(!t.input){return new i.create({type:"structure"},r)}return i.create(t.input,r)});o(this,"output",function(){if(!t.output){return new i.create({type:"structure"},r)}return i.create(t.output,r)});o(this,"errors",function(){var e=[];if(!t.errors)return null;for(var n=0;n{var i=r(3067).property;function Paginator(e,t){i(this,"inputToken",t.input_token);i(this,"limitKey",t.limit_key);i(this,"moreResults",t.more_results);i(this,"outputToken",t.output_token);i(this,"resultKey",t.result_key)}e.exports=Paginator},9878:(e,t,r)=>{var i=r(3067);var n=i.property;function ResourceWaiter(e,t,r){r=r||{};n(this,"name",e);n(this,"api",r.api,false);if(t.operation){n(this,"operation",i.string.lowerFirst(t.operation))}var s=this;var o=["type","description","delay","maxAttempts","acceptors"];o.forEach(function(e){var r=t[e];if(r){n(s,e,r)}})}e.exports=ResourceWaiter},377:(e,t,r)=>{var i=r(1178);var n=r(3067);function property(e,t,r){if(r!==null&&r!==undefined){n.property.apply(this,arguments)}}function memoizedProperty(e,t){if(!e.constructor.prototype[t]){n.memoizedProperty.apply(this,arguments)}}function Shape(e,t,r){t=t||{};property(this,"shape",e.shape);property(this,"api",t.api,false);property(this,"type",e.type);property(this,"enum",e.enum);property(this,"min",e.min);property(this,"max",e.max);property(this,"pattern",e.pattern);property(this,"location",e.location||this.location||"body");property(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r);property(this,"isStreaming",e.streaming||this.isStreaming||false);property(this,"requiresLength",e.requiresLength,false);property(this,"isComposite",e.isComposite||false);property(this,"isShape",true,false);property(this,"isQueryName",Boolean(e.queryName),false);property(this,"isLocationName",Boolean(e.locationName),false);property(this,"isIdempotent",e.idempotencyToken===true);property(this,"isJsonValue",e.jsonvalue===true);property(this,"isSensitive",e.sensitive===true||e.prototype&&e.prototype.sensitive===true);property(this,"isEventStream",Boolean(e.eventstream),false);property(this,"isEvent",Boolean(e.event),false);property(this,"isEventPayload",Boolean(e.eventpayload),false);property(this,"isEventHeader",Boolean(e.eventheader),false);property(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&e.prototype.isTimestampFormatSet===true,false);property(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),false);property(this,"hostLabel",Boolean(e.hostLabel),false);if(t.documentation){property(this,"documentation",e.documentation);property(this,"documentationUrl",e.documentationUrl)}if(e.xmlAttribute){property(this,"isXmlAttribute",e.xmlAttribute||false)}property(this,"defaultValue",null);this.toWireFormat=function(e){if(e===null||e===undefined)return"";return e};this.toType=function(e){return e}}Shape.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"};Shape.types={structure:StructureShape,list:ListShape,map:MapShape,boolean:BooleanShape,timestamp:TimestampShape,float:FloatShape,integer:IntegerShape,string:StringShape,base64:Base64Shape,binary:BinaryShape};Shape.resolve=function resolve(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r){throw new Error("Cannot find shape reference: "+e.shape)}return r}else{return null}};Shape.create=function create(e,t,r){if(e.isShape)return e;var i=Shape.resolve(e,t);if(i){var n=Object.keys(e);if(!t.documentation){n=n.filter(function(e){return!e.match(/documentation/)})}var s=function(){i.constructor.call(this,e,t,r)};s.prototype=i;return new s}else{if(!e.type){if(e.members)e.type="structure";else if(e.member)e.type="list";else if(e.key)e.type="map";else e.type="string"}var o=e.type;if(Shape.normalizedTypes[e.type]){e.type=Shape.normalizedTypes[e.type]}if(Shape.types[e.type]){return new Shape.types[e.type](e,t,r)}else{throw new Error("Unrecognized shape type: "+o)}}};function CompositeShape(e){Shape.apply(this,arguments);property(this,"isComposite",true);if(e.flattened){property(this,"flattened",e.flattened||false)}}function StructureShape(e,t){var r=this;var n=null,s=!this.isShape;CompositeShape.apply(this,arguments);if(s){property(this,"defaultValue",function(){return{}});property(this,"members",{});property(this,"memberNames",[]);property(this,"required",[]);property(this,"isRequired",function(){return false})}if(e.members){property(this,"members",new i(e.members,t,function(e,r){return Shape.create(r,t,e)}));memoizedProperty(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)});if(e.event){memoizedProperty(this,"eventPayloadMemberName",function(){var e=r.members;var t=r.memberNames;for(var i=0,n=t.length;i-1?t||"":t;if(this.isJsonValue){return JSON.parse(t)}return t&&typeof t.toString==="function"?t.toString():t};this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function FloatShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseFloat(e)};this.toWireFormat=this.toType}function IntegerShape(){Shape.apply(this,arguments);this.toType=function(e){if(e===null||e===undefined)return null;return parseInt(e,10)};this.toWireFormat=this.toType}function BinaryShape(){Shape.apply(this,arguments);this.toType=function(e){var t=n.base64.decode(e);if(this.isSensitive&&n.isNode()&&typeof n.Buffer.alloc==="function"){var r=n.Buffer.alloc(t.length,t);t.fill(0);t=r}return t};this.toWireFormat=n.base64.encode}function Base64Shape(){BinaryShape.apply(this,arguments)}function BooleanShape(){Shape.apply(this,arguments);this.toType=function(e){if(typeof e==="boolean")return e;if(e===null||e===undefined)return null;return e==="true"}}Shape.shapes={StructureShape:StructureShape,ListShape:ListShape,MapShape:MapShape,StringShape:StringShape,BooleanShape:BooleanShape,Base64Shape:Base64Shape};e.exports=Shape},2432:(e,t,r)=>{var i=r(3067);i.isBrowser=function(){return false};i.isNode=function(){return true};i.crypto.lib=r(6417);i.Buffer=r(4293).Buffer;i.domain=r(5229);i.stream=r(2413);i.url=r(8835);i.querystring=r(1191);i.environment="nodejs";i.createEventStream=i.stream.Readable?r(3828).createEventStream:r(2706).createEventStream;i.realClock=r(6858);i.clientSideMonitoring={Publisher:r(1453).Publisher,configProvider:r(5261)};i.iniLoader=r(6674).b;i.getSystemErrorName=r(1669).getSystemErrorName;var n;e.exports=n=r(8738);r(4764);r(9992);r(5588);r(6498);r(780);r(7864);r(7792);r(3037);n.XML.Parser=r(9958);r(4136);r(2733);r(85);r(4134);r(5539);r(8649);r(3897);r(5979);r(6859);r(3037);n.CredentialProviderChain.defaultProviders=[function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials},function(){return new n.ECSCredentials},function(){return new n.ProcessCredentials},function(){return new n.TokenFileWebIdentityCredentials},function(){return new n.EC2MetadataCredentials}];n.util.update(n.Config.prototype.keys,{credentials:function(){var e=null;new n.CredentialProviderChain([function(){return new n.EnvironmentCredentials("AWS")},function(){return new n.EnvironmentCredentials("AMAZON")},function(){return new n.SharedIniFileCredentials({disableAssumeRole:true})}]).resolve(function(t,r){if(!t)e=r});return e},credentialProvider:function(){return new n.CredentialProviderChain},logger:function(){return process.env.AWSJS_DEBUG?console:null},region:function(){var e=process.env;var t=e.AWS_REGION||e.AMAZON_REGION;if(e[n.util.configOptInEnv]){var r=[{filename:e[n.util.sharedCredentialsFileEnv]},{isConfig:true,filename:e[n.util.sharedConfigFileEnv]}];var i=n.util.iniLoader;while(!t&&r.length){var s=i.loadFrom(r.shift());var o=s[e.AWS_PROFILE||n.util.defaultProfile];t=o&&o.region}}return t}});n.config=new n.Config},4757:(e,t,r)=>{var i=r(8738);i.ParamValidator=i.util.inherit({constructor:function ParamValidator(e){if(e===true||e===undefined){e={min:true}}this.validation=e},validate:function validate(e,t,r){this.errors=[];this.validateMember(e,t||{},r||"params");if(this.errors.length>1){var n=this.errors.join("\n* ");n="There were "+this.errors.length+" validation errors:\n* "+n;throw i.util.error(new Error(n),{code:"MultipleValidationErrors",errors:this.errors})}else if(this.errors.length===1){throw this.errors[0]}else{return true}},fail:function fail(e,t){this.errors.push(i.util.error(new Error(t),{code:e}))},validateStructure:function validateStructure(e,t,r){this.validateType(t,r,["object"],"structure");var i;for(var n=0;e.required&&n= 1,"+' but found "'+t+'" for '+r)}}},validatePattern:function validatePattern(e,t,r){if(this.validation["pattern"]&&e["pattern"]!==undefined){if(!new RegExp(e["pattern"]).test(t)){this.fail("PatternMatchError",'Provided value "'+t+'" '+"does not match regex pattern /"+e["pattern"]+"/ for "+r)}}},validateRange:function validateRange(e,t,r,i){if(this.validation["min"]){if(e["min"]!==undefined&&t= "+e["min"]+", but found "+t+" for "+r)}}if(this.validation["max"]){if(e["max"]!==undefined&&t>e["max"]){this.fail("MaxRangeError","Expected "+i+" <= "+e["max"]+", but found "+t+" for "+r)}}},validateEnum:function validateRange(e,t,r){if(this.validation["enum"]&&e["enum"]!==undefined){if(e["enum"].indexOf(t)===-1){this.fail("EnumError","Found string value of "+t+", but "+"expected "+e["enum"].join("|")+" for "+r)}}},validateType:function validateType(e,t,r,n){if(e===null||e===undefined)return false;var s=false;for(var o=0;o{var i=r(3067);var n=r(8738);function populateHostPrefix(e){var t=e.service.config.hostPrefixEnabled;if(!t)return e;var r=e.service.api.operations[e.operation];if(hasEndpointDiscover(e))return e;if(r.endpoint&&r.endpoint.hostPrefix){var i=r.endpoint.hostPrefix;var n=expandHostPrefix(i,e.params,r.input);prependEndpointPrefix(e.httpRequest.endpoint,n);validateHostname(e.httpRequest.endpoint.hostname)}return e}function hasEndpointDiscover(e){var t=e.service.api;var r=t.operations[e.operation];var n=t.endpointOperation&&t.endpointOperation===i.string.lowerFirst(r.name);return r.endpointDiscoveryRequired!=="NULL"||n===true}function expandHostPrefix(e,t,r){i.each(r.members,function(r,n){if(n.hostLabel===true){if(typeof t[r]!=="string"||t[r]===""){throw i.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"})}var s=new RegExp("\\{"+r+"\\}","g");e=e.replace(s,t[r])}});return e}function prependEndpointPrefix(e,t){if(e.host){e.host=t+e.host}if(e.hostname){e.hostname=t+e.hostname}}function validateHostname(e){var t=e.split(".");var r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;i.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63){throw i.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."})}if(!r.test(e)){throw n.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})}})}e.exports={populateHostPrefix:populateHostPrefix}},3242:(e,t,r)=>{var i=r(3067);var n=r(794);var s=r(4106);var o=r(7736).populateHostPrefix;function buildRequest(e){var t=e.httpRequest;var r=e.service.api;var i=r.targetPrefix+"."+r.operations[e.operation].name;var s=r.jsonVersion||"1.0";var a=r.operations[e.operation].input;var u=new n;if(s===1)s="1.0";t.body=u.build(e.params||{},a);t.headers["Content-Type"]="application/x-amz-json-"+s;t.headers["X-Amz-Target"]=i;o(e)}function extractError(e){var t={};var r=e.httpResponse;t.code=r.headers["x-amzn-errortype"]||"UnknownError";if(typeof t.code==="string"){t.code=t.code.split(":")[0]}if(r.body.length>0){try{var n=JSON.parse(r.body.toString());var s=n.__type||n.code||n.Code;if(s){t.code=s.split("#").pop()}if(t.code==="RequestEntityTooLarge"){t.message="Request body must be less than 1 MB"}else{t.message=n.message||n.Message||null}}catch(n){t.statusCode=r.statusCode;t.message=r.statusMessage}}else{t.statusCode=r.statusCode;t.message=r.statusCode.toString()}e.error=i.error(new Error,t)}function extractData(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===false){e.data=JSON.parse(t)}else{var r=e.request.service.api.operations[e.request.operation];var i=r.output||{};var n=new s;e.data=n.parse(t,i)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},9198:(e,t,r)=>{var i=r(8738);var n=r(3067);var s=r(8135);var o=r(377);var a=r(7736).populateHostPrefix;function buildRequest(e){var t=e.service.api.operations[e.operation];var r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";r.params={Version:e.service.api.apiVersion,Action:t.name};var i=new s;i.serialize(e.params,t.input,function(e,t){r.params[e]=t});r.body=n.queryParamsToString(r.params);a(e)}function extractError(e){var t,r=e.httpResponse.body.toString();if(r.match("{var i=r(3067);var n=r(7736).populateHostPrefix;function populateMethod(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function generateURI(e,t,r,n){var s=[e,t].join("/");s=s.replace(/\/+/g,"/");var o={},a=false;i.each(r.members,function(e,t){var r=n[e];if(r===null||r===undefined)return;if(t.location==="uri"){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");s=s.replace(u,function(e,t){var n=t?i.uriEscapePath:i.uriEscape;return n(String(r))})}else if(t.location==="querystring"){a=true;if(t.type==="list"){o[t.name]=r.map(function(e){return i.uriEscape(t.member.toWireFormat(e).toString())})}else if(t.type==="map"){i.each(r,function(e,t){if(Array.isArray(t)){o[e]=t.map(function(e){return i.uriEscape(String(e))})}else{o[e]=i.uriEscape(String(t))}})}else{o[t.name]=i.uriEscape(t.toWireFormat(r).toString())}}});if(a){s+=s.indexOf("?")>=0?"&":"?";var u=[];i.arrayEach(Object.keys(o).sort(),function(e){if(!Array.isArray(o[e])){o[e]=[o[e]]}for(var t=0;t{var i=r(3067);var n=r(1331);var s=r(3242);var o=r(794);var a=r(4106);function populateBody(e){var t=new o;var r=e.service.api.operations[e.operation].input;if(r.payload){var i={};var n=r.members[r.payload];i=e.params[r.payload];if(i===undefined)return;if(n.type==="structure"){e.httpRequest.body=t.build(i,n);applyContentTypeHeader(e)}else{e.httpRequest.body=i;if(n.type==="binary"||n.isStreaming){applyContentTypeHeader(e,true)}}}else{var s=t.build(e.params,r);if(s!=="{}"||e.httpRequest.method!=="GET"){e.httpRequest.body=s}applyContentTypeHeader(e)}}function applyContentTypeHeader(e,t){var r=e.service.api.operations[e.operation];var i=r.input;if(!e.httpRequest.headers["Content-Type"]){var n=t?"binary/octet-stream":"application/json";e.httpRequest.headers["Content-Type"]=n}}function buildRequest(e){n.buildRequest(e);if(["HEAD","DELETE"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){s.extractError(e)}function extractData(e){n.extractData(e);var t=e.request;var r=t.service.api.operations[t.operation];var o=t.service.api.operations[t.operation].output||{};var u;var c=r.hasEventOutput;if(o.payload){var l=o.members[o.payload];var f=e.httpResponse.body;if(l.isEventStream){u=new a;e.data[payload]=i.createEventStream(AWS.HttpClient.streamsApiVersion===2?e.httpResponse.stream:f,u,l)}else if(l.type==="structure"||l.type==="list"){var u=new a;e.data[o.payload]=u.parse(f,l)}else if(l.type==="binary"||l.isStreaming){e.data[o.payload]=f}else{e.data[o.payload]=l.toType(f)}}else{var h=e.data;s.extractData(e);e.data=i.merge(h,e.data)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},4382:(e,t,r)=>{var i=r(8738);var n=r(3067);var s=r(1331);function populateBody(e){var t=e.service.api.operations[e.operation].input;var r=new i.XML.Builder;var s=e.params;var o=t.payload;if(o){var a=t.members[o];s=s[o];if(s===undefined)return;if(a.type==="structure"){var u=a.name;e.httpRequest.body=r.toXML(s,a,u,true)}else{e.httpRequest.body=s}}else{e.httpRequest.body=r.toXML(s,t,t.name||t.shape||n.string.upperFirst(e.operation)+"Request")}}function buildRequest(e){s.buildRequest(e);if(["GET","HEAD"].indexOf(e.httpRequest.method)<0){populateBody(e)}}function extractError(e){s.extractError(e);var t;try{t=(new i.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}if(t.Errors)t=t.Errors;if(t.Error)t=t.Error;if(t.Code){e.error=n.error(new Error,{code:t.Code,message:t.Message})}else{e.error=n.error(new Error,{code:e.httpResponse.statusCode,message:null})}}function extractData(e){s.extractData(e);var t;var r=e.request;var o=e.httpResponse.body;var a=r.service.api.operations[r.operation];var u=a.output;var c=a.hasEventOutput;var l=u.payload;if(l){var f=u.members[l];if(f.isEventStream){t=new i.XML.Parser;e.data[l]=n.createEventStream(i.HttpClient.streamsApiVersion===2?e.httpResponse.stream:e.httpResponse.body,t,f)}else if(f.type==="structure"){t=new i.XML.Parser;e.data[l]=t.parse(o.toString(),f)}else if(f.type==="binary"||f.isStreaming){e.data[l]=o}else{e.data[l]=f.toType(o)}}else if(o.length>0){t=new i.XML.Parser;var h=t.parse(o.toString(),u);n.update(e.data,h)}}e.exports={buildRequest:buildRequest,extractError:extractError,extractData:extractData}},5261:(e,t,r)=>{var i=r(8738);function resolveMonitoringConfig(){var e={port:undefined,clientId:undefined,enabled:undefined,host:undefined};if(fromEnvironment(e)||fromConfigFile(e))return toJSType(e);return toJSType(e)}function fromEnvironment(e){e.port=e.port||process.env.AWS_CSM_PORT;e.enabled=e.enabled||process.env.AWS_CSM_ENABLED;e.clientId=e.clientId||process.env.AWS_CSM_CLIENT_ID;e.host=e.host||process.env.AWS_CSM_HOST;return e.port&&e.enabled&&e.clientId&&e.host||["false","0"].indexOf(e.enabled)>=0}function fromConfigFile(e){var t;try{var r=i.util.iniLoader.loadFrom({isConfig:true,filename:process.env[i.util.sharedConfigFileEnv]});var t=r[process.env.AWS_PROFILE||i.util.defaultProfile]}catch(e){return false}if(!t)return e;e.port=e.port||t.csm_port;e.enabled=e.enabled||t.csm_enabled;e.clientId=e.clientId||t.csm_client_id;e.host=e.host||t.csm_host;return e.port&&e.enabled&&e.clientId&&e.host}function toJSType(e){var t=["false","0",undefined];if(!e.enabled||t.indexOf(e.enabled.toLowerCase())>=0){e.enabled=false}else{e.enabled=true}e.port=e.port?parseInt(e.port,10):undefined;return e}e.exports=resolveMonitoringConfig},1453:(e,t,r)=>{var i=r(8738).util;var n=r(6200);var s=i.buffer.toBuffer;var o=1024*8;function Publisher(e){e=e||{};this.enabled=e.enabled||false;this.port=e.port||31e3;this.clientId=e.clientId||"";this.address=e.host||"127.0.0.1";if(this.clientId.length>255){this.clientId=this.clientId.substr(0,255)}this.messagesInFlight=0}Publisher.prototype.fieldsToTrim={UserAgent:256,SdkException:128,SdkExceptionMessage:512,AwsException:128,AwsExceptionMessage:512,FinalSdkException:128,FinalSdkExceptionMessage:512,FinalAwsException:128,FinalAwsExceptionMessage:512};Publisher.prototype.trimFields=function(e){var t=Object.keys(this.fieldsToTrim);for(var r=0,i=t.length;rs){e[n]=o.substr(0,s)}}}return e};Publisher.prototype.eventHandler=function(e){e.ClientId=this.clientId;this.trimFields(e);var t=s(JSON.stringify(e));if(!this.enabled||t.length>o){return}this.publishDatagram(t)};Publisher.prototype.publishDatagram=function(e){var t=this;var r=this.getClient();this.messagesInFlight++;this.client.send(e,0,e.length,this.port,this.address,function(e,r){if(--t.messagesInFlight<=0){t.destroyClient()}})};Publisher.prototype.getClient=function(){if(!this.client){this.client=n.createSocket("udp4")}return this.client};Publisher.prototype.destroyClient=function(){if(this.client){this.client.close();this.client=void 0}};e.exports={Publisher:Publisher}},8135:(e,t,r)=>{var i=r(3067);function QueryParamSerializer(){}QueryParamSerializer.prototype.serialize=function(e,t,r){serializeStructure("",e,t,r)};function ucfirst(e){if(e.isQueryName||e.api.protocol!=="ec2"){return e.name}else{return e.name[0].toUpperCase()+e.name.substr(1)}}function serializeStructure(e,t,r,n){i.each(r.members,function(r,i){var s=t[r];if(s===null||s===undefined)return;var o=ucfirst(i);o=e?e+"."+o:o;serializeMember(o,s,i,n)})}function serializeMap(e,t,r,n){var s=1;i.each(t,function(t,i){var o=r.flattened?".":".entry.";var a=o+s+++".";var u=a+(r.key.name||"key");var c=a+(r.value.name||"value");serializeMember(e+u,t,r.key,n);serializeMember(e+c,i,r.value,n)})}function serializeList(e,t,r,n){var s=r.member||{};if(t.length===0){n.call(this,e,null);return}i.arrayEach(t,function(t,i){var o="."+(i+1);if(r.api.protocol==="ec2"){o=o+""}else if(r.flattened){if(s.name){var a=e.split(".");a.pop();a.push(ucfirst(s));e=a.join(".")}}else{o="."+(s.name?s.name:"member")+o}serializeMember(e+o,t,s,n)})}function serializeMember(e,t,r,i){if(t===null||t===undefined)return;if(r.type==="structure"){serializeStructure(e,t,r,i)}else if(r.type==="list"){serializeList(e,t,r,i)}else if(r.type==="map"){serializeMap(e,t,r,i)}else{i(e,r.toWireFormat(t).toString())}}e.exports=QueryParamSerializer},6858:e=>{e.exports={now:function now(){var e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},8948:(e,t,r)=>{var i=r(3067);var n=r(9294);function generateRegionPrefix(e){if(!e)return null;var t=e.split("-");if(t.length<3)return null;return t.slice(0,t.length-2).join("-")+"-*"}function derivedKeys(e){var t=e.config.region;var r=generateRegionPrefix(t);var i=e.api.endpointPrefix;return[[t,i],[r,i],[t,"*"],[r,"*"],["*",i],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function applyConfig(e,t){i.each(t,function(t,r){if(t==="globalEndpoint")return;if(e.config[t]===undefined||e.config[t]===null){e.config[t]=r}})}function configureEndpoint(e){var t=derivedKeys(e);for(var r=0;r{var i=r(8738);var n=r(9681);var s=i.util.inherit;var o=i.util.domain;var a=r(3748);var u={success:1,error:1,complete:1};function isTerminalState(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}var c=new n;c.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=false;r.emit(r._asm.currentState,function(e){if(e){if(isTerminalState(r)){if(o&&r.domain instanceof o.Domain){e.domainEmitter=r;e.domain=r.domain;e.domainThrown=false;r.domain.emit("error",e)}else{throw e}}else{r.response.error=e;t(e)}}else{t(r.response.error)}})};this.addState("validate","build","error",e);this.addState("build","afterBuild","restart",e);this.addState("afterBuild","sign","restart",e);this.addState("sign","send","retry",e);this.addState("retry","afterRetry","afterRetry",e);this.addState("afterRetry","sign","error",e);this.addState("send","validateResponse","retry",e);this.addState("validateResponse","extractData","extractError",e);this.addState("extractError","extractData","retry",e);this.addState("extractData","success","retry",e);this.addState("restart","build","error",e);this.addState("success","complete","complete",e);this.addState("error","complete","complete",e);this.addState("complete",null,null,e)};c.setupStates();i.Request=s({constructor:function Request(e,t,r){var s=e.endpoint;var a=e.config.region;var u=e.config.customUserAgent;if(e.isGlobalEndpoint){if(e.signingRegion){a=e.signingRegion}else{a="us-east-1"}}this.domain=o&&o.active;this.service=e;this.operation=t;this.params=r||{};this.httpRequest=new i.HttpRequest(s,a);this.httpRequest.appendToUserAgent(u);this.startTime=e.getSkewCorrectedDate();this.response=new i.Response(this);this._asm=new n(c.states,"validate");this._haltHandlersOnError=false;i.SequentialExecutor.call(this);this.emit=this.emitEvent},send:function send(e){if(e){this.httpRequest.appendToUserAgent("callback");this.on("complete",function(t){e.call(t,t.error,t.data)})}this.runTo();return this.response},build:function build(e){return this.runTo("send",e)},runTo:function runTo(e,t){this._asm.runTo(e,t,this);return this},abort:function abort(){this.removeAllListeners("validateResponse");this.removeAllListeners("extractError");this.on("validateResponse",function addAbortedError(e){e.error=i.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:false})});if(this.httpRequest.stream&&!this.httpRequest.stream.didCallback){this.httpRequest.stream.abort();if(this.httpRequest._abortCallback){this.httpRequest._abortCallback()}else{this.removeAllListeners("send")}}return this},eachPage:function eachPage(e){e=i.util.fn.makeAsync(e,3);function wrappedCallback(t){e.call(t,t.error,t.data,function(r){if(r===false)return;if(t.hasNextPage()){t.nextPage().on("complete",wrappedCallback).send()}else{e.call(t,null,null,i.util.fn.noop)}})}this.on("complete",wrappedCallback).send()},eachItem:function eachItem(e){var t=this;function wrappedCallback(r,n){if(r)return e(r,null);if(n===null)return e(null,null);var s=t.service.paginationConfig(t.operation);var o=s.resultKey;if(Array.isArray(o))o=o[0];var u=a.search(n,o);var c=true;i.util.arrayEach(u,function(t){c=e(null,t);if(c===false){return i.util.abort}});return c}this.eachPage(wrappedCallback)},isPageable:function isPageable(){return this.service.paginationConfig(this.operation)?true:false},createReadStream:function createReadStream(){var e=i.util.stream;var t=this;var r=null;if(i.HttpClient.streamsApiVersion===2){r=new e.PassThrough;process.nextTick(function(){t.send()})}else{r=new e.Stream;r.readable=true;r.sent=false;r.on("newListener",function(e){if(!r.sent&&e==="data"){r.sent=true;process.nextTick(function(){t.send()})}})}this.on("error",function(e){r.emit("error",e)});this.on("httpHeaders",function streamHeaders(n,s,o){if(n<300){t.removeListener("httpData",i.EventListeners.Core.HTTP_DATA);t.removeListener("httpError",i.EventListeners.Core.HTTP_ERROR);t.on("httpError",function streamHttpError(e){o.error=e;o.error.retryable=false});var a=false;var u;if(t.httpRequest.method!=="HEAD"){u=parseInt(s["content-length"],10)}if(u!==undefined&&!isNaN(u)&&u>=0){a=true;var c=0}var l=function checkContentLengthAndEmit(){if(a&&c!==u){r.emit("error",i.util.error(new Error("Stream content length mismatch. Received "+c+" of "+u+" bytes."),{code:"StreamContentLengthMismatch"}))}else if(i.HttpClient.streamsApiVersion===2){r.end()}else{r.emit("end")}};var f=o.httpResponse.createUnbufferedStream();if(i.HttpClient.streamsApiVersion===2){if(a){var h=new e.PassThrough;h._write=function(t){if(t&&t.length){c+=t.length}return e.PassThrough.prototype._write.apply(this,arguments)};h.on("end",l);r.on("error",function(e){a=false;f.unpipe(h);h.emit("end");h.end()});f.pipe(h).pipe(r,{end:false})}else{f.pipe(r)}}else{if(a){f.on("data",function(e){if(e&&e.length){c+=e.length}})}f.on("data",function(e){r.emit("data",e)});f.on("end",l)}f.on("error",function(e){a=false;r.emit("error",e)})}});return r},emitEvent:function emit(e,t,r){if(typeof t==="function"){r=t;t=null}if(!r)r=function(){};if(!t)t=this.eventParameters(e,this.response);var n=i.SequentialExecutor.prototype.emit;n.call(this,e,t,function(e){if(e)this.response.error=e;r.call(this,e)})},eventParameters:function eventParameters(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function presign(e,t){if(!t&&typeof e==="function"){t=e;e=null}return(new i.Signers.Presign).sign(this.toGet(),e,t)},isPresigned:function isPresigned(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function toUnauthenticated(){this._unAuthenticated=true;this.removeListener("validate",i.EventListeners.Core.VALIDATE_CREDENTIALS);this.removeListener("sign",i.EventListeners.Core.SIGN);return this},toGet:function toGet(){if(this.service.api.protocol==="query"||this.service.api.protocol==="ec2"){this.removeListener("build",this.buildAsGet);this.addListener("build",this.buildAsGet)}return this},buildAsGet:function buildAsGet(e){e.httpRequest.method="GET";e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body;e.httpRequest.body="";delete e.httpRequest.headers["Content-Length"];delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function haltHandlersOnError(){this._haltHandlersOnError=true}});i.Request.addPromisesToClass=function addPromisesToClass(e){this.prototype.promise=function promise(){var t=this;this.httpRequest.appendToUserAgent("promise");return new e(function(e,r){t.on("complete",function(t){if(t.error){r(t.error)}else{e(Object.defineProperty(t.data||{},"$response",{value:t}))}});t.runTo()})}};i.Request.deletePromisesFromClass=function deletePromisesFromClass(){delete this.prototype.promise};i.util.addPromises(i.Request);i.util.mixin(i.Request,i.SequentialExecutor)},6532:(e,t,r)=>{var i=r(8738);var n=i.util.inherit;var s=r(3748);function CHECK_ACCEPTORS(e){var t=e.request._waiter;var r=t.config.acceptors;var i=false;var n="retry";r.forEach(function(r){if(!i){var s=t.matchers[r.matcher];if(s&&s(e,r.expected,r.argument)){i=true;n=r.state}}});if(!i&&e.error)n="failure";if(n==="success"){t.setSuccess(e)}else{t.setError(e,n==="retry")}}i.ResourceWaiter=n({constructor:function constructor(e,t){this.service=e;this.state=t;this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var i=s.search(e.data,r)}catch(e){return false}return s.strictDeepEqual(i,t)},pathAll:function(e,t,r){try{var i=s.search(e.data,r)}catch(e){return false}if(!Array.isArray(i))i=[i];var n=i.length;if(!n)return false;for(var o=0;o{var i=r(8738);var n=i.util.inherit;var s=r(3748);i.Response=n({constructor:function Response(e){this.request=e;this.data=null;this.error=null;this.retryCount=0;this.redirectCount=0;this.httpResponse=new i.HttpResponse;if(e){this.maxRetries=e.service.numRetries();this.maxRedirects=e.service.config.maxRedirects}},nextPage:function nextPage(e){var t;var r=this.request.service;var n=this.request.operation;try{t=r.paginationConfig(n,true)}catch(e){this.error=e}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var s=i.util.copy(this.request.params);if(!this.nextPageTokens){return e?e(null,null):null}else{var o=t.inputToken;if(typeof o==="string")o=[o];for(var a=0;a{var i=r(8738);i.SequentialExecutor=i.util.inherit({constructor:function SequentialExecutor(){this._events={}},listeners:function listeners(e){return this._events[e]?this._events[e].slice(0):[]},on:function on(e,t,r){if(this._events[e]){r?this._events[e].unshift(t):this._events[e].push(t)}else{this._events[e]=[t]}return this},onAsync:function onAsync(e,t,r){t._isAsync=true;return this.on(e,t,r)},removeListener:function removeListener(e,t){var r=this._events[e];if(r){var i=r.length;var n=-1;for(var s=0;s-1){r.splice(n,1)}}return this},removeAllListeners:function removeAllListeners(e){if(e){delete this._events[e]}else{this._events={}}return this},emit:function emit(e,t,r){if(!r)r=function(){};var i=this.listeners(e);var n=i.length;this.callListeners(i,t,r);return n>0},callListeners:function callListeners(e,t,r,n){var s=this;var o=n||null;function callNextListener(n){if(n){o=i.util.error(o||new Error,n);if(s._haltHandlersOnError){return r.call(s,o)}}s.callListeners(e,t,r,o)}while(e.length>0){var a=e.shift();if(a._isAsync){a.apply(s,t.concat([callNextListener]));return}else{try{a.apply(s,t)}catch(e){o=i.util.error(o||new Error,e)}if(o&&s._haltHandlersOnError){r.call(s,o);return}}}r.call(s,o)},addListeners:function addListeners(e){var t=this;if(e._events)e=e._events;i.util.each(e,function(e,r){if(typeof r==="function")r=[r];i.util.arrayEach(r,function(r){t.on(e,r)})});return t},addNamedListener:function addNamedListener(e,t,r,i){this[e]=r;this.addListener(t,r,i);return this},addNamedAsyncListener:function addNamedAsyncListener(e,t,r,i){r._isAsync=true;return this.addNamedListener(e,t,r,i)},addNamedListeners:function addNamedListeners(e){var t=this;e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)});return this}});i.SequentialExecutor.prototype.addListener=i.SequentialExecutor.prototype.on;e.exports=i.SequentialExecutor},7119:(e,t,r)=>{var i=r(8738);var n=r(9541);var s=r(8948);var o=i.util.inherit;var a=0;i.Service=o({constructor:function Service(e){if(!this.loadServiceClass){throw i.util.error(new Error,"Service must be constructed with `new' operator")}var t=this.loadServiceClass(e||{});if(t){var r=i.util.copy(e);var n=new t(e);Object.defineProperty(n,"_originalConfig",{get:function(){return r},enumerable:false,configurable:true});n._clientId=++a;return n}this.initialize(e)},initialize:function initialize(e){var t=i.config[this.serviceIdentifier];this.config=new i.Config(i.config);if(t)this.config.update(t,true);if(e)this.config.update(e,true);this.validateService();if(!this.config.endpoint)s.configureEndpoint(this);this.config.endpoint=this.endpointFromTemplate(this.config.endpoint);this.setEndpoint(this.config.endpoint);i.SequentialExecutor.call(this);i.Service.addDefaultMonitoringListeners(this);if((this.config.clientSideMonitoring||i.Service._clientSideMonitoring)&&this.publisher){var r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function PUBLISH_API_CALL(e){process.nextTick(function(){r.eventHandler(e)})});this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function PUBLISH_API_ATTEMPT(e){process.nextTick(function(){r.eventHandler(e)})})}},validateService:function validateService(){},loadServiceClass:function loadServiceClass(e){var t=e;if(!i.util.isEmpty(this.api)){return null}else if(t.apiConfig){return i.Service.defineServiceApi(this.constructor,t.apiConfig)}else if(!this.constructor.services){return null}else{t=new i.Config(i.config);t.update(e,true);var r=t.apiVersions[this.constructor.serviceIdentifier];r=r||t.apiVersion;return this.getLatestServiceClass(r)}},getLatestServiceClass:function getLatestServiceClass(e){e=this.getLatestServiceVersion(e);if(this.constructor.services[e]===null){i.Service.defineServiceApi(this.constructor,e)}return this.constructor.services[e]},getLatestServiceVersion:function getLatestServiceVersion(e){if(!this.constructor.services||this.constructor.services.length===0){throw new Error("No services defined on "+this.constructor.serviceIdentifier)}if(!e){e="latest"}else if(i.util.isType(e,Date)){e=i.util.date.iso8601(e).split("T")[0]}if(Object.hasOwnProperty(this.constructor.services,e)){return e}var t=Object.keys(this.constructor.services).sort();var r=null;for(var n=t.length-1;n>=0;n--){if(t[n][t[n].length-1]!=="*"){r=t[n]}if(t[n].substr(0,10)<=e){return r}}throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function customizeRequests(e){if(!e){this.customRequestHandler=null}else if(typeof e==="function"){this.customRequestHandler=e}else{throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests")}},makeRequest:function makeRequest(e,t,r){if(typeof t==="function"){r=t;t=null}t=t||{};if(this.config.params){var n=this.api.operations[e];if(n){t=i.util.copy(t);i.util.each(this.config.params,function(e,r){if(n.input.members[e]){if(t[e]===undefined||t[e]===null){t[e]=r}}})}}var s=new i.Request(this,e,t);this.addAllRequestListeners(s);this.attachMonitoringEmitter(s);if(r)s.send(r);return s},makeUnauthenticatedRequest:function makeUnauthenticatedRequest(e,t,r){if(typeof t==="function"){r=t;t={}}var i=this.makeRequest(e,t).toUnauthenticated();return r?i.send(r):i},waitFor:function waitFor(e,t,r){var n=new i.ResourceWaiter(this,e);return n.wait(t,r)},addAllRequestListeners:function addAllRequestListeners(e){var t=[i.events,i.EventListeners.Core,this.serviceInterface(),i.EventListeners.CorePost];for(var r=0;r299){if(n.code)r.FinalAwsException=n.code;if(n.message)r.FinalAwsExceptionMessage=n.message}else{if(n.code||n.name)r.FinalSdkException=n.code||n.name;if(n.message)r.FinalSdkExceptionMessage=n.message}}return r},apiAttemptEvent:function apiAttemptEvent(e){var t=e.service.api.operations[e.operation];var r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()};var i=e.response;if(i.httpResponse.statusCode){r.HttpStatusCode=i.httpResponse.statusCode}if(!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId){r.AccessKey=e.service.config.credentials.accessKeyId}if(!i.httpResponse.headers)return r;if(e.httpRequest.headers["x-amz-security-token"]){r.SessionToken=e.httpRequest.headers["x-amz-security-token"]}if(i.httpResponse.headers["x-amzn-requestid"]){r.XAmznRequestId=i.httpResponse.headers["x-amzn-requestid"]}if(i.httpResponse.headers["x-amz-request-id"]){r.XAmzRequestId=i.httpResponse.headers["x-amz-request-id"]}if(i.httpResponse.headers["x-amz-id-2"]){r.XAmzId2=i.httpResponse.headers["x-amz-id-2"]}return r},attemptFailEvent:function attemptFailEvent(e){var t=this.apiAttemptEvent(e);var r=e.response;var i=r.error;if(r.httpResponse.statusCode>299){if(i.code)t.AwsException=i.code;if(i.message)t.AwsExceptionMessage=i.message}else{if(i.code||i.name)t.SdkException=i.code||i.name;if(i.message)t.SdkExceptionMessage=i.message}return t},attachMonitoringEmitter:function attachMonitoringEmitter(e){var t;var r;var n;var s;var o=0;var a;var u;var c=this;var l=true;e.on("validate",function(){s=i.util.realClock.now();u=Date.now()},l);e.on("sign",function(){r=i.util.realClock.now();t=Date.now();a=e.httpRequest.region;o++},l);e.on("validateResponse",function(){n=Math.round(i.util.realClock.now()-r)});e.addNamedListener("API_CALL_ATTEMPT","success",function API_CALL_ATTEMPT(){var r=c.apiAttemptEvent(e);r.Timestamp=t;r.AttemptLatency=n>=0?n:0;r.Region=a;c.emit("apiCallAttempt",[r])});e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function API_CALL_ATTEMPT_RETRY(){var s=c.attemptFailEvent(e);s.Timestamp=t;n=n||Math.round(i.util.realClock.now()-r);s.AttemptLatency=n>=0?n:0;s.Region=a;c.emit("apiCallAttempt",[s])});e.addNamedListener("API_CALL","complete",function API_CALL(){var t=c.apiCallEvent(e);t.AttemptCount=o;if(t.AttemptCount<=0)return;t.Timestamp=u;var r=Math.round(i.util.realClock.now()-s);t.Latency=r>=0?r:0;var n=e.response;if(n.error&&n.error.retryable&&typeof n.retryCount==="number"&&typeof n.maxRetries==="number"&&n.retryCount>=n.maxRetries){t.MaxRetriesExceeded=1}c.emit("apiCall",[t])})},setupRequestListeners:function setupRequestListeners(e){},getSignerClass:function getSignerClass(e){var t;var r=null;var n="";if(e){var s=e.service.api.operations||{};r=s[e.operation]||null;n=r?r.authtype:""}if(this.config.signatureVersion){t=this.config.signatureVersion}else if(n==="v4"||n==="v4-unsigned-body"){t="v4"}else{t=this.api.signatureVersion}return i.Signers.RequestSigner.getVersion(t)},serviceInterface:function serviceInterface(){switch(this.api.protocol){case"ec2":return i.EventListeners.Query;case"query":return i.EventListeners.Query;case"json":return i.EventListeners.Json;case"rest-json":return i.EventListeners.RestJson;case"rest-xml":return i.EventListeners.RestXml}if(this.api.protocol){throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")}},successfulResponse:function successfulResponse(e){return e.httpResponse.statusCode<300},numRetries:function numRetries(){if(this.config.maxRetries!==undefined){return this.config.maxRetries}else{return this.defaultRetryCount}},retryDelays:function retryDelays(e,t){return i.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function retryableError(e){if(this.timeoutError(e))return true;if(this.networkingError(e))return true;if(this.expiredCredentialsError(e))return true;if(this.throttledError(e))return true;if(e.statusCode>=500)return true;return false},networkingError:function networkingError(e){return e.code==="NetworkingError"},timeoutError:function timeoutError(e){return e.code==="TimeoutError"},expiredCredentialsError:function expiredCredentialsError(e){return e.code==="ExpiredTokenException"},clockSkewError:function clockSkewError(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return true;default:return false}},getSkewCorrectedDate:function getSkewCorrectedDate(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function applyClockOffset(e){if(e){this.config.systemClockOffset=e-Date.now()}},isClockSkewed:function isClockSkewed(e){if(e){return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5}},throttledError:function throttledError(e){if(e.statusCode===429)return true;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return true;default:return false}},endpointFromTemplate:function endpointFromTemplate(e){if(typeof e!=="string")return e;var t=e;t=t.replace(/\{service\}/g,this.api.endpointPrefix);t=t.replace(/\{region\}/g,this.config.region);t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http");return t},setEndpoint:function setEndpoint(e){this.endpoint=new i.Endpoint(e,this.config)},paginationConfig:function paginationConfig(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var n=new Error;throw i.util.error(n,"No pagination configuration for "+e)}return null}return r}});i.util.update(i.Service,{defineMethods:function defineMethods(e){i.util.each(e.prototype.api.operations,function iterator(t){if(e.prototype[t])return;var r=e.prototype.api.operations[t];if(r.authtype==="none"){e.prototype[t]=function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}}else{e.prototype[t]=function(e,r){return this.makeRequest(t,e,r)}}})},defineService:function defineService(e,t,r){i.Service._serviceMap[e]=true;if(!Array.isArray(t)){r=t;t=[]}var n=o(i.Service,r||{});if(typeof e==="string"){i.Service.addVersions(n,t);var s=n.serviceIdentifier||e;n.serviceIdentifier=s}else{n.prototype.api=e;i.Service.defineMethods(n)}i.SequentialExecutor.call(this.prototype);if(!this.prototype.publisher&&i.util.clientSideMonitoring){var a=i.util.clientSideMonitoring.Publisher;var u=i.util.clientSideMonitoring.configProvider;var c=u();this.prototype.publisher=new a(c);if(c.enabled){i.Service._clientSideMonitoring=true}}i.SequentialExecutor.call(n.prototype);i.Service.addDefaultMonitoringListeners(n.prototype);return n},addVersions:function addVersions(e,t){if(!Array.isArray(t))t=[t];e.services=e.services||{};for(var r=0;r{var i=r(8738);i.util.update(i.CognitoIdentity.prototype,{getOpenIdToken:function getOpenIdToken(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function getId(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function getCredentialsForIdentity(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},7046:(e,t,r)=>{var i=r(8738);var n=r(3226);var s="AWS_STS_REGIONAL_ENDPOINTS";var o="sts_regional_endpoints";i.util.update(i.STS.prototype,{credentialsFrom:function credentialsFrom(e,t){if(!e)return null;if(!t)t=new i.TemporaryCredentials;t.expired=false;t.accessKeyId=e.Credentials.AccessKeyId;t.secretAccessKey=e.Credentials.SecretAccessKey;t.sessionToken=e.Credentials.SessionToken;t.expireTime=e.Credentials.Expiration;return t},assumeRoleWithWebIdentity:function assumeRoleWithWebIdentity(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function assumeRoleWithSAML(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function setupRequestListeners(e){e.addListener("validate",this.optInRegionalEndpoint,true)},optInRegionalEndpoint:function optInRegionalEndpoint(e){var t=e.service;var r=t.config;r.stsRegionalEndpoints=n(t._originalConfig,{env:s,sharedConfig:o,clientConfig:"stsRegionalEndpoints"});if(r.stsRegionalEndpoints==="regional"&&t.isGlobalEndpoint){if(!r.region){throw i.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}var a=r.endpoint.indexOf(".amazonaws.com");var u=r.endpoint.substring(0,a)+"."+r.region+r.endpoint.substring(a);e.httpRequest.updateEndpoint(u);e.httpRequest.region=r.region}}})},6674:(e,t,r)=>{var i=r(2733).IniLoader;e.exports.b=new i},2733:(e,t,r)=>{var i=r(8738);var n=r(2087);var s=r(5622);function parseFile(e,t){var r=i.util.ini.parse(i.util.readFileSync(e));var n={};Object.keys(r).forEach(function(e){var i=r[e];e=t?e.replace(/^profile\s/,""):e;Object.defineProperty(n,e,{value:i,enumerable:true})});return n}i.IniLoader=i.util.inherit({constructor:function IniLoader(){this.resolvedProfiles={}},clearCachedFiles:function clearCachedFiles(){this.resolvedProfiles={}},loadFrom:function loadFrom(e){e=e||{};var t=e.isConfig===true;var r=e.filename||this.getDefaultFilePath(t);if(!this.resolvedProfiles[r]){var i=this.parseFile(r,t);Object.defineProperty(this.resolvedProfiles,r,{value:i})}return this.resolvedProfiles[r]},parseFile:parseFile,getDefaultFilePath:function getDefaultFilePath(e){return s.join(this.getHomeDir(),".aws",e?"config":"credentials")},getHomeDir:function getHomeDir(){var e=process.env;var t=e.HOME||e.USERPROFILE||(e.HOMEPATH?(e.HOMEDRIVE||"C:/")+e.HOMEPATH:null);if(t){return t}if(typeof n.homedir==="function"){return n.homedir()}throw i.util.error(new Error("Cannot load credentials, HOME path not set"))}});var o=i.IniLoader;e.exports={IniLoader:o,parseFile:parseFile}},343:(e,t,r)=>{var i=r(8738);var n=i.util.inherit;var s="presigned-expires";function signedUrlBuilder(e){var t=e.httpRequest.headers[s];var r=e.service.getSignerClass(e);delete e.httpRequest.headers["User-Agent"];delete e.httpRequest.headers["X-Amz-User-Agent"];if(r===i.Signers.V4){if(t>604800){var n="Presigning does not support expiry time greater "+"than a week with SigV4 signing.";throw i.util.error(new Error,{code:"InvalidExpiryTime",message:n,retryable:false})}e.httpRequest.headers[s]=t}else if(r===i.Signers.S3){var o=e.service?e.service.getSkewCorrectedDate():i.util.date.getDate();e.httpRequest.headers[s]=parseInt(i.util.date.unixTimestamp(o)+t,10).toString()}else{throw i.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:false})}}function signedUrlSigner(e){var t=e.httpRequest.endpoint;var r=i.util.urlParse(e.httpRequest.path);var n={};if(r.search){n=i.util.queryStringParse(r.search.substr(1))}var o=e.httpRequest.headers["Authorization"].split(" ");if(o[0]==="AWS"){o=o[1].split(":");n["Signature"]=o.pop();n["AWSAccessKeyId"]=o.join(":");i.util.each(e.httpRequest.headers,function(e,t){if(e===s)e="Expires";if(e.indexOf("x-amz-meta-")===0){delete n[e];e=e.toLowerCase()}n[e]=t});delete e.httpRequest.headers[s];delete n["Authorization"];delete n["Host"]}else if(o[0]==="AWS4-HMAC-SHA256"){o.shift();var a=o.join(" ");var u=a.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=u;delete n["Expires"]}t.pathname=r.pathname;t.search=i.util.queryParamsToString(n)}i.Signers.Presign=n({sign:function sign(e,t,r){e.httpRequest.headers[s]=t||3600;e.on("build",signedUrlBuilder);e.on("sign",signedUrlSigner);e.removeListener("afterBuild",i.EventListeners.Core.SET_CONTENT_LENGTH);e.removeListener("afterBuild",i.EventListeners.Core.COMPUTE_SHA256);e.emit("beforePresign",[e]);if(r){e.build(function(){if(this.response.error)r(this.response.error);else{r(null,i.util.urlFormat(e.httpRequest.endpoint))}})}else{e.build();if(e.response.error)throw e.response.error;return i.util.urlFormat(e.httpRequest.endpoint)}}});e.exports=i.Signers.Presign},3728:(e,t,r)=>{var i=r(8738);var n=i.util.inherit;i.Signers.RequestSigner=n({constructor:function RequestSigner(e){this.request=e},setServiceClientId:function setServiceClientId(e){this.serviceClientId=e},getServiceClientId:function getServiceClientId(){return this.serviceClientId}});i.Signers.RequestSigner.getVersion=function getVersion(e){switch(e){case"v2":return i.Signers.V2;case"v3":return i.Signers.V3;case"s3v4":return i.Signers.V4;case"v4":return i.Signers.V4;case"s3":return i.Signers.S3;case"v3https":return i.Signers.V3Https}throw new Error("Unknown signing version "+e)};r(6576);r(7406);r(8908);r(1794);r(4779);r(343)},4779:(e,t,r)=>{var i=r(8738);var n=i.util.inherit;i.Signers.S3=n(i.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function addAuthorization(e,t){if(!this.request.headers["presigned-expires"]){this.request.headers["X-Amz-Date"]=i.util.date.rfc822(t)}if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}var r=this.sign(e.secretAccessKey,this.stringToSign());var n="AWS "+e.accessKeyId+":"+r;this.request.headers["Authorization"]=n},stringToSign:function stringToSign(){var e=this.request;var t=[];t.push(e.method);t.push(e.headers["Content-MD5"]||"");t.push(e.headers["Content-Type"]||"");t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();if(r)t.push(r);t.push(this.canonicalizedResource());return t.join("\n")},canonicalizedAmzHeaders:function canonicalizedAmzHeaders(){var e=[];i.util.each(this.request.headers,function(t){if(t.match(/^x-amz-/i))e.push(t)});e.sort(function(e,t){return e.toLowerCase(){var i=r(8738);var n=i.util.inherit;i.Signers.V2=n(i.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){if(!t)t=i.util.date.getDate();var r=this.request;r.params.Timestamp=i.util.date.iso8601(t);r.params.SignatureVersion="2";r.params.SignatureMethod="HmacSHA256";r.params.AWSAccessKeyId=e.accessKeyId;if(e.sessionToken){r.params.SecurityToken=e.sessionToken}delete r.params.Signature;r.params.Signature=this.signature(e);r.body=i.util.queryParamsToString(r.params);r.headers["Content-Length"]=r.body.length},signature:function signature(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push(this.request.endpoint.host.toLowerCase());e.push(this.request.pathname());e.push(i.util.queryParamsToString(this.request.params));return e.join("\n")}});e.exports=i.Signers.V2},7406:(e,t,r)=>{var i=r(8738);var n=i.util.inherit;i.Signers.V3=n(i.Signers.RequestSigner,{addAuthorization:function addAuthorization(e,t){var r=i.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function authorization(e){return"AWS3 "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"SignedHeaders="+this.signedHeaders()+","+"Signature="+this.signature(e)},signedHeaders:function signedHeaders(){var e=[];i.util.arrayEach(this.headersToSign(),function iterator(t){e.push(t.toLowerCase())});return e.sort().join(";")},canonicalHeaders:function canonicalHeaders(){var e=this.request.headers;var t=[];i.util.arrayEach(this.headersToSign(),function iterator(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())});return t.sort().join("\n")+"\n"},headersToSign:function headersToSign(){var e=[];i.util.each(this.request.headers,function iterator(t){if(t==="Host"||t==="Content-Encoding"||t.match(/^X-Amz/i)){e.push(t)}});return e},signature:function signature(e){return i.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function stringToSign(){var e=[];e.push(this.request.method);e.push("/");e.push("");e.push(this.canonicalHeaders());e.push(this.request.body);return i.util.crypto.sha256(e.join("\n"))}});e.exports=i.Signers.V3},8908:(e,t,r)=>{var i=r(8738);var n=i.util.inherit;r(7406);i.Signers.V3Https=n(i.Signers.V3,{authorization:function authorization(e){return"AWS3-HTTPS "+"AWSAccessKeyId="+e.accessKeyId+","+"Algorithm=HmacSHA256,"+"Signature="+this.signature(e)},stringToSign:function stringToSign(){return this.request.headers["X-Amz-Date"]}});e.exports=i.Signers.V3Https},1794:(e,t,r)=>{var i=r(8738);var n=r(2275);var s=i.util.inherit;var o="presigned-expires";i.Signers.V4=s(i.Signers.RequestSigner,{constructor:function V4(e,t,r){i.Signers.RequestSigner.call(this,e);this.serviceName=t;r=r||{};this.signatureCache=typeof r.signatureCache==="boolean"?r.signatureCache:true;this.operation=r.operation;this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function addAuthorization(e,t){var r=i.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");if(this.isPresigned()){this.updateForPresigned(e,r)}else{this.addHeaders(e,r)}this.request.headers["Authorization"]=this.authorization(e,r)},addHeaders:function addHeaders(e,t){this.request.headers["X-Amz-Date"]=t;if(e.sessionToken){this.request.headers["x-amz-security-token"]=e.sessionToken}},updateForPresigned:function updateForPresigned(e,t){var r=this.credentialString(t);var n={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[o],"X-Amz-SignedHeaders":this.signedHeaders()};if(e.sessionToken){n["X-Amz-Security-Token"]=e.sessionToken}if(this.request.headers["Content-Type"]){n["Content-Type"]=this.request.headers["Content-Type"]}if(this.request.headers["Content-MD5"]){n["Content-MD5"]=this.request.headers["Content-MD5"]}if(this.request.headers["Cache-Control"]){n["Cache-Control"]=this.request.headers["Cache-Control"]}i.util.each.call(this,this.request.headers,function(e,t){if(e===o)return;if(this.isSignableHeader(e)){var r=e.toLowerCase();if(r.indexOf("x-amz-meta-")===0){n[r]=t}else if(r.indexOf("x-amz-")===0){n[e]=t}}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+i.util.queryParamsToString(n)},authorization:function authorization(e,t){var r=[];var i=this.credentialString(t);r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+i);r.push("SignedHeaders="+this.signedHeaders());r.push("Signature="+this.signature(e,t));return r.join(", ")},signature:function signature(e,t){var r=n.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return i.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function stringToSign(e){var t=[];t.push("AWS4-HMAC-SHA256");t.push(e);t.push(this.credentialString(e));t.push(this.hexEncodedHash(this.canonicalString()));return t.join("\n")},canonicalString:function canonicalString(){var e=[],t=this.request.pathname();if(this.serviceName!=="s3"&&this.signatureVersion!=="s3v4")t=i.util.uriEscapePath(t);e.push(this.request.method);e.push(t);e.push(this.request.search());e.push(this.canonicalHeaders()+"\n");e.push(this.signedHeaders());e.push(this.hexEncodedBodyHash());return e.join("\n")},canonicalHeaders:function canonicalHeaders(){var e=[];i.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])});e.sort(function(e,t){return e[0].toLowerCase(){var i=r(8738);var n={};var s=[];var o=50;var a="aws4_request";e.exports={createScope:function createScope(e,t,r){return[e.substr(0,8),t,r,a].join("/")},getSigningKey:function getSigningKey(e,t,r,u,c){var l=i.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64");var f=[l,t,r,u].join("_");c=c!==false;if(c&&f in n){return n[f]}var h=i.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer");var p=i.util.crypto.hmac(h,r,"buffer");var d=i.util.crypto.hmac(p,u,"buffer");var v=i.util.crypto.hmac(d,a,"buffer");if(c){n[f]=v;s.push(f);if(s.length>o){delete n[s.shift()]}}return v},emptyCache:function emptyCache(){n={};s=[]}}},9681:e=>{function AcceptorStateMachine(e,t){this.currentState=t||null;this.states=e||{}}AcceptorStateMachine.prototype.runTo=function runTo(e,t,r,i){if(typeof e==="function"){i=r;r=t;t=e;e=null}var n=this;var s=n.states[n.currentState];s.fn.call(r||n,i,function(i){if(i){if(s.fail)n.currentState=s.fail;else return t?t.call(r,i):null}else{if(s.accept)n.currentState=s.accept;else return t?t.call(r):null}if(n.currentState===e){return t?t.call(r,i):null}n.runTo(e,t,r,i)})};AcceptorStateMachine.prototype.addState=function addState(e,t,r,i){if(typeof t==="function"){i=t;t=null;r=null}else if(typeof r==="function"){i=r;r=null}if(!this.currentState)this.currentState=e;this.states[e]={accept:t,fail:r,fn:i};return this};e.exports=AcceptorStateMachine},3067:(e,t,r)=>{var i;var n={environment:"nodejs",engine:function engine(){if(n.isBrowser()&&typeof navigator!=="undefined"){return navigator.userAgent}else{var engine=process.platform+"/"+process.version;if(process.env.AWS_EXECUTION_ENV){engine+=" exec-env/"+process.env.AWS_EXECUTION_ENV}return engine}},userAgent:function userAgent(){var e=n.environment;var t="aws-sdk-"+e+"/"+r(8738).VERSION;if(e==="nodejs")t+=" "+n.engine();return t},uriEscape:function uriEscape(e){var t=encodeURIComponent(e);t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape);t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()});return t},uriEscapePath:function uriEscapePath(e){var t=[];n.arrayEach(e.split("/"),function(e){t.push(n.uriEscape(e))});return t.join("/")},urlParse:function urlParse(e){return n.url.parse(e)},urlFormat:function urlFormat(e){return n.url.format(e)},queryStringParse:function queryStringParse(e){return n.querystring.parse(e)},queryParamsToString:function queryParamsToString(e){var t=[];var r=n.uriEscape;var i=Object.keys(e).sort();n.arrayEach(i,function(i){var s=e[i];var o=r(i);var a=o+"=";if(Array.isArray(s)){var u=[];n.arrayEach(s,function(e){u.push(r(e))});a=o+"="+u.sort().join("&"+o+"=")}else if(s!==undefined&&s!==null){a=o+"="+r(s)}t.push(a)});return t.join("&")},readFileSync:function readFileSync(e){if(n.isBrowser())return null;return r(5747).readFileSync(e,"utf-8")},base64:{encode:function encode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 encode number "+e))}if(e===null||typeof e==="undefined"){return e}var t=n.buffer.toBuffer(e);return t.toString("base64")},decode:function decode64(e){if(typeof e==="number"){throw n.error(new Error("Cannot base64 decode number "+e))}if(e===null||typeof e==="undefined"){return e}return n.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return typeof n.Buffer.from==="function"&&n.Buffer.from!==Uint8Array.from?n.Buffer.from(e,t):new n.Buffer(e,t)},alloc:function(e,t,r){if(typeof e!=="number"){throw new Error("size passed to alloc must be a number.")}if(typeof n.Buffer.alloc==="function"){return n.Buffer.alloc(e,t,r)}else{var i=new n.Buffer(e);if(t!==undefined&&typeof i.fill==="function"){i.fill(t,undefined,undefined,r)}return i}},toStream:function toStream(e){if(!n.Buffer.isBuffer(e))e=n.buffer.toBuffer(e);var t=new n.stream.Readable;var r=0;t._read=function(i){if(r>=e.length)return t.push(null);var n=r+i;if(n>e.length)n=e.length;t.push(e.slice(r,n));r=n};return t},concat:function(e){var t=0,r=0,i=null,s;for(s=0;s>>8^t[(r^s)&255]}return(r^-1)>>>0},hmac:function hmac(e,t,r,i){if(!r)r="binary";if(r==="buffer"){r=undefined}if(!i)i="sha256";if(typeof t==="string")t=n.buffer.toBuffer(t);return n.crypto.lib.createHmac(i,e).update(t).digest(r)},md5:function md5(e,t,r){return n.crypto.hash("md5",e,t,r)},sha256:function sha256(e,t,r){return n.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,i){var s=n.crypto.createHash(e);if(!r){r="binary"}if(r==="buffer"){r=undefined}if(typeof t==="string")t=n.buffer.toBuffer(t);var o=n.arraySliceFn(t);var a=n.Buffer.isBuffer(t);if(n.isBrowser()&&typeof ArrayBuffer!=="undefined"&&t&&t.buffer instanceof ArrayBuffer)a=true;if(i&&typeof t==="object"&&typeof t.on==="function"&&!a){t.on("data",function(e){s.update(e)});t.on("error",function(e){i(e)});t.on("end",function(){i(null,s.digest(r))})}else if(i&&o&&!a&&typeof FileReader!=="undefined"){var u=0,c=1024*512;var l=new FileReader;l.onerror=function(){i(new Error("Failed to read data."))};l.onload=function(){var e=new n.Buffer(new Uint8Array(l.result));s.update(e);u+=e.length;l._continueReading()};l._continueReading=function(){if(u>=t.size){i(null,s.digest(r));return}var e=u+c;if(e>t.size)e=t.size;l.readAsArrayBuffer(o.call(t,u,e))};l._continueReading()}else{if(n.isBrowser()&&typeof t==="object"&&!a){t=new n.Buffer(new Uint8Array(t))}var f=s.update(t).digest(r);if(i)i(null,f);return f}},toHex:function toHex(e){var t=[];for(var r=0;r=3e5,false);return i.config.isClockSkewed}},applyClockOffset:function applyClockOffset(e){if(e)i.config.systemClockOffset=e-(new Date).getTime()},extractRequestId:function extractRequestId(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];if(!t&&e.data&&e.data.ResponseMetadata){t=e.data.ResponseMetadata.RequestId}if(t){e.requestId=t}if(e.error){e.error.requestId=t}},addPromises:function addPromises(e,t){var r=false;if(t===undefined&&i&&i.config){t=i.config.getPromisesDependency()}if(t===undefined&&typeof Promise!=="undefined"){t=Promise}if(typeof t!=="function")r=true;if(!Array.isArray(e))e=[e];for(var n=0;n=0){a++;setTimeout(c,s+(e.retryAfter||0))}else{r(e)}};var c=function(){var t="";s.handleRequest(e,o,function(e){e.on("data",function(e){t+=e.toString()});e.on("end",function(){var i=e.statusCode;if(i<300){r(null,t)}else{var s=parseInt(e.headers["retry-after"],10)*1e3||0;var o=n.error(new Error,{statusCode:i,retryable:i>=500||i===429});if(s&&o.retryable)o.retryAfter=s;u(o)}})},u)};i.util.defer(c)},uuid:{v4:function uuidV4(){return r(6355).v4()}},convertPayloadToString:function convertPayloadToString(e){var t=e.request;var r=t.operation;var i=t.service.api.operations[r].output||{};if(i.payload&&e.data[i.payload]){e.data[i.payload]=e.data[i.payload].toString()}},defer:function defer(e){if(typeof process==="object"&&typeof process.nextTick==="function"){process.nextTick(e)}else if(typeof setImmediate==="function"){setImmediate(e)}else{setTimeout(e,0)}},getRequestPayloadShape:function getRequestPayloadShape(e){var t=e.service.api.operations;if(!t)return undefined;var r=(t||{})[e.operation];if(!r||!r.input||!r.input.payload)return undefined;return r.input.members[r.input.payload]},getProfilesFromSharedConfig:function getProfilesFromSharedConfig(e,t){var r={};var i={};if(process.env[n.configOptInEnv]){var i=e.loadFrom({isConfig:true,filename:process.env[n.sharedConfigFileEnv]})}var s=e.loadFrom({filename:t||process.env[n.configOptInEnv]&&process.env[n.sharedCredentialsFileEnv]});for(var o=0,a=Object.keys(i);o=6},parse:function parseARN(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function buildARN(e){if(e.service===undefined||e.region===undefined||e.accountId===undefined||e.resource===undefined)throw n.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=n},3026:(e,t,r)=>{var i=r(3067);var n=r(6407).XmlNode;var s=r(4160).XmlText;function XmlBuilder(){}XmlBuilder.prototype.toXML=function(e,t,r,i){var s=new n(r);applyNamespaces(s,t,true);serialize(s,e,t);return s.children.length>0||i?s.toString():""};function serialize(e,t,r){switch(r.type){case"structure":return serializeStructure(e,t,r);case"map":return serializeMap(e,t,r);case"list":return serializeList(e,t,r);default:return serializeScalar(e,t,r)}}function serializeStructure(e,t,r){i.arrayEach(r.memberNames,function(i){var s=r.members[i];if(s.location!=="body")return;var o=t[i];var a=s.name;if(o!==undefined&&o!==null){if(s.isXmlAttribute){e.addAttribute(a,o)}else if(s.flattened){serialize(e,o,s)}else{var u=new n(a);e.addChildNode(u);applyNamespaces(u,s);serialize(u,o,s)}}})}function serializeMap(e,t,r){var s=r.key.name||"key";var o=r.value.name||"value";i.each(t,function(t,i){var a=new n(r.flattened?r.name:"entry");e.addChildNode(a);var u=new n(s);var c=new n(o);a.addChildNode(u);a.addChildNode(c);serialize(u,t,r.key);serialize(c,i,r.value)})}function serializeList(e,t,r){if(r.flattened){i.arrayEach(t,function(t){var i=r.member.name||r.name;var s=new n(i);e.addChildNode(s);serialize(s,t,r.member)})}else{i.arrayEach(t,function(t){var i=r.member.name||"member";var s=new n(i);e.addChildNode(s);serialize(s,t,r.member)})}}function serializeScalar(e,t,r){e.addChildNode(new s(r.toWireFormat(t)))}function applyNamespaces(e,t,r){var i,n="xmlns";if(t.xmlNamespaceUri){i=t.xmlNamespaceUri;if(t.xmlNamespacePrefix)n+=":"+t.xmlNamespacePrefix}else if(r&&t.api.xmlNamespaceUri){i=t.api.xmlNamespaceUri}if(i)e.addAttribute(n,i)}e.exports=XmlBuilder},6007:e=>{function escapeAttribute(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(//g,">").replace(/"/g,""")}e.exports={escapeAttribute:escapeAttribute}},1741:e=>{function escapeElement(e){return e.replace(/&/g,"&").replace(//g,">")}e.exports={escapeElement:escapeElement}},9958:(e,t,r)=>{var i=r(8738);var n=i.util;var s=i.Model.Shape;var o=r(7013);var a={explicitCharkey:false,trim:false,normalize:false,explicitRoot:false,emptyTag:null,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,validator:null};function NodeXmlParser(){}NodeXmlParser.prototype.parse=function(e,t){t=t||{};var r=null;var i=null;var s=new o.Parser(a);s.parseString(e,function(e,t){i=e;r=t});if(r){var u=parseXml(r,t);if(r.ResponseMetadata){u.ResponseMetadata=parseXml(r.ResponseMetadata[0],{})}return u}else if(i){throw n.error(i,{code:"XMLParserError",retryable:true})}else{return parseXml({},t)}};function parseXml(e,t){switch(t.type){case"structure":return parseStructure(e,t);case"map":return parseMap(e,t);case"list":return parseList(e,t);case undefined:case null:return parseUnknown(e);default:return parseScalar(e,t)}}function parseStructure(e,t){var r={};if(e===null)return r;n.each(t.members,function(i,n){var s=n.name;if(Object.prototype.hasOwnProperty.call(e,s)&&Array.isArray(e[s])){var o=e[s];if(!n.flattened)o=o[0];r[i]=parseXml(o,n)}else if(n.isXmlAttribute&&e.$&&Object.prototype.hasOwnProperty.call(e.$,s)){r[i]=parseScalar(e.$[s],n)}else if(n.type==="list"&&!t.api.xmlNoDefaultLists){r[i]=n.defaultValue}});return r}function parseMap(e,t){var r={};if(e===null)return r;var i=t.key.name||"key";var s=t.value.name||"value";var o=t.flattened?e:e.entry;if(Array.isArray(o)){n.arrayEach(o,function(e){r[e[i][0]]=parseXml(e[s][0],t.value)})}return r}function parseList(e,t){var r=[];var i=t.member.name||"member";if(t.flattened){n.arrayEach(e,function(e){r.push(parseXml(e,t.member))})}else if(e&&Array.isArray(e[i])){n.arrayEach(e[i],function(e){r.push(parseXml(e,t.member))})}return r}function parseScalar(e,t){if(e&&e.$&&e.$.encoding==="base64"){t=new s.create({type:e.$.encoding})}if(e&&e._)e=e._;if(typeof t.toType==="function"){return t.toType(e)}else{return e}}function parseUnknown(e){if(e===undefined||e===null)return"";if(typeof e==="string")return e;if(Array.isArray(e)){var t=[];for(i=0;i1){n[s]=parseList(o,{member:{}})}else{n[s]=parseXml(o[0],{})}}return n}e.exports=NodeXmlParser},6407:(e,t,r)=>{var i=r(6007).escapeAttribute;function XmlNode(e,t){if(t===void 0){t=[]}this.name=e;this.children=t;this.attributes={}}XmlNode.prototype.addAttribute=function(e,t){this.attributes[e]=t;return this};XmlNode.prototype.addChildNode=function(e){this.children.push(e);return this};XmlNode.prototype.removeAttribute=function(e){delete this.attributes[e];return this};XmlNode.prototype.toString=function(){var e=Boolean(this.children.length);var t="<"+this.name;var r=this.attributes;for(var n=0,s=Object.keys(r);n":">"+this.children.map(function(e){return e.toString()}).join("")+""};e.exports={XmlNode:XmlNode}},4160:(e,t,r)=>{var i=r(1741).escapeElement;function XmlText(e){this.value=e}XmlText.prototype.toString=function(){return i(""+this.value)};e.exports={XmlText:XmlText}},6355:(e,t,r)=>{var i=r(9858);var n=r(2586);var s=n;s.v1=i;s.v4=n;e.exports=s},7640:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var i=r||0;var n=t;return[n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],"-",n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]],n[e[i++]]].join("")}e.exports=bytesToUuid},28:(e,t,r)=>{var i=r(6417);e.exports=function nodeRNG(){return i.randomBytes(16)}},9858:(e,t,r)=>{var i=r(28);var n=r(7640);var s;var o;var a=0;var u=0;function v1(e,t,r){var c=t&&r||0;var l=t||[];e=e||{};var f=e.node||s;var h=e.clockseq!==undefined?e.clockseq:o;if(f==null||h==null){var p=i();if(f==null){f=s=[p[0]|1,p[1],p[2],p[3],p[4],p[5]]}if(h==null){h=o=(p[6]<<8|p[7])&16383}}var d=e.msecs!==undefined?e.msecs:(new Date).getTime();var v=e.nsecs!==undefined?e.nsecs:u+1;var m=d-a+(v-u)/1e4;if(m<0&&e.clockseq===undefined){h=h+1&16383}if((m<0||d>a)&&e.nsecs===undefined){v=0}if(v>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=d;u=v;o=h;d+=122192928e5;var g=((d&268435455)*1e4+v)%4294967296;l[c++]=g>>>24&255;l[c++]=g>>>16&255;l[c++]=g>>>8&255;l[c++]=g&255;var y=d/4294967296*1e4&268435455;l[c++]=y>>>8&255;l[c++]=y&255;l[c++]=y>>>24&15|16;l[c++]=y>>>16&255;l[c++]=h>>>8|128;l[c++]=h&255;for(var E=0;E<6;++E){l[c+E]=f[E]}return t?t:n(l)}e.exports=v1},2586:(e,t,r)=>{var i=r(28);var n=r(7640);function v4(e,t,r){var s=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||i)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var a=0;a<16;++a){t[s+a]=o[a]}}return t||n(o)}e.exports=v4},6069:(e,t,r)=>{"use strict";var i;i={value:true};var n=r(8105);var s=1e3;var o=function(){function EndpointCache(e){if(e===void 0){e=s}this.maxSize=e;this.cache=new n.LRUCache(e)}Object.defineProperty(EndpointCache.prototype,"size",{get:function(){return this.cache.length},enumerable:true,configurable:true});EndpointCache.prototype.put=function(e,t){var r=typeof e!=="string"?EndpointCache.getKeyString(e):e;var i=this.populateValue(t);this.cache.put(r,i)};EndpointCache.prototype.get=function(e){var t=typeof e!=="string"?EndpointCache.getKeyString(e):e;var r=Date.now();var i=this.cache.get(t);if(i){for(var n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=function(){function LinkedListNode(e,t){this.key=e;this.value=t}return LinkedListNode}();var i=function(){function LRUCache(e){this.nodeMap={};this.size=0;if(typeof e!=="number"||e<1){throw new Error("Cache size can only be positive number")}this.sizeLimit=e}Object.defineProperty(LRUCache.prototype,"length",{get:function(){return this.size},enumerable:true,configurable:true});LRUCache.prototype.prependToList=function(e){if(!this.headerNode){this.tailNode=e}else{this.headerNode.prev=e;e.next=this.headerNode}this.headerNode=e;this.size++};LRUCache.prototype.removeFromTail=function(){if(!this.tailNode){return undefined}var e=this.tailNode;var t=e.prev;if(t){t.next=undefined}e.prev=undefined;this.tailNode=t;this.size--;return e};LRUCache.prototype.detachFromList=function(e){if(this.headerNode===e){this.headerNode=e.next}if(this.tailNode===e){this.tailNode=e.prev}if(e.prev){e.prev.next=e.next}if(e.next){e.next.prev=e.prev}e.next=undefined;e.prev=undefined;this.size--};LRUCache.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);this.prependToList(t);return t.value}};LRUCache.prototype.remove=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];this.detachFromList(t);delete this.nodeMap[e]}};LRUCache.prototype.put=function(e,t){if(this.nodeMap[e]){this.remove(e)}else if(this.size===this.sizeLimit){var i=this.removeFromTail();var n=i.key;delete this.nodeMap[n]}var s=new r(e,t);this.nodeMap[e]=s;this.prependToList(s)};LRUCache.prototype.empty=function(){var e=Object.keys(this.nodeMap);for(var t=0;t{(function(e){"use strict";function isArray(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Array]"}else{return false}}function isObject(e){if(e!==null){return Object.prototype.toString.call(e)==="[object Object]"}else{return false}}function strictDeepEqual(e,t){if(e===t){return true}var r=Object.prototype.toString.call(e);if(r!==Object.prototype.toString.call(t)){return false}if(isArray(e)===true){if(e.length!==t.length){return false}for(var i=0;i":true,"=":true,"!":true};var j={" ":true,"\t":true,"\n":true};function isAlpha(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="_"}function isNum(e){return e>="0"&&e<="9"||e==="-"}function isAlphaNum(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="_"}function Lexer(){}Lexer.prototype={tokenize:function(e){var t=[];this._current=0;var r;var i;var n;while(this._current"){if(e[this._current]==="="){this._current++;return{type:D,value:">=",start:t}}else{return{type:_,value:">",start:t}}}else if(r==="="){if(e[this._current]==="="){this._current++;return{type:T,value:"==",start:t}}}},_consumeLiteral:function(e){this._current++;var r=this._current;var i=e.length;var n;while(e[this._current]!=="`"&&this._current=0){return true}else if(r.indexOf(e)>=0){return true}else if(i.indexOf(e[0])>=0){try{JSON.parse(e);return true}catch(e){return false}}else{return false}}};var U={};U[h]=0;U[p]=0;U[d]=0;U[v]=0;U[m]=0;U[g]=0;U[E]=0;U[w]=0;U[C]=0;U[S]=0;U[b]=1;U[I]=2;U[x]=3;U[T]=5;U[_]=5;U[P]=5;U[D]=5;U[R]=5;U[N]=5;U[A]=9;U[L]=20;U[M]=21;U[F]=40;U[O]=45;U[q]=50;U[X]=55;U[k]=60;function Parser(){}Parser.prototype={parse:function(e){this._loadTokens(e);this.index=0;var t=this.expression(0);if(this._lookahead(0)!==h){var r=this._lookaheadToken(0);var i=new Error("Unexpected token type: "+r.type+", value: "+r.value);i.name="ParserError";throw i}return t},_loadTokens:function(e){var t=new Lexer;var r=t.tokenize(e);r.push({type:h,value:"",start:e.length});this.tokens=r},expression:function(e){var t=this._lookaheadToken(0);this._advance();var r=this.nud(t);var i=this._lookahead(0);while(e=0){return this.expression(e)}else if(t===X){this._match(X);return this._parseMultiselectList()}else if(t===q){this._match(q);return this._parseMultiselectHash()}},_parseProjectionRHS:function(e){var t;if(U[this._lookahead(0)]<10){t={type:"Identity"}}else if(this._lookahead(0)===X){t=this.expression(e)}else if(this._lookahead(0)===M){t=this.expression(e)}else if(this._lookahead(0)===F){this._match(F);t=this._parseDotRHS(e)}else{var r=this._lookaheadToken(0);var i=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");i.name="ParserError";throw i}return t},_parseMultiselectList:function(){var e=[];while(this._lookahead(0)!==v){var t=this.expression(0);e.push(t);if(this._lookahead(0)===g){this._match(g);if(this._lookahead(0)===v){throw new Error("Unexpected token Rbracket")}}}this._match(v);return{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){var e=[];var t=[p,d];var r,i,n,s;for(;;){r=this._lookaheadToken(0);if(t.indexOf(r.type)<0){throw new Error("Expecting an identifier token, got: "+r.type)}i=r.value;this._advance();this._match(y);n=this.expression(0);s={type:"KeyValuePair",name:i,value:n};e.push(s);if(this._lookahead(0)===g){this._match(g)}else if(this._lookahead(0)===E){this._match(E);break}}return{type:"MultiSelectHash",children:e}}};function TreeInterpreter(e){this.runtime=e}TreeInterpreter.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,t){var r,i,n,s,o,a,u,c,l,f;switch(e.type){case"Field":if(t===null){return null}else if(isObject(t)){a=t[e.name];if(a===undefined){return null}else{return a}}else{return null}break;case"Subexpression":n=this.visit(e.children[0],t);for(f=1;f0){for(f=v;fm;f+=g){n.push(t[f])}}return n;case"Projection":var y=this.visit(e.children[0],t);if(!isArray(y)){return null}l=[];for(f=0;fo;break;case D:n=s>=o;break;case P:n=s=e){t=r<0?e-1:e}return t}};function Runtime(e){this._interpreter=e;this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[r]}]},avg:{_func:this._functionAvg,_signature:[{types:[l]}]},ceil:{_func:this._functionCeil,_signature:[{types:[r]}]},contains:{_func:this._functionContains,_signature:[{types:[n,s]},{types:[i]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[n]},{types:[n]}]},floor:{_func:this._functionFloor,_signature:[{types:[r]}]},length:{_func:this._functionLength,_signature:[{types:[n,s,o]}]},map:{_func:this._functionMap,_signature:[{types:[u]},{types:[s]}]},max:{_func:this._functionMax,_signature:[{types:[l,f]}]},merge:{_func:this._functionMerge,_signature:[{types:[o],variadic:true}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[s]},{types:[u]}]},sum:{_func:this._functionSum,_signature:[{types:[l]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[n]},{types:[n]}]},min:{_func:this._functionMin,_signature:[{types:[l,f]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[s]},{types:[u]}]},type:{_func:this._functionType,_signature:[{types:[i]}]},keys:{_func:this._functionKeys,_signature:[{types:[o]}]},values:{_func:this._functionValues,_signature:[{types:[o]}]},sort:{_func:this._functionSort,_signature:[{types:[f,l]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[s]},{types:[u]}]},join:{_func:this._functionJoin,_signature:[{types:[n]},{types:[f]}]},reverse:{_func:this._functionReverse,_signature:[{types:[n,s]}]},to_array:{_func:this._functionToArray,_signature:[{types:[i]}]},to_string:{_func:this._functionToString,_signature:[{types:[i]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[i]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[i],variadic:true}]}}}Runtime.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(r===undefined){throw new Error("Unknown function: "+e+"()")}this._validateArgs(e,t,r._signature);return r._func.call(this,t)},_validateArgs:function(e,t,r){var i;if(r[r.length-1].variadic){if(t.length=0;s--){i+=r[s]}return i}else{var o=e[0].slice(0);o.reverse();return o}},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){var t=0;var r=e[0];for(var i=0;i=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){if(!isObject(e[0])){return e[0].length}else{return Object.keys(e[0]).length}},_functionMap:function(e){var t=[];var r=this._interpreter;var i=e[0];var n=e[1];for(var s=0;s0){var t=this._getTypeName(e[0][0]);if(t===r){return Math.max.apply(Math,e[0])}else{var i=e[0];var n=i[0];for(var s=1;s0){var t=this._getTypeName(e[0][0]);if(t===r){return Math.min.apply(Math,e[0])}else{var i=e[0];var n=i[0];for(var s=1;sn){return 1}else if(ro){o=u;a=i[c]}}return a},_functionMinBy:function(e){var t=e[1];var i=e[0];var s=this.createKeyFunction(t,[r,n]);var o=Infinity;var a;var u;for(var c=0;c=0||e.indexOf(">")>=0||e.indexOf("<")>=0)};o=function(e){return""};n=function(e){return e.replace("]]>","]]]]>")};t.Builder=function(){function Builder(e){var t,r,n;this.options={};r=i["0.2"];for(t in r){if(!a.call(r,t))continue;n=r[t];this.options[t]=n}for(t in e){if(!a.call(e,t))continue;n=e[t];this.options[t]=n}}Builder.prototype.buildObject=function(t){var r,n,u,c,l;r=this.options.attrkey;n=this.options.charkey;if(Object.keys(t).length===1&&this.options.rootName===i["0.2"].rootName){l=Object.keys(t)[0];t=t[l]}else{l=this.options.rootName}u=function(e){return function(t,i){var c,l,f,h,p,d;if(typeof i!=="object"){if(e.options.cdata&&s(i)){t.raw(o(i))}else{t.txt(i)}}else if(Array.isArray(i)){for(h in i){if(!a.call(i,h))continue;l=i[h];for(p in l){f=l[p];t=u(t.ele(p),f).up()}}}else{for(p in i){if(!a.call(i,p))continue;l=i[p];if(p===r){if(typeof l==="object"){for(c in l){d=l[c];t=t.att(c,d)}}}else if(p===n){if(e.options.cdata&&s(l)){t=t.raw(o(l))}else{t=t.txt(l)}}else if(Array.isArray(l)){for(h in l){if(!a.call(l,h))continue;f=l[h];if(typeof f==="string"){if(e.options.cdata&&s(f)){t=t.ele(p).raw(o(f)).up()}else{t=t.ele(p,f).up()}}else{t=u(t.ele(p),f).up()}}}else if(typeof l==="object"){t=u(t.ele(p),l).up()}else{if(typeof l==="string"&&e.options.cdata&&s(l)){t=t.ele(p).raw(o(l)).up()}else{if(l==null){l=""}t=t.ele(p,l.toString()).up()}}}}return t}}(this);c=e.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return u(c,t).end(this.options.renderOpts)};return Builder}()}).call(this)},9498:function(e,t){(function(){t.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},7426:function(e,t,r){(function(){"use strict";var e,i,n,s,o,a,u,c,l=function(e,t){return function(){return e.apply(t,arguments)}},f=function(e,t){for(var r in t){if(h.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},h={}.hasOwnProperty;u=r(2696);n=r(8614);e=r(4604);a=r(9068);c=r(8213).setImmediate;i=r(9498).defaults;s=function(e){return typeof e==="object"&&e!=null&&Object.keys(e).length===0};o=function(e,t,r){var i,n,s;for(i=0,n=e.length;i0){u[e.options.childkey]=l}l=u}else if(d){d[e.options.childkey]=d[e.options.childkey]||[];f={};for(a in l){if(!h.call(l,a))continue;f[a]=l[a]}d[e.options.childkey].push(f);delete l["#name"];if(Object.keys(l).length===1&&t in l&&!e.EXPLICIT_CHARKEY){l=l[t]}}}if(i.length>0){return e.assignOrPush(d,c,l)}else{if(e.options.explicitRoot){p=l;l={};l[c]=p}e.resultObject=l;e.saxParser.ended=true;return e.emit("end",e.resultObject)}}}(this);r=function(e){return function(r){var n,s;s=i[i.length-1];if(s){s[t]+=r;if(e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||r.replace(/\\n/g,"").trim()!=="")){s[e.options.childkey]=s[e.options.childkey]||[];n={"#name":"__text__"};n[t]=r;if(e.options.normalize){n[t]=n[t].replace(/\s{2,}/g," ").trim()}s[e.options.childkey].push(n)}return s}}}(this);this.saxParser.ontext=r;return this.saxParser.oncdata=function(e){return function(e){var t;t=r(e);if(t){return t.cdata=true}}}(this)};Parser.prototype.parseString=function(t,r){var i;if(r!=null&&typeof r==="function"){this.on("end",function(e){this.reset();return r(null,e)});this.on("error",function(e){this.reset();return r(e)})}try{t=t.toString();if(t.trim()===""){this.emit("end",null);return true}t=e.stripBOM(t);if(this.options.async){this.remaining=t;c(this.processAsync);return this.saxParser}return this.saxParser.write(t).close()}catch(e){i=e;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",i);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw i}}};return Parser}(n.EventEmitter);t.parseString=function(e,r,i){var n,s,o;if(i!=null){if(typeof i==="function"){n=i}if(typeof r==="object"){s=r}}else{if(typeof r==="function"){n=r}s={}}o=new t.Parser(s);return o.parseString(e,n)}}).call(this)},9068:function(e,t){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/);t.normalize=function(e){return e.toLowerCase()};t.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)};t.stripPrefix=function(t){return t.replace(e,"")};t.parseNumbers=function(e){if(!isNaN(e)){e=e%1===0?parseInt(e,10):parseFloat(e)}return e};t.parseBooleans=function(e){if(/^(?:true|false)$/i.test(e)){e=e.toLowerCase()==="true"}return e}}).call(this)},7013:function(e,t,r){(function(){"use strict";var e,i,n,s,o=function(e,t){for(var r in t){if(a.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},a={}.hasOwnProperty;i=r(9498);e=r(1002);n=r(7426);s=r(9068);t.defaults=i.defaults;t.processors=s;t.ValidationError=function(e){o(ValidationError,e);function ValidationError(e){this.message=e}return ValidationError}(Error);t.Builder=e.Builder;t.Parser=n.Parser;t.parseString=n.parseString}).call(this)},2696:(e,t,r)=>{(function(e){e.parser=function(e,t){return new SAXParser(e,t)};e.SAXParser=SAXParser;e.SAXStream=SAXStream;e.createStream=createStream;e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function SAXParser(t,r){if(!(this instanceof SAXParser)){return new SAXParser(t,r)}var i=this;clearBuffers(i);i.q=i.c="";i.bufferCheckPosition=e.MAX_BUFFER_LENGTH;i.opt=r||{};i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags;i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase";i.tags=[];i.closed=i.closedRoot=i.sawRoot=false;i.tag=i.error=null;i.strict=!!t;i.noscript=!!(t||i.opt.noscript);i.state=d.BEGIN;i.strictEntities=i.opt.strictEntities;i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES);i.attribList=[];if(i.opt.xmlns){i.ns=Object.create(c)}i.trackPosition=i.opt.position!==false;if(i.trackPosition){i.position=i.line=i.column=0}emit(i,"onready")}if(!Object.create){Object.create=function(e){function F(){}F.prototype=e;var t=new F;return t}}if(!Object.keys){Object.keys=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))t.push(r);return t}}function checkBufferLength(r){var i=Math.max(e.MAX_BUFFER_LENGTH,10);var n=0;for(var s=0,o=t.length;si){switch(t[s]){case"textNode":closeText(r);break;case"cdata":emitNode(r,"oncdata",r.cdata);r.cdata="";break;case"script":emitNode(r,"onscript",r.script);r.script="";break;default:error(r,"Max buffer length exceeded: "+t[s])}}n=Math.max(n,a)}var u=e.MAX_BUFFER_LENGTH-n;r.bufferCheckPosition=u+r.position}function clearBuffers(e){for(var r=0,i=t.length;r"||isWhitespace(e)}function isMatch(e,t){return e.test(t)}function notMatch(e,t){return!isMatch(e,t)}var d=0;e.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++};e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830};Object.keys(e.ENTITIES).forEach(function(t){var r=e.ENTITIES[t];var i=typeof r==="number"?String.fromCharCode(r):r;e.ENTITIES[t]=i});for(var v in e.STATE){e.STATE[e.STATE[v]]=v}d=e.STATE;function emit(e,t,r){e[t]&&e[t](r)}function emitNode(e,t,r){if(e.textNode)closeText(e);emit(e,t,r)}function closeText(e){e.textNode=textopts(e.opt,e.textNode);if(e.textNode)emit(e,"ontext",e.textNode);e.textNode=""}function textopts(e,t){if(e.trim)t=t.trim();if(e.normalize)t=t.replace(/\s+/g," ");return t}function error(e,t){closeText(e);if(e.trackPosition){t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c}t=new Error(t);e.error=t;emit(e,"onerror",t);return e}function end(e){if(e.sawRoot&&!e.closedRoot)strictFail(e,"Unclosed root tag");if(e.state!==d.BEGIN&&e.state!==d.BEGIN_WHITESPACE&&e.state!==d.TEXT){error(e,"Unexpected end")}closeText(e);e.c="";e.closed=true;emit(e,"onend");SAXParser.call(e,e.strict,e.opt);return e}function strictFail(e,t){if(typeof e!=="object"||!(e instanceof SAXParser)){throw new Error("bad call to strictFail")}if(e.strict){error(e,t)}}function newTag(e){if(!e.strict)e.tagName=e.tagName[e.looseCase]();var t=e.tags[e.tags.length-1]||e;var r=e.tag={name:e.tagName,attributes:{}};if(e.opt.xmlns){r.ns=t.ns}e.attribList.length=0;emitNode(e,"onopentagstart",r)}function qname(e,t){var r=e.indexOf(":");var i=r<0?["",e]:e.split(":");var n=i[0];var s=i[1];if(t&&e==="xmlns"){n="xmlns";s=""}return{prefix:n,local:s}}function attrib(e){if(!e.strict){e.attribName=e.attribName[e.looseCase]()}if(e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue="";return}if(e.opt.xmlns){var t=qname(e.attribName,true);var r=t.prefix;var i=t.local;if(r==="xmlns"){if(i==="xml"&&e.attribValue!==a){strictFail(e,"xml: prefix must be bound to "+a+"\n"+"Actual: "+e.attribValue)}else if(i==="xmlns"&&e.attribValue!==u){strictFail(e,"xmlns: prefix must be bound to "+u+"\n"+"Actual: "+e.attribValue)}else{var n=e.tag;var s=e.tags[e.tags.length-1]||e;if(n.ns===s.ns){n.ns=Object.create(s.ns)}n.ns[i]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else{e.tag.attributes[e.attribName]=e.attribValue;emitNode(e,"onattribute",{name:e.attribName,value:e.attribValue})}e.attribName=e.attribValue=""}function openTag(e,t){if(e.opt.xmlns){var r=e.tag;var i=qname(e.tagName);r.prefix=i.prefix;r.local=i.local;r.uri=r.ns[i.prefix]||"";if(r.prefix&&!r.uri){strictFail(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName));r.uri=i.prefix}var n=e.tags[e.tags.length-1]||e;if(r.ns&&n.ns!==r.ns){Object.keys(r.ns).forEach(function(t){emitNode(e,"onopennamespace",{prefix:t,uri:r.ns[t]})})}for(var s=0,o=e.attribList.length;s";e.tagName="";e.state=d.SCRIPT;return}emitNode(e,"onscript",e.script);e.script=""}var t=e.tags.length;var r=e.tagName;if(!e.strict){r=r[e.looseCase]()}var i=r;while(t--){var n=e.tags[t];if(n.name!==i){strictFail(e,"Unexpected close tag")}else{break}}if(t<0){strictFail(e,"Unmatched closing tag: "+e.tagName);e.textNode+="";e.state=d.TEXT;return}e.tagName=r;var s=e.tags.length;while(s-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name;emitNode(e,"onclosetag",e.tagName);var a={};for(var u in o.ns){a[u]=o.ns[u]}var c=e.tags[e.tags.length-1]||e;if(e.opt.xmlns&&o.ns!==c.ns){Object.keys(o.ns).forEach(function(t){var r=o.ns[t];emitNode(e,"onclosenamespace",{prefix:t,uri:r})})}}if(t===0)e.closedRoot=true;e.tagName=e.attribValue=e.attribName="";e.attribList.length=0;e.state=d.TEXT}function parseEntity(e){var t=e.entity;var r=t.toLowerCase();var i;var n="";if(e.ENTITIES[t]){return e.ENTITIES[t]}if(e.ENTITIES[r]){return e.ENTITIES[r]}t=r;if(t.charAt(0)==="#"){if(t.charAt(1)==="x"){t=t.slice(2);i=parseInt(t,16);n=i.toString(16)}else{t=t.slice(1);i=parseInt(t,10);n=i.toString(10)}}t=t.replace(/^0+/,"");if(isNaN(i)||n.toLowerCase()!==t){strictFail(e,"Invalid character entity");return"&"+e.entity+";"}return String.fromCodePoint(i)}function beginWhiteSpace(e,t){if(t==="<"){e.state=d.OPEN_WAKA;e.startTagPosition=e.position}else if(!isWhitespace(t)){strictFail(e,"Non-whitespace before first tag.");e.textNode=t;e.state=d.TEXT}}function charAt(e,t){var r="";if(t"){emitNode(t,"onsgmldeclaration",t.sgmlDecl);t.sgmlDecl="";t.state=d.TEXT}else if(isQuote(i)){t.state=d.SGML_DECL_QUOTED;t.sgmlDecl+=i}else{t.sgmlDecl+=i}continue;case d.SGML_DECL_QUOTED:if(i===t.q){t.state=d.SGML_DECL;t.q=""}t.sgmlDecl+=i;continue;case d.DOCTYPE:if(i===">"){t.state=d.TEXT;emitNode(t,"ondoctype",t.doctype);t.doctype=true}else{t.doctype+=i;if(i==="["){t.state=d.DOCTYPE_DTD}else if(isQuote(i)){t.state=d.DOCTYPE_QUOTED;t.q=i}}continue;case d.DOCTYPE_QUOTED:t.doctype+=i;if(i===t.q){t.q="";t.state=d.DOCTYPE}continue;case d.DOCTYPE_DTD:t.doctype+=i;if(i==="]"){t.state=d.DOCTYPE}else if(isQuote(i)){t.state=d.DOCTYPE_DTD_QUOTED;t.q=i}continue;case d.DOCTYPE_DTD_QUOTED:t.doctype+=i;if(i===t.q){t.state=d.DOCTYPE_DTD;t.q=""}continue;case d.COMMENT:if(i==="-"){t.state=d.COMMENT_ENDING}else{t.comment+=i}continue;case d.COMMENT_ENDING:if(i==="-"){t.state=d.COMMENT_ENDED;t.comment=textopts(t.opt,t.comment);if(t.comment){emitNode(t,"oncomment",t.comment)}t.comment=""}else{t.comment+="-"+i;t.state=d.COMMENT}continue;case d.COMMENT_ENDED:if(i!==">"){strictFail(t,"Malformed comment");t.comment+="--"+i;t.state=d.COMMENT}else{t.state=d.TEXT}continue;case d.CDATA:if(i==="]"){t.state=d.CDATA_ENDING}else{t.cdata+=i}continue;case d.CDATA_ENDING:if(i==="]"){t.state=d.CDATA_ENDING_2}else{t.cdata+="]"+i;t.state=d.CDATA}continue;case d.CDATA_ENDING_2:if(i===">"){if(t.cdata){emitNode(t,"oncdata",t.cdata)}emitNode(t,"onclosecdata");t.cdata="";t.state=d.TEXT}else if(i==="]"){t.cdata+="]"}else{t.cdata+="]]"+i;t.state=d.CDATA}continue;case d.PROC_INST:if(i==="?"){t.state=d.PROC_INST_ENDING}else if(isWhitespace(i)){t.state=d.PROC_INST_BODY}else{t.procInstName+=i}continue;case d.PROC_INST_BODY:if(!t.procInstBody&&isWhitespace(i)){continue}else if(i==="?"){t.state=d.PROC_INST_ENDING}else{t.procInstBody+=i}continue;case d.PROC_INST_ENDING:if(i===">"){emitNode(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody});t.procInstName=t.procInstBody="";t.state=d.TEXT}else{t.procInstBody+="?"+i;t.state=d.PROC_INST_BODY}continue;case d.OPEN_TAG:if(isMatch(f,i)){t.tagName+=i}else{newTag(t);if(i===">"){openTag(t)}else if(i==="/"){t.state=d.OPEN_TAG_SLASH}else{if(!isWhitespace(i)){strictFail(t,"Invalid character in tag name")}t.state=d.ATTRIB}}continue;case d.OPEN_TAG_SLASH:if(i===">"){openTag(t,true);closeTag(t)}else{strictFail(t,"Forward-slash in opening tag not followed by >");t.state=d.ATTRIB}continue;case d.ATTRIB:if(isWhitespace(i)){continue}else if(i===">"){openTag(t)}else if(i==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(l,i)){t.attribName=i;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME:if(i==="="){t.state=d.ATTRIB_VALUE}else if(i===">"){strictFail(t,"Attribute without value");t.attribValue=t.attribName;attrib(t);openTag(t)}else if(isWhitespace(i)){t.state=d.ATTRIB_NAME_SAW_WHITE}else if(isMatch(f,i)){t.attribName+=i}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_NAME_SAW_WHITE:if(i==="="){t.state=d.ATTRIB_VALUE}else if(isWhitespace(i)){continue}else{strictFail(t,"Attribute without value");t.tag.attributes[t.attribName]="";t.attribValue="";emitNode(t,"onattribute",{name:t.attribName,value:""});t.attribName="";if(i===">"){openTag(t)}else if(isMatch(l,i)){t.attribName=i;t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name");t.state=d.ATTRIB}}continue;case d.ATTRIB_VALUE:if(isWhitespace(i)){continue}else if(isQuote(i)){t.q=i;t.state=d.ATTRIB_VALUE_QUOTED}else{strictFail(t,"Unquoted attribute value");t.state=d.ATTRIB_VALUE_UNQUOTED;t.attribValue=i}continue;case d.ATTRIB_VALUE_QUOTED:if(i!==t.q){if(i==="&"){t.state=d.ATTRIB_VALUE_ENTITY_Q}else{t.attribValue+=i}continue}attrib(t);t.q="";t.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:if(isWhitespace(i)){t.state=d.ATTRIB}else if(i===">"){openTag(t)}else if(i==="/"){t.state=d.OPEN_TAG_SLASH}else if(isMatch(l,i)){strictFail(t,"No whitespace between attributes");t.attribName=i;t.attribValue="";t.state=d.ATTRIB_NAME}else{strictFail(t,"Invalid attribute name")}continue;case d.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(i)){if(i==="&"){t.state=d.ATTRIB_VALUE_ENTITY_U}else{t.attribValue+=i}continue}attrib(t);if(i===">"){openTag(t)}else{t.state=d.ATTRIB}continue;case d.CLOSE_TAG:if(!t.tagName){if(isWhitespace(i)){continue}else if(notMatch(l,i)){if(t.script){t.script+=""){closeTag(t)}else if(isMatch(f,i)){t.tagName+=i}else if(t.script){t.script+=""){closeTag(t)}else{strictFail(t,"Invalid characters in closing tag")}continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var u;var c;switch(t.state){case d.TEXT_ENTITY:u=d.TEXT;c="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:u=d.ATTRIB_VALUE_QUOTED;c="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:u=d.ATTRIB_VALUE_UNQUOTED;c="attribValue";break}if(i===";"){t[c]+=parseEntity(t);t.entity="";t.state=u}else if(isMatch(t.entity.length?p:h,i)){t.entity+=i}else{strictFail(t,"Invalid character in entity name");t[c]+="&"+t.entity+i;t.entity="";t.state=u}continue;default:throw new Error(t,"Unknown state: "+t.state)}}if(t.position>=t.bufferCheckPosition){checkBufferLength(t)}return t}if(!String.fromCodePoint){(function(){var e=String.fromCharCode;var t=Math.floor;var r=function(){var r=16384;var i=[];var n;var s;var o=-1;var a=arguments.length;if(!a){return""}var u="";while(++o1114111||t(c)!==c){throw RangeError("Invalid code point: "+c)}if(c<=65535){i.push(c)}else{c-=65536;n=(c>>10)+55296;s=c%1024+56320;i.push(n,s)}if(o+1===a||i.length>r){u+=e.apply(null,i);i.length=0}}return u};if(Object.defineProperty){Object.defineProperty(String,"fromCodePoint",{value:r,configurable:true,writable:true})}else{String.fromCodePoint=r}})()}})(false?0:t)},983:function(e){(function(){var t,r,i,n,s,o,a=[].slice,u={}.hasOwnProperty;t=function(){var e,t,r,i,s,o;o=arguments[0],s=2<=arguments.length?a.call(arguments,1):[];if(n(Object.assign)){Object.assign.apply(null,arguments)}else{for(e=0,r=s.length;e=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(e){if(!e.isOpen){if(!this.root&&this.currentLevel===0&&e instanceof h){this.root=e}this.onData(this.writer.openNode(e,this.currentLevel));return e.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(e){if(!e.isClosed){this.onData(this.writer.closeNode(e,this.currentLevel));return e.isClosed=true}};XMLDocumentCB.prototype.onData=function(e){this.documentStarted=true;return this.onDataCallback(e)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(e,t,r){return this.node(e,t,r)};XMLDocumentCB.prototype.txt=function(e){return this.text(e)};XMLDocumentCB.prototype.dat=function(e){return this.cdata(e)};XMLDocumentCB.prototype.com=function(e){return this.comment(e)};XMLDocumentCB.prototype.ins=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.dec=function(e,t,r){return this.declaration(e,t,r)};XMLDocumentCB.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)};XMLDocumentCB.prototype.e=function(e,t,r){return this.element(e,t,r)};XMLDocumentCB.prototype.n=function(e,t,r){return this.node(e,t,r)};XMLDocumentCB.prototype.t=function(e){return this.text(e)};XMLDocumentCB.prototype.d=function(e){return this.cdata(e)};XMLDocumentCB.prototype.c=function(e){return this.comment(e)};XMLDocumentCB.prototype.r=function(e){return this.raw(e)};XMLDocumentCB.prototype.i=function(e,t){return this.instruction(e,t)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof l){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(e,t){return this.entity(e,t)};XMLDocumentCB.prototype.pent=function(e,t){return this.pEntity(e,t)};XMLDocumentCB.prototype.not=function(e,t){return this.notation(e,t)};return XMLDocumentCB}()}).call(this)},6484:function(e,t,r){(function(){var t,i,n,s,o,a,u=function(e,t){for(var r in t){if(c.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},c={}.hasOwnProperty;a=r(983),o=a.isObject,s=a.isFunction;n=r(5089);t=r(1395);e.exports=i=function(e){u(XMLElement,e);function XMLElement(e,t,r){XMLElement.__super__.constructor.call(this,e);if(t==null){throw new Error("Missing element name")}this.name=this.stringify.eleName(t);this.attributes={};if(r!=null){this.attribute(r)}if(e.isDocument){this.isRoot=true;this.documentObject=e;e.rootObject=this}}XMLElement.prototype.clone=function(){var e,t,r,i;r=Object.create(this);if(r.isRoot){r.documentObject=null}r.attributes={};i=this.attributes;for(t in i){if(!c.call(i,t))continue;e=i[t];r.attributes[t]=e.clone()}r.children=[];this.children.forEach(function(e){var t;t=e.clone();t.parent=r;return r.children.push(t)});return r};XMLElement.prototype.attribute=function(e,r){var i,n;if(e!=null){e=e.valueOf()}if(o(e)){for(i in e){if(!c.call(e,i))continue;n=e[i];this.attribute(i,n)}}else{if(s(r)){r=r.apply()}if(!this.options.skipNullAttributes||r!=null){this.attributes[e]=new t(this,e,r)}}return this};XMLElement.prototype.removeAttribute=function(e){var t,r,i;if(e==null){throw new Error("Missing attribute name")}e=e.valueOf();if(Array.isArray(e)){for(r=0,i=e.length;r"+this.endline(e))};XMLStreamWriter.prototype.comment=function(e,t){return this.stream.write(this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.endline(e))};XMLStreamWriter.prototype.declaration=function(e,t){this.stream.write(this.space(t));this.stream.write('");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.docType=function(e,r){var u,c,l,h;r||(r=0);this.stream.write(this.space(r));this.stream.write("0){this.stream.write(" [");this.stream.write(this.endline(e));h=e.children;for(c=0,l=h.length;c");return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.element=function(e,r){var n,s,o,a,u,c,p,v;r||(r=0);v=this.space(r);this.stream.write(v+"<"+e.name);c=e.attributes;for(u in c){if(!g.call(c,u))continue;n=c[u];this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){this.stream.write(">")}else{this.stream.write(this.spacebeforeslash+"/>")}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){this.stream.write(">");this.stream.write(e.children[0].value);this.stream.write("")}else{this.stream.write(">"+this.newline);p=e.children;for(o=0,a=p.length;o")}return this.stream.write(this.endline(e))};XMLStreamWriter.prototype.processingInstruction=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.raw=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.text=function(e,t){return this.stream.write(this.space(t)+e.value+this.endline(e))};XMLStreamWriter.prototype.dtdAttList=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdElement=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdEntity=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.dtdNotation=function(e,t){this.stream.write(this.space(t)+""+this.endline(e))};XMLStreamWriter.prototype.endline=function(e){if(!e.isLastRootNode){return this.newline}else{return""}};return XMLStreamWriter}(v)}).call(this)},7834:function(e,t,r){(function(){var t,i,n,s,o,a,u,c,l,f,h,p,d,v,m=function(e,t){for(var r in t){if(g.call(t,r))e[r]=t[r]}function ctor(){this.constructor=e}ctor.prototype=t.prototype;e.prototype=new ctor;e.__super__=t.prototype;return e},g={}.hasOwnProperty;u=r(6645);c=r(8873);t=r(9236);i=r(360);l=r(6484);h=r(8732);d=r(617);f=r(8947);n=r(2529);s=r(7486);o=r(9252);a=r(3353);v=r(6670);e.exports=p=function(e){m(XMLStringWriter,e);function XMLStringWriter(e){XMLStringWriter.__super__.constructor.call(this,e)}XMLStringWriter.prototype.document=function(e){var t,r,n,s,o;this.textispresent=false;s="";o=e.children;for(r=0,n=o.length;r"+this.newline};XMLStringWriter.prototype.comment=function(e,t){return this.space(t)+"\x3c!-- "+e.text+" --\x3e"+this.newline};XMLStringWriter.prototype.declaration=function(e,t){var r;r=this.space(t);r+='";r+=this.newline;return r};XMLStringWriter.prototype.docType=function(e,r){var u,c,l,h,p;r||(r=0);h=this.space(r);h+="0){h+=" [";h+=this.newline;p=e.children;for(c=0,l=p.length;c";h+=this.newline;return h};XMLStringWriter.prototype.element=function(e,r){var n,s,o,a,u,c,p,v,m,y,E,w,C;r||(r=0);C=false;if(this.textispresent){this.newline="";this.pretty=false}else{this.newline=this.newlinedefault;this.pretty=this.prettydefault}w=this.space(r);v="";v+=w+"<"+e.name;m=e.attributes;for(p in m){if(!g.call(m,p))continue;n=m[p];v+=this.attribute(n)}if(e.children.length===0||e.children.every(function(e){return e.value===""})){if(this.allowEmpty){v+=">"+this.newline}else{v+=this.spacebeforeslash+"/>"+this.newline}}else if(this.pretty&&e.children.length===1&&e.children[0].value!=null){v+=">";v+=e.children[0].value;v+=""+this.newline}else{if(this.dontprettytextnodes){y=e.children;for(o=0,u=y.length;o"+this.newline;E=e.children;for(a=0,c=E.length;a"+this.newline}return v};XMLStringWriter.prototype.processingInstruction=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.raw=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.text=function(e,t){return this.space(t)+e.value+this.newline};XMLStringWriter.prototype.dtdAttList=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.dtdElement=function(e,t){return this.space(t)+""+this.newline};XMLStringWriter.prototype.dtdEntity=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.dtdNotation=function(e,t){var r;r=this.space(t)+""+this.newline;return r};XMLStringWriter.prototype.openNode=function(e,t){var r,i,n,s;t||(t=0);if(e instanceof l){n=this.space(t)+"<"+e.name;s=e.attributes;for(i in s){if(!g.call(s,i))continue;r=s[i];n+=this.attribute(r)}n+=(e.children?">":"/>")+this.newline;return n}else{n=this.space(t)+"")+this.newline;return n}};XMLStringWriter.prototype.closeNode=function(e,t){t||(t=0);switch(false){case!(e instanceof l):return this.space(t)+""+this.newline;case!(e instanceof c):return this.space(t)+"]>"+this.newline}};return XMLStringWriter}(v)}).call(this)},645:function(e){(function(){var t,r=function(e,t){return function(){return e.apply(t,arguments)}},i={}.hasOwnProperty;e.exports=t=function(){function XMLStringifier(e){this.assertLegalChar=r(this.assertLegalChar,this);var t,n,s;e||(e={});this.noDoubleEncoding=e.noDoubleEncoding;n=e.stringify||{};for(t in n){if(!i.call(n,t))continue;s=n[t];this[t]=s}}XMLStringifier.prototype.eleName=function(e){e=""+e||"";return this.assertLegalChar(e)};XMLStringifier.prototype.eleText=function(e){e=""+e||"";return this.assertLegalChar(this.elEscape(e))};XMLStringifier.prototype.cdata=function(e){e=""+e||"";e=e.replace("]]>","]]]]>");return this.assertLegalChar(e)};XMLStringifier.prototype.comment=function(e){e=""+e||"";if(e.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+e)}return this.assertLegalChar(e)};XMLStringifier.prototype.raw=function(e){return""+e||""};XMLStringifier.prototype.attName=function(e){return e=""+e||""};XMLStringifier.prototype.attValue=function(e){e=""+e||"";return this.attEscape(e)};XMLStringifier.prototype.insTarget=function(e){return""+e||""};XMLStringifier.prototype.insValue=function(e){e=""+e||"";if(e.match(/\?>/)){throw new Error("Invalid processing instruction value: "+e)}return e};XMLStringifier.prototype.xmlVersion=function(e){e=""+e||"";if(!e.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+e)}return e};XMLStringifier.prototype.xmlEncoding=function(e){e=""+e||"";if(!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+e)}return e};XMLStringifier.prototype.xmlStandalone=function(e){if(e){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(e){return""+e||""};XMLStringifier.prototype.dtdSysID=function(e){return""+e||""};XMLStringifier.prototype.dtdElementValue=function(e){return""+e||""};XMLStringifier.prototype.dtdAttType=function(e){return""+e||""};XMLStringifier.prototype.dtdAttDefault=function(e){if(e!=null){return""+e||""}else{return e}};XMLStringifier.prototype.dtdEntityValue=function(e){return""+e||""};XMLStringifier.prototype.dtdNData=function(e){return""+e||""};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(e){var t;t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(t){throw new Error("Invalid character in string: "+e+" at index "+t.index)}return e};XMLStringifier.prototype.elEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(//g,">").replace(/\r/g," ")};XMLStringifier.prototype.attEscape=function(e){var t;t=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return e.replace(t,"&").replace(/0){return new Array(t).join(this.indent)}else{return""}}else{return""}};return XMLWriterBase}()}).call(this)},5769:function(e,t,r){(function(){var t,i,n,s,o,a,u;u=r(983),o=u.assign,a=u.isFunction;t=r(1582);i=r(2871);s=r(7834);n=r(5922);e.exports.create=function(e,r,i,n){var s,a;if(e==null){throw new Error("Root element needs a name")}n=o({},r,i,n);s=new t(n);a=s.element(e);if(!n.headless){s.declaration(n);if(n.pubID!=null||n.sysID!=null){s.doctype(n)}}return a};e.exports.begin=function(e,r,n){var s;if(a(e)){s=[e,r],r=s[0],n=s[1];e={}}if(r){return new i(e,r,n)}else{return new t(e)}};e.exports.stringWriter=function(e){return new s(e)};e.exports.streamWriter=function(e,t){return new n(e,t)}}).call(this)},2178:(e,t,r)=>{"use strict";r.r(t);r.d(t,{default:()=>u});var i=r(7117);var n=r.n(i);var s=r(7181);var o=r.n(s);function exportEnvVariables(e){i.exportVariable("AWS_ACCESS_KEY_ID",e.accessKeyId);i.exportVariable("AWS_SECRET_ACCESS_KEY",e.secretAccessKey);if(e.sessionToken){i.exportVariable("AWS_SESSION_TOKEN",e.sessionToken)}i.exportVariable("AWS_DEFAULT_REGION",e.region);i.exportVariable("AWS_REGION",e.region)}const a=async()=>{try{const e=i.getInput("aws-region",{required:true});const t=i.getInput("aws-access-key-id",{required:true});const r=i.getInput("aws-secret-access-key",{required:true});const n=i.getInput("aws-session-token",{required:false});const o=i.getInput("mask-aws-account-id",{required:false});const a={region:e,accessKeyId:t,secretAccessKey:r,sessionToken:n,maskAccountId:o};exportEnvVariables(a);const u=i.getInput("assume-role",{required:false});const c=u&&u.toLowerCase()=="true";const l=i.getInput("role-arn",{required:c});const f=i.getInput("role-session-name",{required:c});const h=i.getInput("duration-seconds",{required:false});const p=Math.max(parseInt(h),900);const d=i.getInput("external-id",{required:false});const v=new s({apiVersion:"2011-06-15",customUserAgent:"aws-github-actions-sts"});const m={RoleArn:l,RoleSessionName:f,DurationSecond:p,ExternalId:d};if(c){const e=await v.assumeRole(m).promise();a.accessKeyId=e.Credentials.AccessKeyId;a.secretAccessKey=e.Credentials.SecretAccessKey;a.sessionToken=e.Credentials.SessionToken;exportEnvVariables(a)}const g=await v.getCallerIdentity().promise();const y=g.Account;i.setOutput("aws-account-id",y);if(!a.maskAccountId||a.maskAccountId.toLowerCase()=="true"){i.setSecret(y)}}catch(e){i.setFailed(e.message)}};a();const u=a},9875:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}}},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}}},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}}}}')},7067:e=>{"use strict";e.exports={o:{}}},2969:e=>{"use strict";e.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena"},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2"},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"}}')},6129:e=>{"use strict";e.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{"type":"string","sensitive":true},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{"type":"string","sensitive":true},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sm"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Sh"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Sh":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sm":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},7202:e=>{"use strict";e.exports={o:{}}},9294:e=>{"use strict";e.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"}}}')},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},6417:e=>{"use strict";e.exports=require("crypto")},6200:e=>{"use strict";e.exports=require("dgram")},5229:e=>{"use strict";e.exports=require("domain")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1191:e=>{"use strict";e.exports=require("querystring")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},8213:e=>{"use strict";e.exports=require("timers")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var i=t[r]={exports:{}};var n=true;try{e[r].call(i.exports,i,i.exports,__webpack_require__);n=false}finally{if(n)delete t[r]}return i.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(2178)})(); \ No newline at end of file diff --git a/packages/s3_sync/dist/index.js b/packages/s3_sync/dist/index.js deleted file mode 100644 index be7be5a..0000000 --- a/packages/s3_sync/dist/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports=(()=>{var e={548:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));const s=r(472);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},117:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(548);const o=r(469);const a=r(472);const c=i(r(87));const u=i(r(622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;o.issueCommand("ENV",n)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},469:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(747));const s=n(r(87));const o=r(472);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${o.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},472:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},473:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(66));function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=s.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new s.ToolRunner(i,t,r);return o.exec()})}t.exec=exec},66:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(87));const o=i(r(614));const a=i(r(129));const c=i(r(622));const u=i(r(890));const l=i(r(327));const f=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(f){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(s.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+s.EOL.length);i=n.indexOf(s.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+s.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const o=a.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));const c="";if(o.stdout){o.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const u="";if(o.stderr){o.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}o.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});o.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});o.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let s=0;s0){t.push(i);i=""}continue}append(o)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(211);const o=r(466);let a;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const d=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const p=10;const E=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){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=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const a=l.message.headers["location"];if(!a){break}let c=n.parse(a);if(s.protocol=="https:"&&s.protocol!=c.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.")}await l.readBody();if(c.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,c,i);l=await this.requestRaw(o,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let c=n&&n.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(c){if(!a){a=r(382)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(u){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=u?s.globalAgent:i.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=E*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==c.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},327:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const s=r(357);const o=r(747);const a=r(622);i=o.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){s.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const s of r){e=i+s;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},890:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const s=r(622);const o=r(669);const a=r(327);const c=o.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const o=(yield a.exists(t))?yield a.stat(t):null;if(o&&o.isFile()&&!n){return}const c=o&&o.isDirectory()?s.join(t,s.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield a.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(s.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=s.join(t,s.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(s.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(s.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+s.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const s of n){const n=`${e}/${s}`;const o=`${t}/${s}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,r,i)}else{yield copyFile(n,o,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},399:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(800));const o=r(117);const a=r(87);const c=r(129);const u=r(747);function _findMatch(t,r,i,c){return n(this,void 0,void 0,function*(){const n=a.platform();let u;let l;let f;for(const a of i){const i=a.version;o.debug(`check ${i} satisfies ${t}`);if(s.satisfies(i,t)&&(!r||a.stable===r)){f=a.files.find(t=>{o.debug(`${t.arch}===${c} && ${t.platform}===${n}`);let r=t.arch===c&&t.platform===n;if(r&&t.platform_version){const n=e.exports._getOsVersion();if(n===t.platform_version){r=true}else{r=s.satisfies(n,t.platform_version)}}return r});if(f){o.debug(`matched ${a.version}`);l=a;break}}}if(l&&f){u=Object.assign({},l);u.files=[f]}return u})}t._findMatch=_findMatch;function _getOsVersion(){const t=a.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&e[0].trim()==="DISTRIB_RELEASE"){r=e[1].trim();break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";let t="";if(u.existsSync(e)){t=u.readFileSync(e).toString()}return t}t._readLinuxVersionFile=_readLinuxVersionFile},984:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(117));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,function*(){let r=1;while(rsetTimeout(t,e*1e3))})}}t.RetryHelper=RetryHelper},834:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(117));const a=i(r(890));const c=i(r(747));const u=i(r(399));const l=i(r(87));const f=i(r(622));const d=i(r(926));const h=i(r(800));const p=i(r(413));const E=i(r(669));const v=s(r(576));const y=r(473);const w=r(357);const g=r(984);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,undefined)}}t.HTTPError=HTTPError;const m=process.platform==="win32";const R=process.platform==="darwin";const S="actions/tool-cache";function downloadTool(e,t,r){return n(this,void 0,void 0,function*(){t=t||f.join(_getTempDirectory(),v.default());yield a.mkdirP(f.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const i=3;const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new g.RetryHelper(i,s,c);return yield u.execute(()=>n(this,void 0,void 0,function*(){return yield downloadToolAttempt(e,t||"",r)}),e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true})})}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r){return n(this,void 0,void 0,function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new d.HttpClient(S,[],{allowRetries:false});let i;if(r){o.debug("set auth");i={authorization:r}}const s=yield n.get(e,i);if(s.message.statusCode!==200){const t=new HTTPError(s.message.statusCode);o.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`);throw t}const u=E.promisify(p.pipeline);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>s.message);const f=l();let h=false;try{yield u(f,c.createWriteStream(t));o.debug("download complete");h=true;return t}finally{if(!h){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}})}function extract7z(e,t,r){return n(this,void 0,void 0,function*(){w.ok(m,"extract7z() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=o.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield y.exec(`"${r}"`,i,s)}finally{process.chdir(n)}}else{const r=f.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=`& '${r}' -Source '${i}' -Target '${s}'`;const c=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",o];const u={silent:true};try{const e=yield a.which("powershell",true);yield y.exec(`"${e}"`,c,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let n="";yield y.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});o.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let s;if(r instanceof Array){s=r}else{s=[r]}if(o.isDebug()&&!r.includes("v")){s.push("-v")}let a=t;let c=e;if(m&&i){s.push("--force-local");a=t.replace(/\\/g,"/");c=e.replace(/\\/g,"/")}if(i){s.push("--warning=no-unknown-keyword")}s.push("-C",a,"-f",c);yield y.exec(`tar`,s);return t})}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,function*(){w.ok(R,"extractXar() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(o.isDebug()){n.push("-v")}const i=yield a.which("xar",true);yield y.exec(`"${i}"`,_unique(n));return t})}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(m){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield a.which("powershell",true);const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield y.exec(`"${s}"`,o)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield a.which("unzip",true);const n=[e];if(!o.isDebug()){n.unshift("-q")}yield y.exec(`"${r}"`,n,{cwd:t})})}function cacheDir(e,t,r,i){return n(this,void 0,void 0,function*(){r=h.clean(r)||r;i=i||l.arch();o.debug(`Caching tool ${t} ${r} ${i}`);o.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=f.join(e,t);yield a.cp(r,n,{recursive:true})}_completeToolPath(t,r,i);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,function*(){i=h.clean(i)||i;s=s||l.arch();o.debug(`Caching tool ${r} ${i} ${s}`);o.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,i,s);const u=f.join(n,t);o.debug(`destination file ${u}`);yield a.cp(e,u);_completeToolPath(r,i,s);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||l.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=h.clean(t)||"";const i=f.join(_getCacheDirectory(),e,t,r);o.debug(`checking cache: ${i}`);if(c.existsSync(i)&&c.existsSync(`${i}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${r}`);n=i}else{o.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||l.arch();const n=f.join(_getCacheDirectory(),e);if(c.existsSync(n)){const e=c.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=f.join(n,i,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,function*(){let n=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const a=new d.HttpClient("tool-cache");const c={};if(r){o.debug("set auth");c.authorization=r}const u=yield a.getJson(s,c);if(!u.result){return n}let l="";for(const e of u.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}c["accept"]="application/vnd.github.VERSION.raw";let f=yield(yield a.get(l,c)).readBody();if(f){f=f.replace(/^\uFEFF/,"");try{n=JSON.parse(f)}catch(e){o.debug("Invalid json")}}return n})}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=l.arch()){return n(this,void 0,void 0,function*(){const n=yield u._findMatch(e,t,r,i);return n})}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=f.join(_getTempDirectory(),v.default())}yield a.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=f.join(_getCacheDirectory(),e,h.clean(t)||t,r||"");o.debug(`destination ${n}`);const i=`${n}.complete`;yield a.rmRF(n);yield a.rmRF(i);yield a.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=f.join(_getCacheDirectory(),e,h.clean(t)||t,r||"");const i=`${n}.complete`;c.writeFileSync(i,"");o.debug("finished caching tool")}function _isExplicitVersion(e){const t=h.clean(e)||"";o.debug(`isExplicit: ${t}`);const r=h.valid(t)!=null;o.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";o.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(h.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const s=h.satisfies(i,t);if(s){r=i;break}}if(r){o.debug(`matched: ${r}`)}else{o.debug("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";w.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";w.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},800:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";o[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";o[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";o[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hn){return null}var r=t.loose?o[c.LOOSE]:o[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[c.LOOSE]:o[c.FULL]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var p=/^[0-9]+$/;function compareIdentifiers(e,t){var r=p.test(e);var n=p.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===E){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var E={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=E}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===E||e===E){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[c.COMPARATORTRIM],d);r("comparator trim",e,o[c.COMPARATORTRIM]);e=e.replace(o[c.TILDETRIM],l);e=e.replace(o[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[c.TILDELOOSE]:o[c.TILDE];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[c.CARETLOOSE]:o[c.CARET];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return e.replace(n,function(n,i,s,o,a,c){r("xRange",e,n,i,s,o,a,c);var u=isX(s);var l=u||isX(o);var f=l||isX(a);var d=f;if(i==="="&&d){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&d){if(l){o=0}a=0;if(i===">"){i=">=";if(l){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(l){s=+s+1}else{o=+o+1}}n=i+s+"."+o+"."+a+c}else if(l){n=">="+s+".0.0"+c+" <"+(+s+1)+".0.0"+c}else if(f){n=">="+s+"."+o+".0"+c+" <"+s+"."+(+o+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[c.STAR],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;d=d||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,d.semver,n)){d=e}});if(f.operator===a||f.operator===c){return false}if((!d.operator||d.operator===a)&&s(e,d.semver)){return false}else if(d.operator===c&&o(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(o[c.COERCE])}else{var n;while((n=o[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}o[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}o[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},574:(e,t)=>{"use strict";var r;r=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var i=e;var s=[];if(t){s.push(t)}if(r){s.push(r)}var o;do{o=n.exec(i);if(o!==null){s.push(firstString(o[1],o[6],o[0]))}}while(o!==null);return s}t.ZP=parseArgsStringToArgv;r=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t{e.exports=r(418)},418:(e,t,r)=>{"use strict";var n=r(631);var i=r(16);var s=r(605);var o=r(211);var a=r(614);var c=r(357);var u=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,i){var s=toOptions(r,n,i);for(var o=0,a=t.requests.length;o=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");o.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},74:(e,t,r)=>{var n=r(417);e.exports=function nodeRNG(){return n.randomBytes(16)}},576:(e,t,r)=>{var n=r(74);var i=r(42);function v4(e,t,r){var s=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||n)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var a=0;a<16;++a){t[s+a]=o[a]}}return t||i(o)}e.exports=v4},643:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]{"use strict";r.r(t);r.d(t,{default:()=>f});var n=r(117);var i=r.n(n);var s=r(747);var o=r.n(s);var a=r(574);var c=r(643);var u=r.n(c);const l=async()=>{try{const e=n.getInput("local-path",{required:true});const t=await s.promises.lstat(e);if(!t.isDirectory()){n.error(`Error: sync API synchronizes a directory not a single file`)}const r=n.getInput("bucket-name",{required:true});const i=n.getInput("path-prefix",{required:false});const o=(0,a.ZP)(n.getInput("args",{required:false}).trim());const c=`s3://${r}/${i}`;const l=await u().getOrInstall();await l.call(["s3","sync",e,c,...o])}catch(e){n.setFailed(e.message)}};l();const f=l},357:e=>{"use strict";e.exports=require("assert")},129:e=>{"use strict";e.exports=require("child_process")},417:e=>{"use strict";e.exports=require("crypto")},614:e=>{"use strict";e.exports=require("events")},747:e=>{"use strict";e.exports=require("fs")},605:e=>{"use strict";e.exports=require("http")},211:e=>{"use strict";e.exports=require("https")},631:e=>{"use strict";e.exports=require("net")},87:e=>{"use strict";e.exports=require("os")},622:e=>{"use strict";e.exports=require("path")},765:e=>{"use strict";e.exports=require("process")},413:e=>{"use strict";e.exports=require("stream")},16:e=>{"use strict";e.exports=require("tls")},835:e=>{"use strict";e.exports=require("url")},669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete t[r]}return n.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(178)})(); \ No newline at end of file diff --git a/packages/s3_sync/CHANGELOG.md b/s3_sync/CHANGELOG.md similarity index 100% rename from packages/s3_sync/CHANGELOG.md rename to s3_sync/CHANGELOG.md diff --git a/packages/s3_sync/README.md b/s3_sync/README.md similarity index 89% rename from packages/s3_sync/README.md rename to s3_sync/README.md index 1d79ac2..ea20a33 100644 --- a/packages/s3_sync/README.md +++ b/s3_sync/README.md @@ -15,7 +15,7 @@ Note: The sync action works on directories only, not individual files, and can b ## Usage ```yml -- uses: clowdhaus/aws-github-actions/packages/s3_sync@v0.4 +- uses: clowdhaus/aws-github-actions/s3_sync@master with: # Path to local directory to synchronize, starting from project root directory # Required: true @@ -42,7 +42,7 @@ Note: The sync action works on directories only, not individual files, and can b ### Sync to root of S3 bucket ```yml -- uses: clowdhaus/aws-github-actions/packages/s3_sync@v0.4 +- uses: clowdhaus/aws-github-actions/s3_sync@master with: local-path: dist/ bucket-name: my-s3-bucket @@ -51,7 +51,7 @@ Note: The sync action works on directories only, not individual files, and can b ### Sync to S3 bucket prefix ```yml -- uses: clowdhaus/aws-github-actions/packages/s3_sync@v0.4 +- uses: clowdhaus/aws-github-actions/s3_sync@master with: local-path: dist/ bucket-name: my-s3-bucket @@ -61,7 +61,7 @@ Note: The sync action works on directories only, not individual files, and can b ### Sync to S3 bucket prefix & delete files not in source ```yml -- uses: clowdhaus/aws-github-actions/packages/s3_sync@v0.4 +- uses: clowdhaus/aws-github-actions/s3_sync@master with: local-path: dist/ bucket-name: my-s3-bucket @@ -75,7 +75,7 @@ Only syncs `*.js` files in `dist/` directory and delete those no longer found fr Note: order of args dictates precedence - see [documentation](https://docs.aws.amazon.com/cli/latest/reference/s3/index.html#use-of-exclude-and-include-filters) ```yml -- uses: clowdhaus/aws-github-actions/packages/s3_sync@v0.4 +- uses: clowdhaus/aws-github-actions/s3_sync@master with: local-path: dist/ bucket-name: my-s3-bucket diff --git a/packages/s3_sync/action.yml b/s3_sync/action.yml similarity index 100% rename from packages/s3_sync/action.yml rename to s3_sync/action.yml diff --git a/s3_sync/dist/index.js b/s3_sync/dist/index.js new file mode 100644 index 0000000..90e899c --- /dev/null +++ b/s3_sync/dist/index.js @@ -0,0 +1 @@ +module.exports=(()=>{var e={190:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(87));const s=r(861);function issueCommand(e,t,r){const n=new Command(e,t,r);process.stdout.write(n.toString()+i.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,r){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=r}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const n=this.properties[r];if(n){if(t){t=false}else{e+=","}e+=`${r}=${escapeProperty(n)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},316:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=r(190);const o=r(685);const a=r(861);const c=i(r(87));const u=i(r(622));var l;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(l=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const r=a.toCommandValue(t);process.env[e]=r;const n=process.env["GITHUB_ENV"]||"";if(n){const t="_GitHubActionsFileCommandDelimeter_";const n=`${e}<<${t}${c.EOL}${r}${c.EOL}${t}`;o.issueCommand("ENV",n)}else{s.issueCommand("set-env",{name:e},r)}}t.exportVariable=exportVariable;function setSecret(e){s.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{s.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${u.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r){throw new Error(`Input required and not supplied: ${e}`)}return r.trim()}t.getInput=getInput;function setOutput(e,t){s.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){s.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=l.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){s.issueCommand("debug",{},e)}t.debug=debug;function error(e){s.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){s.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+c.EOL)}t.info=info;function startGroup(e){s.issue("group",e)}t.startGroup=startGroup;function endGroup(){s.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return n(this,void 0,void 0,function*(){startGroup(e);let r;try{r=yield t()}finally{endGroup()}return r})}t.group=group;function saveState(e,t){s.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},685:function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(747));const s=n(r(87));const o=r(861);function issueCommand(e,t){const r=process.env[`GITHUB_${e}`];if(!r){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(r)){throw new Error(`Missing file at path: ${r}`)}i.appendFileSync(r,`${o.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});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},110:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(515));function exec(e,t,r){return n(this,void 0,void 0,function*(){const n=s.argStringToArray(e);if(n.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=n[0];t=n.slice(1).concat(t||[]);const o=new s.ToolRunner(i,t,r);return o.exec()})}t.exec=exec},515:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(87));const o=i(r(614));const a=i(r(129));const c=i(r(622));const u=i(r(560));const l=i(r(995));const f=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,r){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=r||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const r=this._getSpawnFileName();const n=this._getSpawnArgs(e);let i=t?"":"[command]";if(f){if(this._isCmdFile()){i+=r;for(const e of n){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${r}"`;for(const e of n){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(r);for(const e of n){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=r;for(const e of n){i+=` ${e}`}}return i}_processLineBuffer(e,t,r){try{let n=t+e.toString();let i=n.indexOf(s.EOL);while(i>-1){const e=n.substring(0,i);r(e);n=n.substring(i+s.EOL.length);i=n.indexOf(s.EOL)}t=n}catch(e){this._debug(`error processing line. Failed with error ${e}`)}}_getSpawnFileName(){if(f){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(f){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const r of this.args){t+=" ";t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r)}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 r=false;for(const n of e){if(t.some(e=>e===n)){r=true;break}}if(!r){return e}let n='"';let i=true;for(let t=e.length;t>0;t--){n+=e[t-1];if(i&&e[t-1]==="\\"){n+="\\"}else if(e[t-1]==='"'){i=true;n+='"'}else{i=false}}n+='"';return n.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 r=true;for(let n=e.length;n>0;n--){t+=e[n-1];if(r&&e[n-1]==="\\"){t+="\\"}else if(e[n-1]==='"'){r=true;t+="\\"}else{r=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 r={};r.cwd=e.cwd;r.env=e.env;r["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){r.argv0=`"${t}"`}return r}exec(){return n(this,void 0,void 0,function*(){if(!l.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&this.toolPath.includes("\\"))){this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield u.which(this.toolPath,true);return new Promise((e,t)=>{this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const r=this._cloneExecOptions(this.options);if(!r.silent&&r.outStream){r.outStream.write(this._getCommandString(r)+s.EOL)}const n=new ExecState(r,this.toolPath);n.on("debug",e=>{this._debug(e)});const i=this._getSpawnFileName();const o=a.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i));const c="";if(o.stdout){o.stdout.on("data",e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!r.silent&&r.outStream){r.outStream.write(e)}this._processLineBuffer(e,c,e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}})})}const u="";if(o.stderr){o.stderr.on("data",e=>{n.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!r.silent&&r.errStream&&r.outStream){const t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}this._processLineBuffer(e,u,e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}})})}o.on("error",e=>{n.processError=e.message;n.processExited=true;n.processClosed=true;n.CheckComplete()});o.on("exit",e=>{n.processExitCode=e;n.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);n.CheckComplete()});o.on("close",e=>{n.processExitCode=e;n.processExited=true;n.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);n.CheckComplete()});n.on("done",(r,n)=>{if(c.length>0){this.emit("stdline",c)}if(u.length>0){this.emit("errline",u)}o.removeAllListeners();if(r){t(r)}else{e(n)}});if(this.options.input){if(!o.stdin){throw new Error("child process missing stdin")}o.stdin.end(this.options.input)}})})}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let r=false;let n=false;let i="";function append(e){if(n&&e!=='"'){i+="\\"}i+=e;n=false}for(let s=0;s0){t.push(i);i=""}continue}append(o)}if(i.length>0){t.push(i.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.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=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()}}},770:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);const i=r(605);const s=r(211);const o=r(450);let a;var c;(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"})(c=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var l;(function(e){e["ApplicationJson"]="application/json"})(l=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){let t=o.getProxyUrl(n.parse(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const f=[c.MovedPermanently,c.ResourceMoved,c.SeeOther,c.TemporaryRedirect,c.PermanentRedirect];const d=[c.BadGateway,c.ServiceUnavailable,c.GatewayTimeout];const h=["OPTIONS","GET","DELETE","HEAD"];const p=10;const E=5;class HttpClientResponse{constructor(e){this.message=e}readBody(){return new Promise(async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",e=>{r=Buffer.concat([r,e])});this.message.on("end",()=>{e(r.toString())})})}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){let t=n.parse(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,r){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=r;if(r){if(r.ignoreSslError!=null){this._ignoreSslError=r.ignoreSslError}this._socketTimeout=r.socketTimeout;if(r.allowRedirects!=null){this._allowRedirects=r.allowRedirects}if(r.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=r.allowRedirectDowngrade}if(r.maxRedirects!=null){this._maxRedirects=Math.max(r.maxRedirects,0)}if(r.keepAlive!=null){this._keepAlive=r.keepAlive}if(r.allowRetries!=null){this._allowRetries=r.allowRetries}if(r.maxRetries!=null){this._maxRetries=r.maxRetries}}}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,l.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.post(e,n,r);return this._processResponse(i,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.put(e,n,r);return this._processResponse(i,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[u.Accept]=this._getExistingOrDefaultHeader(r,u.Accept,l.ApplicationJson);r[u.ContentType]=this._getExistingOrDefaultHeader(r,u.ContentType,l.ApplicationJson);let i=await this.patch(e,n,r);return this._processResponse(i,this.requestOptions)}async request(e,t,r,i){if(this._disposed){throw new Error("Client has already been disposed.")}let s=n.parse(t);let o=this._prepareRequest(e,s,i);let a=this._allowRetries&&h.indexOf(e)!=-1?this._maxRetries+1:1;let u=0;let l;while(u0){const a=l.message.headers["location"];if(!a){break}let c=n.parse(a);if(s.protocol=="https:"&&s.protocol!=c.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.")}await l.readBody();if(c.hostname!==s.hostname){for(let e in i){if(e.toLowerCase()==="authorization"){delete i[e]}}}o=this._prepareRequest(e,c,i);l=await this.requestRaw(o,r);t--}if(d.indexOf(l.message.statusCode)==-1){return l}u+=1;if(u{let i=function(e,t){if(e){n(e)}r(t)};this.requestRawWithCallback(e,t,i)})}requestRawWithCallback(e,t,r){let n;if(typeof t==="string"){e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let i=false;let s=(e,t)=>{if(!i){i=true;r(e,t)}};let o=e.httpModule.request(e.options,e=>{let t=new HttpClientResponse(e);s(null,t)});o.on("socket",e=>{n=e});o.setTimeout(this._socketTimeout||3*6e4,()=>{if(n){n.end()}s(new Error("Request timeout: "+e.options.path),null)});o.on("error",function(e){s(e,null)});if(t&&typeof t==="string"){o.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",function(){o.end()});t.pipe(o)}else{o.end()}}getAgent(e){let t=n.parse(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o=n.parsedUrl.protocol==="https:";n.httpModule=o?s:i;const a=o?443:80;n.options={};n.options.host=n.parsedUrl.hostname;n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):a;n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||"");n.options.method=e;n.options.headers=this._mergeHeaders(r);if(this.userAgent!=null){n.options.headers["user-agent"]=this.userAgent}n.options.agent=this._getAgent(n.parsedUrl);if(this.handlers){this.handlers.forEach(e=>{e.prepareRequest(n.options)})}return n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},t(this.requestOptions.headers),t(e))}return t(e||{})}_getExistingOrDefaultHeader(e,t,r){const n=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});let i;if(this.requestOptions&&this.requestOptions.headers){i=n(this.requestOptions.headers)[t]}return e[t]||i||r}_getAgent(e){let t;let n=o.getProxyUrl(e);let c=n&&n.hostname;if(this._keepAlive&&c){t=this._proxyAgent}if(this._keepAlive&&!c){t=this._agent}if(!!t){return t}const u=e.protocol==="https:";let l=100;if(!!this.requestOptions){l=this.requestOptions.maxSockets||i.globalAgent.maxSockets}if(c){if(!a){a=r(220)}const e={maxSockets:l,keepAlive:this._keepAlive,proxy:{proxyAuth:n.auth,host:n.hostname,port:n.port}};let i;const s=n.protocol==="https:";if(u){i=s?a.httpsOverHttps:a.httpsOverHttp}else{i=s?a.httpOverHttps:a.httpOverHttp}t=i(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:l};t=u?new s.Agent(e):new i.Agent(e);this._agent=t}if(!t){t=u?s.globalAgent:i.globalAgent}if(u&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){e=Math.min(p,e);const t=E*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}static dateTimeDeserializer(e,t){if(typeof t==="string"){let e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}async _processResponse(e,t){return new Promise(async(r,n)=>{const i=e.message.statusCode;const s={statusCode:i,result:null,headers:{}};if(i==c.NotFound){r(s)}let o;let a;try{a=await e.readBody();if(a&&a.length>0){if(t&&t.deserializeDates){o=JSON.parse(a,HttpClient.dateTimeDeserializer)}else{o=JSON.parse(a)}s.result=o}s.headers=e.message.headers}catch(e){}if(i>299){let e;if(o&&o.message){e=o.message}else if(a&&a.length>0){e=a}else{e="Failed request: ("+i+")"}let t=new Error(e);t["statusCode"]=i;if(s.result){t["result"]=s.result}n(t)}else{r(s)}})}}t.HttpClient=HttpClient},450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(835);function getProxyUrl(e){let t=e.protocol==="https:";let r;if(checkBypass(e)){return r}let i;if(t){i=process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{i=process.env["http_proxy"]||process.env["HTTP_PROXY"]}if(i){r=n.parse(i)}return r}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}let t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}let n=[e.hostname.toUpperCase()];if(typeof r==="number"){n.push(`${n[0]}:${r}`)}for(let e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(n.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},995:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i;Object.defineProperty(t,"__esModule",{value:true});const s=r(357);const o=r(747);const a=r(622);i=o.promises,t.chmod=i.chmod,t.copyFile=i.copyFile,t.lstat=i.lstat,t.mkdir=i.mkdir,t.readdir=i.readdir,t.readlink=i.readlink,t.rename=i.rename,t.rmdir=i.rmdir,t.stat=i.stat,t.symlink=i.symlink,t.unlink=i.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return n(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,r=false){return n(this,void 0,void 0,function*(){const n=r?yield t.stat(e):yield t.lstat(e);return n.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 mkdirP(e,r=1e3,i=1){return n(this,void 0,void 0,function*(){s.ok(e,"a path argument must be provided");e=a.resolve(e);if(i>=r)return t.mkdir(e);try{yield t.mkdir(e);return}catch(n){switch(n.code){case"ENOENT":{yield mkdirP(a.dirname(e),r,i+1);yield t.mkdir(e);return}default:{let r;try{r=yield t.stat(e)}catch(e){throw n}if(!r.isDirectory())throw n}}}})}t.mkdirP=mkdirP;function tryGetExecutablePath(e,r){return n(this,void 0,void 0,function*(){let n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){const t=a.extname(e).toUpperCase();if(r.some(e=>e.toUpperCase()===t)){return e}}else{if(isUnixExecutable(n)){return e}}}const i=e;for(const s of r){e=i+s;n=undefined;try{n=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(t.IS_WINDOWS){try{const r=a.dirname(e);const n=a.basename(e).toUpperCase();for(const i of yield t.readdir(r)){if(n===i.toUpperCase()){e=a.join(r,i);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){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()}},560:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:true});const i=r(129);const s=r(622);const o=r(669);const a=r(995);const c=o.promisify(i.exec);function cp(e,t,r={}){return n(this,void 0,void 0,function*(){const{force:n,recursive:i}=readCopyOptions(r);const o=(yield a.exists(t))?yield a.stat(t):null;if(o&&o.isFile()&&!n){return}const c=o&&o.isDirectory()?s.join(t,s.basename(e)):t;if(!(yield a.exists(e))){throw new Error(`no such file or directory: ${e}`)}const u=yield a.stat(e);if(u.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,c,0,n)}}else{if(s.relative(e,c)===""){throw new Error(`'${c}' and '${e}' are the same file`)}yield copyFile(e,c,n)}})}t.cp=cp;function mv(e,t,r={}){return n(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=true;if(yield a.isDirectory(t)){t=s.join(t,s.basename(e));n=yield a.exists(t)}if(n){if(r.force==null||r.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(s.dirname(t));yield a.rename(e,t)})}t.mv=mv;function rmRF(e){return n(this,void 0,void 0,function*(){if(a.IS_WINDOWS){try{if(yield a.isDirectory(e,true)){yield c(`rd /s /q "${e}"`)}else{yield c(`del /f /a "${e}"`)}}catch(e){if(e.code!=="ENOENT")throw e}try{yield a.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield a.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm -rf "${e}"`)}else{yield a.unlink(e)}}})}t.rmRF=rmRF;function mkdirP(e){return n(this,void 0,void 0,function*(){yield a.mkdirP(e)})}t.mkdirP=mkdirP;function which(e,t){return n(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(a.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.`)}}}try{const t=[];if(a.IS_WINDOWS&&process.env.PATHEXT){for(const e of process.env.PATHEXT.split(s.delimiter)){if(e){t.push(e)}}}if(a.isRooted(e)){const r=yield a.tryGetExecutablePath(e,t);if(r){return r}return""}if(e.includes("/")||a.IS_WINDOWS&&e.includes("\\")){return""}const r=[];if(process.env.PATH){for(const e of process.env.PATH.split(s.delimiter)){if(e){r.push(e)}}}for(const n of r){const r=yield a.tryGetExecutablePath(n+s.sep+e,t);if(r){return r}}return""}catch(e){throw new Error(`which failed with message ${e.message}`)}})}t.which=which;function readCopyOptions(e){const t=e.force==null?true:e.force;const r=Boolean(e.recursive);return{force:t,recursive:r}}function cpDirRecursive(e,t,r,i){return n(this,void 0,void 0,function*(){if(r>=255)return;r++;yield mkdirP(t);const n=yield a.readdir(e);for(const s of n){const n=`${e}/${s}`;const o=`${t}/${s}`;const c=yield a.lstat(n);if(c.isDirectory()){yield cpDirRecursive(n,o,r,i)}else{yield copyFile(n,o,i)}}yield a.chmod(t,(yield a.stat(e)).mode)})}function copyFile(e,t,r){return n(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t);yield a.unlink(t)}catch(e){if(e.code==="EPERM"){yield a.chmod(t,"0666");yield a.unlink(t)}}const r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null)}else if(!(yield a.exists(t))||r){yield a.copyFile(e,t)}})}},529:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(660));const o=r(316);const a=r(87);const c=r(129);const u=r(747);function _findMatch(t,r,i,c){return n(this,void 0,void 0,function*(){const n=a.platform();let u;let l;let f;for(const a of i){const i=a.version;o.debug(`check ${i} satisfies ${t}`);if(s.satisfies(i,t)&&(!r||a.stable===r)){f=a.files.find(t=>{o.debug(`${t.arch}===${c} && ${t.platform}===${n}`);let r=t.arch===c&&t.platform===n;if(r&&t.platform_version){const n=e.exports._getOsVersion();if(n===t.platform_version){r=true}else{r=s.satisfies(n,t.platform_version)}}return r});if(f){o.debug(`matched ${a.version}`);l=a;break}}}if(l&&f){u=Object.assign({},l);u.files=[f]}return u})}t._findMatch=_findMatch;function _getOsVersion(){const t=a.platform();let r="";if(t==="darwin"){r=c.execSync("sw_vers -productVersion").toString()}else if(t==="linux"){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(e.length===2&&e[0].trim()==="DISTRIB_RELEASE"){r=e[1].trim();break}}}}return r}t._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const e="/etc/lsb-release";let t="";if(u.existsSync(e)){t=u.readFileSync(e).toString()}return t}t._readLinuxVersionFile=_readLinuxVersionFile},624:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(r(316));class RetryHelper{constructor(e,t,r){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(r);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return n(this,void 0,void 0,function*(){let r=1;while(rsetTimeout(t,e*1e3))})}}t.RetryHelper=RetryHelper},303:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=i(r(316));const a=i(r(560));const c=i(r(747));const u=i(r(529));const l=i(r(87));const f=i(r(622));const d=i(r(770));const h=i(r(660));const p=i(r(413));const E=i(r(669));const v=s(r(180));const y=r(110);const w=r(357);const g=r(624);class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,undefined)}}t.HTTPError=HTTPError;const m=process.platform==="win32";const R=process.platform==="darwin";const S="actions/tool-cache";function downloadTool(e,t,r){return n(this,void 0,void 0,function*(){t=t||f.join(_getTempDirectory(),v.default());yield a.mkdirP(f.dirname(t));o.debug(`Downloading ${e}`);o.debug(`Destination ${t}`);const i=3;const s=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const c=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const u=new g.RetryHelper(i,s,c);return yield u.execute(()=>n(this,void 0,void 0,function*(){return yield downloadToolAttempt(e,t||"",r)}),e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true})})}t.downloadTool=downloadTool;function downloadToolAttempt(e,t,r){return n(this,void 0,void 0,function*(){if(c.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const n=new d.HttpClient(S,[],{allowRetries:false});let i;if(r){o.debug("set auth");i={authorization:r}}const s=yield n.get(e,i);if(s.message.statusCode!==200){const t=new HTTPError(s.message.statusCode);o.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`);throw t}const u=E.promisify(p.pipeline);const l=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>s.message);const f=l();let h=false;try{yield u(f,c.createWriteStream(t));o.debug("download complete");h=true;return t}finally{if(!h){o.debug("download failed");try{yield a.rmRF(t)}catch(e){o.debug(`Failed to delete '${t}'. ${e.message}`)}}}})}function extract7z(e,t,r){return n(this,void 0,void 0,function*(){w.ok(m,"extract7z() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const n=process.cwd();process.chdir(t);if(r){try{const t=o.isDebug()?"-bb1":"-bb0";const i=["x",t,"-bd","-sccUTF-8",e];const s={silent:true};yield y.exec(`"${r}"`,i,s)}finally{process.chdir(n)}}else{const r=f.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const s=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=`& '${r}' -Source '${i}' -Target '${s}'`;const c=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",o];const u={silent:true};try{const e=yield a.which("powershell",true);yield y.exec(`"${e}"`,c,u)}finally{process.chdir(n)}}return t})}t.extract7z=extract7z;function extractTar(e,t,r="xz"){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);o.debug("Checking tar --version");let n="";yield y.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}});o.debug(n.trim());const i=n.toUpperCase().includes("GNU TAR");let s;if(r instanceof Array){s=r}else{s=[r]}if(o.isDebug()&&!r.includes("v")){s.push("-v")}let a=t;let c=e;if(m&&i){s.push("--force-local");a=t.replace(/\\/g,"/");c=e.replace(/\\/g,"/")}if(i){s.push("--warning=no-unknown-keyword")}s.push("-C",a,"-f",c);yield y.exec(`tar`,s);return t})}t.extractTar=extractTar;function extractXar(e,t,r=[]){return n(this,void 0,void 0,function*(){w.ok(R,"extractXar() not supported on current OS");w.ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let n;if(r instanceof Array){n=r}else{n=[r]}n.push("-x","-C",t,"-f",e);if(o.isDebug()){n.push("-v")}const i=yield a.which("xar",true);yield y.exec(`"${i}"`,_unique(n));return t})}t.extractXar=extractXar;function extractZip(e,t){return n(this,void 0,void 0,function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(m){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t})}t.extractZip=extractZip;function extractZipWin(e,t){return n(this,void 0,void 0,function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const n=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}')`;const s=yield a.which("powershell",true);const o=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i];yield y.exec(`"${s}"`,o)})}function extractZipNix(e,t){return n(this,void 0,void 0,function*(){const r=yield a.which("unzip",true);const n=[e];if(!o.isDebug()){n.unshift("-q")}yield y.exec(`"${r}"`,n,{cwd:t})})}function cacheDir(e,t,r,i){return n(this,void 0,void 0,function*(){r=h.clean(r)||r;i=i||l.arch();o.debug(`Caching tool ${t} ${r} ${i}`);o.debug(`source dir: ${e}`);if(!c.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const n=yield _createToolPath(t,r,i);for(const t of c.readdirSync(e)){const r=f.join(e,t);yield a.cp(r,n,{recursive:true})}_completeToolPath(t,r,i);return n})}t.cacheDir=cacheDir;function cacheFile(e,t,r,i,s){return n(this,void 0,void 0,function*(){i=h.clean(i)||i;s=s||l.arch();o.debug(`Caching tool ${r} ${i} ${s}`);o.debug(`source file: ${e}`);if(!c.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const n=yield _createToolPath(r,i,s);const u=f.join(n,t);o.debug(`destination file ${u}`);yield a.cp(e,u);_completeToolPath(r,i,s);return n})}t.cacheFile=cacheFile;function find(e,t,r){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}r=r||l.arch();if(!_isExplicitVersion(t)){const n=findAllVersions(e,r);const i=_evaluateVersions(n,t);t=i}let n="";if(t){t=h.clean(t)||"";const i=f.join(_getCacheDirectory(),e,t,r);o.debug(`checking cache: ${i}`);if(c.existsSync(i)&&c.existsSync(`${i}.complete`)){o.debug(`Found tool in cache ${e} ${t} ${r}`);n=i}else{o.debug("not found")}}return n}t.find=find;function findAllVersions(e,t){const r=[];t=t||l.arch();const n=f.join(_getCacheDirectory(),e);if(c.existsSync(n)){const e=c.readdirSync(n);for(const i of e){if(_isExplicitVersion(i)){const e=f.join(n,i,t||"");if(c.existsSync(e)&&c.existsSync(`${e}.complete`)){r.push(i)}}}}return r}t.findAllVersions=findAllVersions;function getManifestFromRepo(e,t,r,i="master"){return n(this,void 0,void 0,function*(){let n=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`;const a=new d.HttpClient("tool-cache");const c={};if(r){o.debug("set auth");c.authorization=r}const u=yield a.getJson(s,c);if(!u.result){return n}let l="";for(const e of u.result.tree){if(e.path==="versions-manifest.json"){l=e.url;break}}c["accept"]="application/vnd.github.VERSION.raw";let f=yield(yield a.get(l,c)).readBody();if(f){f=f.replace(/^\uFEFF/,"");try{n=JSON.parse(f)}catch(e){o.debug("Invalid json")}}return n})}t.getManifestFromRepo=getManifestFromRepo;function findFromManifest(e,t,r,i=l.arch()){return n(this,void 0,void 0,function*(){const n=yield u._findMatch(e,t,r,i);return n})}t.findFromManifest=findFromManifest;function _createExtractFolder(e){return n(this,void 0,void 0,function*(){if(!e){e=f.join(_getTempDirectory(),v.default())}yield a.mkdirP(e);return e})}function _createToolPath(e,t,r){return n(this,void 0,void 0,function*(){const n=f.join(_getCacheDirectory(),e,h.clean(t)||t,r||"");o.debug(`destination ${n}`);const i=`${n}.complete`;yield a.rmRF(n);yield a.rmRF(i);yield a.mkdirP(n);return n})}function _completeToolPath(e,t,r){const n=f.join(_getCacheDirectory(),e,h.clean(t)||t,r||"");const i=`${n}.complete`;c.writeFileSync(i,"");o.debug("finished caching tool")}function _isExplicitVersion(e){const t=h.clean(e)||"";o.debug(`isExplicit: ${t}`);const r=h.valid(t)!=null;o.debug(`explicit? ${r}`);return r}function _evaluateVersions(e,t){let r="";o.debug(`evaluating ${e.length} versions`);e=e.sort((e,t)=>{if(h.gt(e,t)){return 1}return-1});for(let n=e.length-1;n>=0;n--){const i=e[n];const s=h.satisfies(i,t);if(s){r=i;break}}if(r){o.debug(`matched: ${r}`)}else{o.debug("match not found")}return r}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";w.ok(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";w.ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const r=global[e];return r!==undefined?r:t}function _unique(e){return Array.from(new Set(e))}},660:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");o[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";o[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";o[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var f="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";o[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hn){return null}var r=t.loose?o[c.LOOSE]:o[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?o[c.LOOSE]:o[c.FULL]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var p=/^[0-9]+$/;function compareIdentifiers(e,t){var r=p.test(e);var n=p.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===E){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var E={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=E}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===E||e===E){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(o[c.COMPARATORTRIM],d);r("comparator trim",e,o[c.COMPARATORTRIM]);e=e.replace(o[c.TILDETRIM],l);e=e.replace(o[c.CARETTRIM],f);e=e.split(/\s+/).join(" ");var i=t?o[c.COMPARATORLOOSE]:o[c.COMPARATOR];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return isSatisfiable(r,t)&&e.set.some(function(e){return isSatisfiable(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t)})})})})};function isSatisfiable(e,t){var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every(function(e){return i.intersects(e,t)});i=n.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?o[c.TILDELOOSE]:o[c.TILDE];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?o[c.CARETLOOSE]:o[c.CARET];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return e.replace(n,function(n,i,s,o,a,c){r("xRange",e,n,i,s,o,a,c);var u=isX(s);var l=u||isX(o);var f=l||isX(a);var d=f;if(i==="="&&d){i=""}c=t.includePrerelease?"-0":"";if(u){if(i===">"||i==="<"){n="<0.0.0-0"}else{n="*"}}else if(i&&d){if(l){o=0}a=0;if(i===">"){i=">=";if(l){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(i==="<="){i="<";if(l){s=+s+1}else{o=+o+1}}n=i+s+"."+o+"."+a+c}else if(l){n=">="+s+".0.0"+c+" <"+(+s+1)+".0.0"+c}else if(f){n=">="+s+"."+o+".0"+c+" <"+s+"."+(+o+1)+".0"+c}r("xRange return",n);return n})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[c.STAR],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,d){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u=0.0.0")}f=f||e;d=d||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,d.semver,n)){d=e}});if(f.operator===a||f.operator===c){return false}if((!d.operator||d.operator===a)&&s(e,d.semver)){return false}else if(d.operator===c&&o(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(o[c.COERCE])}else{var n;while((n=o[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}o[c.COERCERTL].lastIndex=n.index+n[1].length+n[2].length}o[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},719:(e,t)=>{"use strict";var r;r=true;function parseArgsStringToArgv(e,t,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var i=e;var s=[];if(t){s.push(t)}if(r){s.push(r)}var o;do{o=n.exec(i);if(o!==null){s.push(firstString(o[1],o[6],o[0]))}}while(o!==null);return s}t.ZP=parseArgsStringToArgv;r=parseArgsStringToArgv;function firstString(){var e=[];for(var t=0;t{e.exports=r(419)},419:(e,t,r)=>{"use strict";var n=r(631);var i=r(16);var s=r(605);var o=r(211);var a=r(614);var c=r(357);var u=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=s.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||s.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,n,i){var s=toOptions(r,n,i);for(var o=0,a=t.requests.length;o=this.maxSockets){i.requests.push(s);return}i.createSocket(s,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,s)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var n={};r.sockets.push(n);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}l("making CONNECT request");var s=r.request(i);s.useChunkedEncodingByDefault=false;s.once("response",onResponse);s.once("upgrade",onUpgrade);s.once("connect",onConnect);s.once("error",onError);s.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,a){s.removeAllListeners();o.removeAllListeners();if(i.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",i.statusCode);o.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}if(a.length>0){l("got illegal response body from proxy");o.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(n);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(n)]=o;return t(o)}function onError(t){s.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(n)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(n){var s=e.request.getHeader("host");var o=mergeOptions({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):e.host});var a=i.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a;t(a)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var n=r||0;var i=t;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}e.exports=bytesToUuid},38:(e,t,r)=>{var n=r(417);e.exports=function nodeRNG(){return n.randomBytes(16)}},180:(e,t,r)=>{var n=r(38);var i=r(690);function v4(e,t,r){var s=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||n)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var a=0;a<16;++a){t[s+a]=o[a]}}return t||i(o)}e.exports=v4},569:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function fulfilled(e){try{step(n.next(e))}catch(e){i(e)}}function rejected(e){try{step(n["throw"](e))}catch(e){i(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})};var i=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function verb(e){return function(t){return step([e,t])}}function step(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(s=o[0]&2?i["return"]:o[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;if(i=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]{"use strict";r.r(t);r.d(t,{default:()=>f});var n=r(316);var i=r.n(n);var s=r(747);var o=r.n(s);var a=r(719);var c=r(569);var u=r.n(c);const l=async()=>{try{const e=n.getInput("local-path",{required:true});const t=await s.promises.lstat(e);if(!t.isDirectory()){n.error(`Error: sync API synchronizes a directory not a single file`)}const r=n.getInput("bucket-name",{required:true});const i=n.getInput("path-prefix",{required:false});const o=(0,a.ZP)(n.getInput("args",{required:false}).trim());const c=`s3://${r}/${i}`;const l=await u().getOrInstall();await l.call(["s3","sync",e,c,...o])}catch(e){n.setFailed(e.message)}};l();const f=l},357:e=>{"use strict";e.exports=require("assert")},129:e=>{"use strict";e.exports=require("child_process")},417:e=>{"use strict";e.exports=require("crypto")},614:e=>{"use strict";e.exports=require("events")},747:e=>{"use strict";e.exports=require("fs")},605:e=>{"use strict";e.exports=require("http")},211:e=>{"use strict";e.exports=require("https")},631:e=>{"use strict";e.exports=require("net")},87:e=>{"use strict";e.exports=require("os")},622:e=>{"use strict";e.exports=require("path")},765:e=>{"use strict";e.exports=require("process")},413:e=>{"use strict";e.exports=require("stream")},16:e=>{"use strict";e.exports=require("tls")},835:e=>{"use strict";e.exports=require("url")},669:e=>{"use strict";e.exports=require("util")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete t[r]}return n.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(746)})(); \ No newline at end of file diff --git a/packages/s3_sync/index.ts b/s3_sync/index.ts similarity index 100% rename from packages/s3_sync/index.ts rename to s3_sync/index.ts diff --git a/packages/s3_sync/package.json b/s3_sync/package.json similarity index 100% rename from packages/s3_sync/package.json rename to s3_sync/package.json