Compare commits

...
91 Commits
Author SHA1 Message Date
Peter Evans 22a9089034 fix: restrict remote prune to self-hosted runners (#4250) 2025-12-05 17:14:47 +00:00
Peter EvansandNoah Miller d4f3be6ce6 fix: provider list pulls fallback for multi fork same owner (#4245)
* fix: GitHub API not providing details for existing PRs in private repos (#4064)

* fix: extract fallback into func getPullNumber

---------

Co-authored-by: Noah Miller <mike@stealthwing.com>
2025-12-05 16:26:27 +00:00
dependabot[bot] bc8a47f565 build(deps-dev): bump prettier from 3.6.2 to 3.7.3 in the npm group (#4240)
Bumps the npm group with 1 update: [prettier](https://github.com/prettier/prettier).


Updates `prettier` from 3.6.2 to 3.7.3
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.6.2...3.7.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.7.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-01 14:21:14 +00:00
dependabot[bot] a67ef28ca5 build(deps): bump the github-actions group with 2 updates (#4235)
Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [peter-evans/slash-command-dispatch](https://github.com/peter-evans/slash-command-dispatch).


Updates `actions/checkout` from 5 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

Updates `peter-evans/slash-command-dispatch` from 4 to 5
- [Release notes](https://github.com/peter-evans/slash-command-dispatch/releases)
- [Commits](https://github.com/peter-evans/slash-command-dispatch/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: peter-evans/slash-command-dispatch
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-01 14:04:04 +00:00
eric sciple 84ae59a2cd fix: compatibility with actions/checkout@v6 (#4230)
Temporarily hides checkout@v6 credential files to prevent duplicate Authorization headers.

Fixes #4228
2025-11-22 17:59:34 +00:00
dependabot[bot] b4733b9419 build(deps-dev): bump js-yaml from 4.1.0 to 4.1.1 (#4222)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-14 15:46:03 +00:00
dependabot[bot] 0edc001d28 build(deps-dev): bump the npm group with 2 updates (#4201)
Bumps the npm group with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [ts-jest](https://github.com/kulshekhar/ts-jest).


Updates `@types/node` from 18.19.129 to 18.19.130
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `ts-jest` from 29.4.4 to 29.4.5
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.4.4...v29.4.5)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.130
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: ts-jest
  dependency-version: 29.4.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-01 12:04:17 +00:00
dependabot[bot] 430aea0fb1 build(deps): bump the github-actions group with 3 updates (#4200)
Bumps the github-actions group with 3 updates: [actions/setup-node](https://github.com/actions/setup-node), [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/setup-node` from 5 to 6
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

Updates `actions/download-artifact` from 5 to 6
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-01 12:03:40 +00:00
dependabot[bot] 46cdba753c build(deps-dev): bump the npm group with 3 updates (#4185)
Bumps the npm group with 3 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [typescript](https://github.com/microsoft/TypeScript) and [undici](https://github.com/nodejs/undici).


Updates `@types/node` from 18.19.128 to 18.19.129
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `typescript` from 5.9.2 to 5.9.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.2...v5.9.3)

Updates `undici` from 6.21.3 to 6.22.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.21.3...v6.22.0)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.129
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: typescript
  dependency-version: 5.9.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: undici
  dependency-version: 6.22.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-06 08:13:09 +00:00
dependabot[bot] b937339b17 build(deps): bump the github-actions group with 2 updates (#4184)
Bumps the github-actions group with 2 updates: [peter-evans/find-comment](https://github.com/peter-evans/find-comment) and [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment).


Updates `peter-evans/find-comment` from 3 to 4
- [Release notes](https://github.com/peter-evans/find-comment/releases)
- [Commits](https://github.com/peter-evans/find-comment/compare/v3...v4)

Updates `peter-evans/create-or-update-comment` from 4 to 5
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases)
- [Commits](https://github.com/peter-evans/create-or-update-comment/compare/v4...v5)

---
updated-dependencies:
- dependency-name: peter-evans/find-comment
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: peter-evans/create-or-update-comment
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-06 08:12:32 +00:00
Peter Evans e9af275c37 ci: update dependabot config 2025-10-06 09:08:27 +01:00
dependabot[bot] d3e081a03a build(deps-dev): bump @types/node from 18.19.127 to 18.19.128 (#4178)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.127 to 18.19.128.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.128
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 12:04:53 +00:00
dependabot[bot] 9ec683ee07 build(deps-dev): bump @types/node from 18.19.125 to 18.19.127 (#4165)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.125 to 18.19.127.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.127
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 12:04:48 +00:00
dependabot[bot] 65d8d10bf7 build(deps-dev): bump ts-jest from 29.4.2 to 29.4.4 (#4163)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.4.2 to 29.4.4.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.4.2...v29.4.4)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 12:04:43 +00:00
dependabot[bot] c96aa2bed1 build(deps-dev): bump @vercel/ncc from 0.38.3 to 0.38.4 (#4164)
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.38.3 to 0.38.4.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.38.3...0.38.4)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-version: 0.38.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 12:04:33 +00:00
dependabot[bot] 915d841dae build(deps-dev): bump @types/node from 18.19.124 to 18.19.125 (#4152)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.124 to 18.19.125.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.125
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-16 12:04:49 +00:00
dependabot[bot] 7713c9d638 build(deps-dev): bump ts-jest from 29.4.1 to 29.4.2 (#4151)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.4.1 to 29.4.2.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.4.1...v29.4.2)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-16 12:04:23 +00:00
dependabot[bot] e51b7d3f74 build(deps-dev): bump @types/node from 18.19.123 to 18.19.124 (#4141)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.123 to 18.19.124.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.124
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-09 12:05:12 +00:00
dependabot[bot] 79c231f5da build(deps): bump actions/setup-node from 4 to 5 (#4140)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-09 12:04:16 +00:00
dependabot[bot] 18e469570b build(deps-dev): bump @types/node from 18.19.122 to 18.19.123 (#4132)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.122 to 18.19.123.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.123
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-19 19:49:25 +00:00
dependabot[bot] cb4d3bfce1 build(deps): bump actions/checkout from 4 to 5 (#4117)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-15 08:13:30 +00:00
dependabot[bot] 73d0201543 build(deps-dev): bump @types/node from 18.19.121 to 18.19.122 (#4118)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.121 to 18.19.122.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.122
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 20:20:03 +00:00
dependabot[bot] ad8fe013b8 build(deps-dev): bump eslint-plugin-prettier from 5.5.3 to 5.5.4 (#4119)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.5.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 20:19:57 +00:00
dependabot[bot] 0514efa437 build(deps): bump actions/download-artifact from 4 to 5 (#4112)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 17:24:06 +00:00
dependabot[bot] 1310d7dab5 build(deps-dev): bump typescript from 5.8.3 to 5.9.2 (#4092)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.3 to 5.9.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.8.3...v5.9.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.9.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-05 17:16:11 +00:00
actions-bot 8ac8226b96 build: update distribution (#4095) 2025-08-05 18:15:22 +01:00
dependabot[bot] 10f10de275 build(deps-dev): bump ts-jest from 29.4.0 to 29.4.1 (#4096)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.4.0 to 29.4.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.4.0...v29.4.1)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-05 16:28:21 +00:00
dependabot[bot] be92a753c1 build(deps): bump node-fetch-native from 1.6.6 to 1.6.7 (#4089)
Bumps [node-fetch-native](https://github.com/unjs/node-fetch-native) from 1.6.6 to 1.6.7.
- [Release notes](https://github.com/unjs/node-fetch-native/releases)
- [Changelog](https://github.com/unjs/node-fetch-native/blob/main/CHANGELOG.md)
- [Commits](https://github.com/unjs/node-fetch-native/compare/v1.6.6...v1.6.7)

---
updated-dependencies:
- dependency-name: node-fetch-native
  dependency-version: 1.6.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-05 17:22:33 +01:00
dependabot[bot] 07cbaebb4b build(deps-dev): bump @types/node from 18.19.120 to 18.19.121 (#4082)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.120 to 18.19.121.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.121
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-29 12:24:01 +00:00
dependabot[bot] 2e50522bdf build(deps-dev): bump eslint-plugin-prettier from 5.5.1 to 5.5.3 (#4072)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.5.1 to 5.5.3.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.5.1...v5.5.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.5.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-22 13:05:20 +00:00
dependabot[bot] 6ef886ce85 build(deps-dev): bump @types/node from 18.19.119 to 18.19.120 (#4071)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.119 to 18.19.120.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.120
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-22 13:05:14 +00:00
dependabot[bot] d44cb0467e build(deps-dev): bump form-data from 4.0.0 to 4.0.4 (#4066)
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.0 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.0...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-21 23:14:46 +00:00
Zongle Wang 1cef63c140 docs: update to create-github-app-token v2 (#4063) 2025-07-17 08:49:10 +01:00
actions-bot e5a03b409a build: update distribution (#4054) 2025-07-15 15:37:03 +01:00
dependabot[bot] 843d83e5bc build(deps-dev): bump @types/node from 18.19.115 to 18.19.119 (#4045)
---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.119
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-15 12:22:50 +00:00
dependabot[bot] b480b0c440 build(deps): bump @octokit/core from 6.1.5 to 6.1.6 (#4046)
---
updated-dependencies:
- dependency-name: "@octokit/core"
  dependency-version: 6.1.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-15 12:22:38 +00:00
dependabot[bot] 1eca556297 build(deps-dev): bump @types/node from 18.19.113 to 18.19.115 (#4039)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.113 to 18.19.115.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.115
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-08 12:56:57 +00:00
dependabot[bot] 56cdd05eb2 build(deps-dev): bump eslint-plugin-prettier from 5.5.0 to 5.5.1 (#4030)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.5.0 to 5.5.1.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.5.0...v5.5.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.5.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-01 13:39:15 +00:00
dependabot[bot] 27d7203bb2 build(deps-dev): bump prettier from 3.6.0 to 3.6.2 (#4029)
Bumps [prettier](https://github.com/prettier/prettier) from 3.6.0 to 3.6.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.6.0...3.6.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.6.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-01 13:38:51 +00:00
dependabot[bot] 111b7d619d build(deps-dev): bump @types/node from 18.19.112 to 18.19.113 (#4024)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.112 to 18.19.113.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.113
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-01 12:56:25 +00:00
dependabot[bot] a59c52d55d build(deps-dev): bump prettier from 3.5.3 to 3.6.0 (#4013)
Bumps [prettier](https://github.com/prettier/prettier) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.5.3...3.6.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.6.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-24 12:40:43 +00:00
dependabot[bot] 3319d7b4ff build(deps-dev): bump eslint-plugin-import from 2.31.0 to 2.32.0 (#4012)
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.31.0 to 2.32.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.31.0...v2.32.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-version: 2.32.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-24 12:40:31 +00:00
dependabot[bot] c2e8eb39a3 build(deps-dev): bump ts-jest from 29.3.4 to 29.4.0 (#3999)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.3.4 to 29.4.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.3.4...v29.4.0)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 15:41:02 +00:00
dependabot[bot] 1bce17f69c build(deps-dev): bump eslint-plugin-prettier from 5.4.1 to 5.5.0 (#3998)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.4.1 to 5.5.0.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.4.1...v5.5.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 15:38:26 +00:00
dependabot[bot] 0f8b7c5d7e build(deps-dev): bump @types/node from 18.19.110 to 18.19.112 (#3997)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.110 to 18.19.112.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.112
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-19 15:35:28 +00:00
dependabot[bot] 0f2a09222f build(deps-dev): bump @types/node from 18.19.103 to 18.19.110 (#3986)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.103 to 18.19.110.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.110
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 12:40:45 +00:00
dependabot[bot] cbde760b07 build(deps-dev): bump eslint-plugin-prettier from 5.4.0 to 5.4.1 (#3985)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.4.0 to 5.4.1.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.4.0...v5.4.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-03 12:40:37 +00:00
dependabot[bot] 88ed63ce14 build(deps-dev): bump @types/node from 18.19.101 to 18.19.103 (#3980)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.101 to 18.19.103.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.103
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-27 12:46:39 +00:00
dependabot[bot] 6658b293f0 build(deps-dev): bump ts-jest from 29.3.2 to 29.3.4 (#3968)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.3.2 to 29.3.4.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.3.2...v29.3.4)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.3.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-20 12:48:30 +00:00
dependabot[bot] 7884c077c7 build(deps-dev): bump @types/node from 18.19.100 to 18.19.101 (#3967)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.100 to 18.19.101.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.101
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-20 12:48:19 +00:00
dependabot[bot] f689536846 build(deps-dev): bump @types/node from 18.19.96 to 18.19.100 (#3958)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.96 to 18.19.100.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.100
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-13 12:45:55 +00:00
dependabot[bot] 1f1b618e8e build(deps-dev): bump undici from 6.21.2 to 6.21.3 (#3957)
Bumps [undici](https://github.com/nodejs/undici) from 6.21.2 to 6.21.3.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.21.2...v6.21.3)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.21.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-13 12:45:46 +00:00
dependabot[bot] 889dce9eab build(deps-dev): bump eslint-plugin-prettier from 5.2.6 to 5.4.0 (#3947)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.2.6 to 5.4.0.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.6...v5.4.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-06 12:27:21 +00:00
dependabot[bot] 1e36d60fe9 build(deps-dev): bump @types/node from 18.19.87 to 18.19.96 (#3948)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.87 to 18.19.96.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.96
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-06 12:26:56 +00:00
dependabot[bot] 9b309f7eaa build(deps-dev): bump @types/node from 18.19.86 to 18.19.87 (#3941)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.86 to 18.19.87.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.87
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-29 12:39:21 +00:00
Peter Evans 3b1f4bffdc docs: update readme inputs description 2025-04-26 10:31:03 +01:00
Joe Flack 26f1fcb7bd docs: Update README.md (#3928)
Updated docs for `add-paths` param. Moved some content into the previously empty "Default" column, to elucidate default behavior.
2025-04-26 10:29:34 +01:00
Masafumi Koba 799af1ac09 docs: fix workaround description about ready_for_review (#3939)
The current description of `on: ready_for_review` may confuse readers because a workflow with `ready_for_review` should be written as below:

```yaml
on:
  pull_request:
    types: [ready_for_review]
```

- `pull_request` is an event
- `ready_for_review` is an event type of `pull_request`

Refs:
- https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#onevent_nametypes
- https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request
2025-04-26 10:27:21 +01:00
dependabot[bot] 450b15d522 build(deps-dev): bump eslint-import-resolver-typescript (#3931)
Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.10.0 to 3.10.1.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/v3.10.1/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.10.0...v3.10.1)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-version: 3.10.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-22 12:09:22 +00:00
actions-bot 14576695c2 build: update distribution (#3923) 2025-04-15 15:46:56 +01:00
dependabot[bot] e67dfa71de build(deps): bump @octokit/core from 6.1.4 to 6.1.5 (#3914)
Bumps [@octokit/core](https://github.com/octokit/core.js) from 6.1.4 to 6.1.5.
- [Release notes](https://github.com/octokit/core.js/releases)
- [Commits](https://github.com/octokit/core.js/compare/v6.1.4...v6.1.5)

---
updated-dependencies:
- dependency-name: "@octokit/core"
  dependency-version: 6.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-15 12:09:19 +00:00
dependabot[bot] 4a56bdc321 build(deps-dev): bump ts-jest from 29.3.1 to 29.3.2 (#3913)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.3.1 to 29.3.2.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.3.1...v29.3.2)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-version: 29.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-15 12:09:11 +00:00
actions-bot a7b20e1da2 build: update distribution (#3898) 2025-04-08 14:43:29 +01:00
dependabot[bot] e89bd69e40 build(deps-dev): bump typescript from 5.8.2 to 5.8.3 (#3884)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.2 to 5.8.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.8.2...v5.8.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 12:57:53 +00:00
dependabot[bot] 5bae925c86 build(deps-dev): bump @types/node from 18.19.85 to 18.19.86 (#3883)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.85 to 18.19.86.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 18.19.86
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 12:57:35 +00:00
dependabot[bot] 7a23c9b2d1 build(deps-dev): bump eslint-plugin-prettier from 5.2.5 to 5.2.6 (#3882)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.2.5 to 5.2.6.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.5...v5.2.6)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-version: 5.2.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 12:57:27 +00:00
dependabot[bot] 88d86bdd1a build(deps): bump @octokit/plugin-throttling from 9.6.0 to 9.6.1 (#3881)
Bumps [@octokit/plugin-throttling](https://github.com/octokit/plugin-throttling.js) from 9.6.0 to 9.6.1.
- [Release notes](https://github.com/octokit/plugin-throttling.js/releases)
- [Commits](https://github.com/octokit/plugin-throttling.js/compare/v9.6.0...v9.6.1)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-throttling"
  dependency-version: 9.6.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-08 12:57:04 +00:00
dependabot[bot] 5ccebef7df build(deps-dev): bump @types/node from 18.19.83 to 18.19.85 (#3862)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.83 to 18.19.85.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 12:38:01 +00:00
dependabot[bot] 7c6dcd5e40 build(deps-dev): bump eslint-import-resolver-typescript (#3861)
Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.9.1 to 3.10.0.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/v3.10.0/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.9.1...v3.10.0)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 12:37:42 +00:00
dependabot[bot] b926f73506 build(deps-dev): bump ts-jest from 29.3.0 to 29.3.1 (#3860)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.3.0 to 29.3.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.3.0...v29.3.1)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 12:37:26 +00:00
dependabot[bot] e468aa4ac9 build(deps): bump @octokit/plugin-throttling from 9.4.0 to 9.6.0 (#3859)
Bumps [@octokit/plugin-throttling](https://github.com/octokit/plugin-throttling.js) from 9.4.0 to 9.6.0.
- [Release notes](https://github.com/octokit/plugin-throttling.js/releases)
- [Commits](https://github.com/octokit/plugin-throttling.js/compare/v9.4.0...v9.6.0)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-throttling"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 12:37:19 +00:00
Peter Evans d57e551ebc docs: add note about deploy keys and commit signing 2025-04-01 11:00:38 +01:00
actions-bot 98106d3f2b build: update distribution (#3845) 2025-03-25 15:00:14 +00:00
dependabot[bot] 45f0e76ebd build(deps): bump @octokit/plugin-rest-endpoint-methods (#3824)
Bumps [@octokit/plugin-rest-endpoint-methods](https://github.com/octokit/plugin-rest-endpoint-methods.js) from 13.3.1 to 13.5.0.
- [Release notes](https://github.com/octokit/plugin-rest-endpoint-methods.js/releases)
- [Commits](https://github.com/octokit/plugin-rest-endpoint-methods.js/compare/v13.3.1...v13.5.0)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-rest-endpoint-methods"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:57:45 +00:00
dependabot[bot] 5aec14b1da build(deps-dev): bump ts-jest from 29.2.6 to 29.3.0 (#3825)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.2.6 to 29.3.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.2.6...v29.3.0)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:54:50 +00:00
dependabot[bot] 52bf914c5c build(deps): bump @octokit/plugin-paginate-rest from 11.4.3 to 11.6.0 (#3822)
Bumps [@octokit/plugin-paginate-rest](https://github.com/octokit/plugin-paginate-rest.js) from 11.4.3 to 11.6.0.
- [Release notes](https://github.com/octokit/plugin-paginate-rest.js/releases)
- [Commits](https://github.com/octokit/plugin-paginate-rest.js/compare/v11.4.3...v11.6.0)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-paginate-rest"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:54:45 +00:00
dependabot[bot] 2fbdcbbbe7 build(deps-dev): bump eslint-plugin-prettier from 5.2.3 to 5.2.5 (#3823)
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.2.3 to 5.2.5.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.3...v5.2.5)

---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:54:33 +00:00
dependabot[bot] e630501767 build(deps-dev): bump @types/node from 18.19.80 to 18.19.83 (#3821)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.80 to 18.19.83.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-25 12:54:27 +00:00
dependabot[bot] 5ddfb02482 build(deps-dev): bump undici from 6.21.1 to 6.21.2 (#3811)
Bumps [undici](https://github.com/nodejs/undici) from 6.21.1 to 6.21.2.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.21.1...v6.21.2)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 13:01:36 +00:00
dependabot[bot] 62822539b5 build(deps-dev): bump eslint-import-resolver-typescript (#3810)
Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.8.4 to 3.9.1.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.8.4...v3.9.1)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-18 13:01:25 +00:00
dependabot[bot] a7759c6f84 build(deps-dev): bump eslint-import-resolver-typescript (#3799)
Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.8.3 to 3.8.4.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.8.3...v3.8.4)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 12:41:03 +00:00
dependabot[bot] 7b02d9ab89 build(deps-dev): bump @types/node from 18.19.79 to 18.19.80 (#3798)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.79 to 18.19.80.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-11 12:40:55 +00:00
dependabot[bot] 58258f452b build(deps-dev): bump @types/node from 18.19.76 to 18.19.79 (#3783)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.76 to 18.19.79.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 12:39:36 +00:00
dependabot[bot] c16e6f558f build(deps-dev): bump typescript from 5.7.3 to 5.8.2 (#3782)
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.7.3 to 5.8.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.7.3...v5.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 12:39:27 +00:00
dependabot[bot] 599a7e63a6 build(deps-dev): bump prettier from 3.5.2 to 3.5.3 (#3781)
Bumps [prettier](https://github.com/prettier/prettier) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.5.2...3.5.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-04 12:39:09 +00:00
Peter Evans 271a8d0340 fix: suppress output for some git operations (#3776)
* fix: suppress output for some git operations

* update dist
2025-03-04 02:32:33 -08:00
Peter Evans 6f7efd1c24 test: update cpr-example-command 2025-03-03 02:23:54 -08:00
dependabot[bot] 13c47c5747 build(deps-dev): bump prettier from 3.5.1 to 3.5.2 (#3754)
Bumps [prettier](https://github.com/prettier/prettier) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.5.1...3.5.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 12:19:53 +00:00
dependabot[bot] 63e58290d7 build(deps): bump @octokit/plugin-paginate-rest from 11.4.2 to 11.4.3 (#3753)
Bumps [@octokit/plugin-paginate-rest](https://github.com/octokit/plugin-paginate-rest.js) from 11.4.2 to 11.4.3.
- [Release notes](https://github.com/octokit/plugin-paginate-rest.js/releases)
- [Commits](https://github.com/octokit/plugin-paginate-rest.js/compare/v11.4.2...v11.4.3)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-paginate-rest"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 12:16:53 +00:00
dependabot[bot] a92c90fcab build(deps-dev): bump eslint-import-resolver-typescript (#3752)
Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.8.1 to 3.8.3.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.8.1...v3.8.3)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 12:16:44 +00:00
dependabot[bot] b23b62d487 build(deps-dev): bump ts-jest from 29.2.5 to 29.2.6 (#3751)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.2.5 to 29.2.6.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.2.5...v29.2.6)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-25 12:16:41 +00:00
16 changed files with 2071 additions and 768 deletions

No files matched your search

+12 -3
View File
@@ -3,18 +3,27 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
day: "tuesday"
labels:
- "dependencies"
groups:
github-actions:
applies-to: version-updates
patterns:
- "*"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
day: "tuesday"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
labels:
- "dependencies"
groups:
npm:
applies-to: version-updates
patterns:
- "*"
+11 -11
View File
@@ -19,8 +19,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20.x
cache: npm
@@ -29,11 +29,11 @@ jobs:
- run: npm run format-check
- run: npm run lint
- run: npm run test
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: dist
path: dist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: action.yml
path: action.yml
@@ -46,16 +46,16 @@ jobs:
matrix:
target: [built, committed]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
ref: main
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v4
uses: actions/download-artifact@v6
with:
name: dist
path: dist
- if: matrix.target == 'built' || github.event_name == 'pull_request'
uses: actions/download-artifact@v4
uses: actions/download-artifact@v6
with:
name: action.yml
path: .
@@ -92,7 +92,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Find Comment
uses: peter-evans/find-comment@v3
uses: peter-evans/find-comment@v4
id: fc
with:
issue-number: ${{ github.event.number }}
@@ -101,7 +101,7 @@ jobs:
- if: steps.fc.outputs.comment-id == ''
name: Create comment
uses: peter-evans/create-or-update-comment@v4
uses: peter-evans/create-or-update-comment@v5
with:
issue-number: ${{ github.event.number }}
body: |
@@ -118,8 +118,8 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: actions/checkout@v6
- uses: actions/download-artifact@v6
with:
name: dist
path: dist
+4 -4
View File
@@ -6,7 +6,7 @@ jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Make changes to pull request
run: date +%s > report.txt
@@ -29,8 +29,8 @@ jobs:
labels: |
report
automated pr
assignees: peter-evans
reviewers: peter-evans
assignees: retepsnave
reviewers: retepsnave
milestone: 1
draft: false
branch: example-patches
@@ -42,7 +42,7 @@ jobs:
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
- name: Add reaction
uses: peter-evans/create-or-update-comment@v4
uses: peter-evans/create-or-update-comment@v5
with:
repository: ${{ github.event.client_payload.github.payload.repository.full_name }}
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@v4
uses: peter-evans/slash-command-dispatch@v5
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
config: >
+1 -1
View File
@@ -18,7 +18,7 @@ jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
fetch-depth: 0
+1 -1
View File
@@ -53,7 +53,7 @@ All inputs are **optional**. If not set, sensible defaults will be used.
| `token` | The token that the action will use to create and update the pull request. See [token](#token). | `GITHUB_TOKEN` |
| `branch-token` | The token that the action will use to create and update the branch. See [branch-token](#branch-token). | Defaults to the value of `token` |
| `path` | Relative path under `GITHUB_WORKSPACE` to the repository. | `GITHUB_WORKSPACE` |
| `add-paths` | A comma or newline-separated list of file paths to commit. Paths should follow git's [pathspec](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec) syntax. If no paths are specified, all new and modified files are added. See [Add specific paths](#add-specific-paths). | |
| `add-paths` | A comma or newline-separated list of file paths to commit. Paths should follow git's [pathspec](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec) syntax. See [Add specific paths](#add-specific-paths). | If no paths are specified, all new and modified files are added. |
| `commit-message` | The message to use when committing changes. See [commit-message](#commit-message). | `[create-pull-request] automated change` |
| `committer` | The committer name and email address in the format `Display Name <email@address.com>`. Defaults to the GitHub Actions bot user on github.com. | `github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>` |
| `author` | The author name and email address in the format `Display Name <email@address.com>`. Defaults to the user who triggered the workflow run. | `${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>` |
+2 -2
View File
@@ -6,8 +6,8 @@ exports.modules = {
/***/ 790:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
var N=Object.defineProperty;var c=(_,a)=>N(_,"name",{value:a,configurable:!0});__webpack_require__(3024),__webpack_require__(6760);const node=__webpack_require__(117);__webpack_require__(7067),__webpack_require__(4708),__webpack_require__(8522),__webpack_require__(7075),__webpack_require__(4573),__webpack_require__(7975),__webpack_require__(3465),__webpack_require__(3136),__webpack_require__(7030);let s=0;const S={START_BOUNDARY:s++,HEADER_FIELD_START:s++,HEADER_FIELD:s++,HEADER_VALUE_START:s++,HEADER_VALUE:s++,HEADER_VALUE_ALMOST_DONE:s++,HEADERS_ALMOST_DONE:s++,PART_DATA_START:s++,PART_DATA:s++,END:s++};let f=1;const F={PART_BOUNDARY:f,LAST_BOUNDARY:f*=2},LF=10,CR=13,SPACE=32,HYPHEN=45,COLON=58,A=97,Z=122,lower=c(_=>_|32,"lower"),noop=c(()=>{},"noop");class MultipartParser{static{c(this,"MultipartParser")}constructor(a){this.index=0,this.flags=0,this.onHeaderEnd=noop,this.onHeaderField=noop,this.onHeadersEnd=noop,this.onHeaderValue=noop,this.onPartBegin=noop,this.onPartData=noop,this.onPartEnd=noop,this.boundaryChars={},a=`\r
--`+a;const t=new Uint8Array(a.length);for(let n=0;n<a.length;n++)t[n]=a.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=S.START_BOUNDARY}write(a){let t=0;const n=a.length;let E=this.index,{lookbehind:d,boundary:h,boundaryChars:H,index:e,state:o,flags:l}=this;const b=this.boundary.length,m=b-1,O=a.length;let r,P;const u=c(D=>{this[D+"Mark"]=t},"mark"),i=c(D=>{delete this[D+"Mark"]},"clear"),T=c((D,p,R,g)=>{(p===void 0||p!==R)&&this[D](g&&g.subarray(p,R))},"callback"),L=c((D,p)=>{const R=D+"Mark";R in this&&(p?(T(D,this[R],t,a),delete this[R]):(T(D,this[R],a.length,a),this[R]=0))},"dataCallback");for(t=0;t<n;t++)switch(r=a[t],o){case S.START_BOUNDARY:if(e===h.length-2){if(r===HYPHEN)l|=F.LAST_BOUNDARY;else if(r!==CR)return;e++;break}else if(e-1===h.length-2){if(l&F.LAST_BOUNDARY&&r===HYPHEN)o=S.END,l=0;else if(!(l&F.LAST_BOUNDARY)&&r===LF)e=0,T("onPartBegin"),o=S.HEADER_FIELD_START;else return;break}r!==h[e+2]&&(e=-2),r===h[e+2]&&e++;break;case S.HEADER_FIELD_START:o=S.HEADER_FIELD,u("onHeaderField"),e=0;case S.HEADER_FIELD:if(r===CR){i("onHeaderField"),o=S.HEADERS_ALMOST_DONE;break}if(e++,r===HYPHEN)break;if(r===COLON){if(e===1)return;L("onHeaderField",!0),o=S.HEADER_VALUE_START;break}if(P=lower(r),P<A||P>Z)return;break;case S.HEADER_VALUE_START:if(r===SPACE)break;u("onHeaderValue"),o=S.HEADER_VALUE;case S.HEADER_VALUE:r===CR&&(L("onHeaderValue",!0),T("onHeaderEnd"),o=S.HEADER_VALUE_ALMOST_DONE);break;case S.HEADER_VALUE_ALMOST_DONE:if(r!==LF)return;o=S.HEADER_FIELD_START;break;case S.HEADERS_ALMOST_DONE:if(r!==LF)return;T("onHeadersEnd"),o=S.PART_DATA_START;break;case S.PART_DATA_START:o=S.PART_DATA,u("onPartData");case S.PART_DATA:if(E=e,e===0){for(t+=m;t<O&&!(a[t]in H);)t+=b;t-=m,r=a[t]}if(e<h.length)h[e]===r?(e===0&&L("onPartData",!0),e++):e=0;else if(e===h.length)e++,r===CR?l|=F.PART_BOUNDARY:r===HYPHEN?l|=F.LAST_BOUNDARY:e=0;else if(e-1===h.length)if(l&F.PART_BOUNDARY){if(e=0,r===LF){l&=~F.PART_BOUNDARY,T("onPartEnd"),T("onPartBegin"),o=S.HEADER_FIELD_START;break}}else l&F.LAST_BOUNDARY&&r===HYPHEN?(T("onPartEnd"),o=S.END,l=0):e=0;if(e>0)d[e-1]=r;else if(E>0){const D=new Uint8Array(d.buffer,d.byteOffset,d.byteLength);T("onPartData",0,E,D),E=0,u("onPartData"),t--}break;case S.END:break;default:throw new Error(`Unexpected state entered: ${o}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=e,this.state=o,this.flags=l}end(){if(this.state===S.HEADER_FIELD_START&&this.index===0||this.state===S.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==S.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}}function _fileName(_){const a=_.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!a)return;const t=a[2]||a[3]||"";let n=t.slice(t.lastIndexOf("\\")+1);return n=n.replace(/%22/g,'"'),n=n.replace(/&#(\d{4});/g,(E,d)=>String.fromCharCode(d)),n}c(_fileName,"_fileName");async function toFormData(_,a){if(!/multipart/i.test(a))throw new TypeError("Failed to fetch");const t=a.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!t)throw new TypeError("no or bad content-type header, no multipart boundary");const n=new MultipartParser(t[1]||t[2]);let E,d,h,H,e,o;const l=[],b=new node.FormData,m=c(i=>{h+=u.decode(i,{stream:!0})},"onPartData"),O=c(i=>{l.push(i)},"appendToFile"),r=c(()=>{const i=new node.File(l,o,{type:e});b.append(H,i)},"appendFileToFormData"),P=c(()=>{b.append(H,h)},"appendEntryToFormData"),u=new TextDecoder("utf-8");u.decode(),n.onPartBegin=function(){n.onPartData=m,n.onPartEnd=P,E="",d="",h="",H="",e="",o=null,l.length=0},n.onHeaderField=function(i){E+=u.decode(i,{stream:!0})},n.onHeaderValue=function(i){d+=u.decode(i,{stream:!0})},n.onHeaderEnd=function(){if(d+=u.decode(),E=E.toLowerCase(),E==="content-disposition"){const i=d.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);i&&(H=i[2]||i[3]||""),o=_fileName(d),o&&(n.onPartData=O,n.onPartEnd=r)}else E==="content-type"&&(e=d);d="",E=""};for await(const i of _)n.write(i);return n.end(),b}c(toFormData,"toFormData"),exports.toFormData=toFormData;
var y=Object.defineProperty;var c=(R,o)=>y(R,"name",{value:o,configurable:!0});const node=__webpack_require__(117);__webpack_require__(7067),__webpack_require__(4708),__webpack_require__(8522),__webpack_require__(7075),__webpack_require__(4573),__webpack_require__(7975),__webpack_require__(3465),__webpack_require__(3136),__webpack_require__(7030),__webpack_require__(3024),__webpack_require__(6760);let s=0;const S={START_BOUNDARY:s++,HEADER_FIELD_START:s++,HEADER_FIELD:s++,HEADER_VALUE_START:s++,HEADER_VALUE:s++,HEADER_VALUE_ALMOST_DONE:s++,HEADERS_ALMOST_DONE:s++,PART_DATA_START:s++,PART_DATA:s++,END:s++};let f=1;const F={PART_BOUNDARY:f,LAST_BOUNDARY:f*=2},LF=10,CR=13,SPACE=32,HYPHEN=45,COLON=58,A=97,Z=122,lower=c(R=>R|32,"lower"),noop=c(()=>{},"noop"),g=class g{constructor(o){this.index=0,this.flags=0,this.onHeaderEnd=noop,this.onHeaderField=noop,this.onHeadersEnd=noop,this.onHeaderValue=noop,this.onPartBegin=noop,this.onPartData=noop,this.onPartEnd=noop,this.boundaryChars={},o=`\r
--`+o;const t=new Uint8Array(o.length);for(let n=0;n<o.length;n++)t[n]=o.charCodeAt(n),this.boundaryChars[t[n]]=!0;this.boundary=t,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=S.START_BOUNDARY}write(o){let t=0;const n=o.length;let E=this.index,{lookbehind:l,boundary:h,boundaryChars:H,index:e,state:a,flags:d}=this;const b=this.boundary.length,m=b-1,O=o.length;let r,P;const u=c(D=>{this[D+"Mark"]=t},"mark"),i=c(D=>{delete this[D+"Mark"]},"clear"),T=c((D,p,_,N)=>{(p===void 0||p!==_)&&this[D](N&&N.subarray(p,_))},"callback"),L=c((D,p)=>{const _=D+"Mark";_ in this&&(p?(T(D,this[_],t,o),delete this[_]):(T(D,this[_],o.length,o),this[_]=0))},"dataCallback");for(t=0;t<n;t++)switch(r=o[t],a){case S.START_BOUNDARY:if(e===h.length-2){if(r===HYPHEN)d|=F.LAST_BOUNDARY;else if(r!==CR)return;e++;break}else if(e-1===h.length-2){if(d&F.LAST_BOUNDARY&&r===HYPHEN)a=S.END,d=0;else if(!(d&F.LAST_BOUNDARY)&&r===LF)e=0,T("onPartBegin"),a=S.HEADER_FIELD_START;else return;break}r!==h[e+2]&&(e=-2),r===h[e+2]&&e++;break;case S.HEADER_FIELD_START:a=S.HEADER_FIELD,u("onHeaderField"),e=0;case S.HEADER_FIELD:if(r===CR){i("onHeaderField"),a=S.HEADERS_ALMOST_DONE;break}if(e++,r===HYPHEN)break;if(r===COLON){if(e===1)return;L("onHeaderField",!0),a=S.HEADER_VALUE_START;break}if(P=lower(r),P<A||P>Z)return;break;case S.HEADER_VALUE_START:if(r===SPACE)break;u("onHeaderValue"),a=S.HEADER_VALUE;case S.HEADER_VALUE:r===CR&&(L("onHeaderValue",!0),T("onHeaderEnd"),a=S.HEADER_VALUE_ALMOST_DONE);break;case S.HEADER_VALUE_ALMOST_DONE:if(r!==LF)return;a=S.HEADER_FIELD_START;break;case S.HEADERS_ALMOST_DONE:if(r!==LF)return;T("onHeadersEnd"),a=S.PART_DATA_START;break;case S.PART_DATA_START:a=S.PART_DATA,u("onPartData");case S.PART_DATA:if(E=e,e===0){for(t+=m;t<O&&!(o[t]in H);)t+=b;t-=m,r=o[t]}if(e<h.length)h[e]===r?(e===0&&L("onPartData",!0),e++):e=0;else if(e===h.length)e++,r===CR?d|=F.PART_BOUNDARY:r===HYPHEN?d|=F.LAST_BOUNDARY:e=0;else if(e-1===h.length)if(d&F.PART_BOUNDARY){if(e=0,r===LF){d&=~F.PART_BOUNDARY,T("onPartEnd"),T("onPartBegin"),a=S.HEADER_FIELD_START;break}}else d&F.LAST_BOUNDARY&&r===HYPHEN?(T("onPartEnd"),a=S.END,d=0):e=0;if(e>0)l[e-1]=r;else if(E>0){const D=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);T("onPartData",0,E,D),E=0,u("onPartData"),t--}break;case S.END:break;default:throw new Error(`Unexpected state entered: ${a}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=e,this.state=a,this.flags=d}end(){if(this.state===S.HEADER_FIELD_START&&this.index===0||this.state===S.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==S.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};c(g,"MultipartParser");let MultipartParser=g;function _fileName(R){const o=R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!o)return;const t=o[2]||o[3]||"";let n=t.slice(t.lastIndexOf("\\")+1);return n=n.replace(/%22/g,'"'),n=n.replace(/&#(\d{4});/g,(E,l)=>String.fromCharCode(l)),n}c(_fileName,"_fileName");async function toFormData(R,o){if(!/multipart/i.test(o))throw new TypeError("Failed to fetch");const t=o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!t)throw new TypeError("no or bad content-type header, no multipart boundary");const n=new MultipartParser(t[1]||t[2]);let E,l,h,H,e,a;const d=[],b=new node.FormData,m=c(i=>{h+=u.decode(i,{stream:!0})},"onPartData"),O=c(i=>{d.push(i)},"appendToFile"),r=c(()=>{const i=new node.File(d,a,{type:e});b.append(H,i)},"appendFileToFormData"),P=c(()=>{b.append(H,h)},"appendEntryToFormData"),u=new TextDecoder("utf-8");u.decode(),n.onPartBegin=function(){n.onPartData=m,n.onPartEnd=P,E="",l="",h="",H="",e="",a=null,d.length=0},n.onHeaderField=function(i){E+=u.decode(i,{stream:!0})},n.onHeaderValue=function(i){l+=u.decode(i,{stream:!0})},n.onHeaderEnd=function(){if(l+=u.decode(),E=E.toLowerCase(),E==="content-disposition"){const i=l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);i&&(H=i[2]||i[3]||""),a=_fileName(l),a&&(n.onPartData=O,n.onPartEnd=r)}else E==="content-type"&&(e=l);l="",E=""};for await(const i of R)n.write(i);return n.end(),b}c(toFormData,"toFormData"),exports.toFormData=toFormData;
/***/ })
+524 -107
View File
@@ -452,12 +452,14 @@ function createPullRequest(inputs) {
if (branchRemoteName == 'origin' && base == inputs.branch) {
throw new Error(`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`);
}
// For self-hosted runners the repository state persists between runs.
// This command prunes the stale remote ref when the pull request branch was
// deleted after being merged or closed. Without this the push using
// '--force-with-lease' fails due to "stale info."
// https://github.com/peter-evans/create-pull-request/issues/633
yield git.exec(['remote', 'prune', branchRemoteName]);
if (utils.isSelfHosted()) {
// For self-hosted runners the repository state persists between runs.
// This command prunes the stale remote ref when the pull request branch was
// deleted after being merged or closed. Without this the push using
// '--force-with-lease' fails due to "stale info."
// https://github.com/peter-evans/create-pull-request/issues/633
yield git.exec(['remote', 'prune', branchRemoteName]);
}
core.endGroup();
// Apply the branch suffix if set
if (inputs.branchSuffix) {
@@ -660,12 +662,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.GitCommandManager = void 0;
const exec = __importStar(__nccwpck_require__(5236));
const io = __importStar(__nccwpck_require__(4994));
const utils = __importStar(__nccwpck_require__(9277));
const path = __importStar(__nccwpck_require__(6928));
const stream_1 = __importDefault(__nccwpck_require__(2203));
const tagsRefSpec = '+refs/tags/*:refs/tags/*';
class GitCommandManager {
constructor(workingDirectory, gitPath) {
@@ -781,7 +787,7 @@ class GitCommandManager {
'--no-abbrev',
`--format=%H%n%T%n%P%n%G?%n%s%n%b%n${endOfBody}`,
ref
]);
], { suppressGitCmdOutput: true });
const lines = output.stdout.split('\n');
const endOfBodyIndex = lines.lastIndexOf(endOfBody);
const detailLines = lines.slice(0, endOfBodyIndex);
@@ -895,7 +901,10 @@ class GitCommandManager {
showFileAtRefBase64(ref, path) {
return __awaiter(this, void 0, void 0, function* () {
const args = ['show', `${ref}:${path}`];
const output = yield this.exec(args, { encoding: 'base64' });
const output = yield this.exec(args, {
encoding: 'base64',
suppressGitCmdOutput: true
});
return output.stdout.trim();
});
}
@@ -964,8 +973,12 @@ class GitCommandManager {
});
}
exec(args_1) {
return __awaiter(this, arguments, void 0, function* (args, { encoding = 'utf8', allowAllExitCodes = false } = {}) {
return __awaiter(this, arguments, void 0, function* (args, { encoding = 'utf8', allowAllExitCodes = false, suppressGitCmdOutput = false } = {}) {
const result = new GitOutput();
if (process.env['CPR_SHOW_GIT_CMD_OUTPUT']) {
// debug mode overrides the suppressGitCmdOutput option
suppressGitCmdOutput = false;
}
const env = {};
for (const key of Object.keys(process.env)) {
env[key] = process.env[key];
@@ -987,7 +1000,9 @@ class GitCommandManager {
stderr.push(data);
stderrLength += data.length;
}
}
},
outStream: outStreamHandler(process.stdout, suppressGitCmdOutput),
errStream: outStreamHandler(process.stderr, suppressGitCmdOutput)
};
result.exitCode = yield exec.exec(`"${this.gitPath}"`, args, options);
result.stdout = Buffer.concat(stdout, stdoutLength).toString(encoding);
@@ -1004,6 +1019,24 @@ class GitOutput {
this.exitCode = 0;
}
}
const outStreamHandler = (outStream, suppressGitCmdOutput) => {
return new stream_1.default.Writable({
write(chunk, _, next) {
if (suppressGitCmdOutput) {
const lines = chunk.toString().trimEnd().split('\n');
for (const line of lines) {
if (line.startsWith('[command]')) {
outStream.write(`${line}\n`);
}
}
}
else {
outStream.write(chunk);
}
next();
}
});
};
/***/ }),
@@ -1072,6 +1105,7 @@ class GitConfigHelper {
this.extraheaderConfigPlaceholderValue = 'AUTHORIZATION: basic ***';
this.extraheaderConfigValueRegex = '^AUTHORIZATION:';
this.persistedExtraheaderConfigValue = '';
this.backedUpCredentialFiles = [];
this.git = git;
this.workingDirectory = this.git.getWorkingDirectory();
}
@@ -1151,12 +1185,16 @@ class GitConfigHelper {
return __awaiter(this, void 0, void 0, function* () {
const serverUrl = new url_1.URL(`https://${this.getGitRemote().hostname}`);
this.extraheaderConfigKey = `http.${serverUrl.origin}/.extraheader`;
// Backup checkout@v6 credential files if they exist
yield this.hideCredentialFiles();
// Save and unset persisted extraheader credential in git config if it exists
this.persistedExtraheaderConfigValue = yield this.getAndUnset();
});
}
restorePersistedAuth() {
return __awaiter(this, void 0, void 0, function* () {
// Restore checkout@v6 credential files if they were backed up
yield this.unhideCredentialFiles();
if (this.persistedExtraheaderConfigValue) {
try {
yield this.setExtraheaderConfig(this.persistedExtraheaderConfigValue);
@@ -1193,6 +1231,48 @@ class GitConfigHelper {
yield this.gitConfigStringReplace(this.extraheaderConfigPlaceholderValue, extraheaderConfigValue);
});
}
hideCredentialFiles() {
return __awaiter(this, void 0, void 0, function* () {
// Temporarily hide checkout@v6 credential files to avoid duplicate auth headers
const runnerTemp = process.env['RUNNER_TEMP'];
if (!runnerTemp) {
return;
}
try {
const files = yield fs.promises.readdir(runnerTemp);
for (const file of files) {
if (file.startsWith('git-credentials-') && file.endsWith('.config')) {
const sourcePath = path.join(runnerTemp, file);
const backupPath = `${sourcePath}.bak`;
yield fs.promises.rename(sourcePath, backupPath);
this.backedUpCredentialFiles.push(backupPath);
core.info(`Temporarily hiding checkout credential file: ${file} (will be restored after)`);
}
}
}
catch (e) {
// If directory doesn't exist or we can't read it, just continue
core.debug(`Could not backup credential files: ${utils.getErrorMessage(e)}`);
}
});
}
unhideCredentialFiles() {
return __awaiter(this, void 0, void 0, function* () {
// Restore checkout@v6 credential files that were backed up
for (const backupPath of this.backedUpCredentialFiles) {
try {
const originalPath = backupPath.replace(/\.bak$/, '');
yield fs.promises.rename(backupPath, originalPath);
const fileName = path.basename(originalPath);
core.info(`Restored checkout credential file: ${fileName}`);
}
catch (e) {
core.warning(`Failed to restore credential file ${backupPath}: ${utils.getErrorMessage(e)}`);
}
}
this.backedUpCredentialFiles = [];
});
}
getAndUnset() {
return __awaiter(this, void 0, void 0, function* () {
let configValue = '';
@@ -1277,6 +1357,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
@@ -1312,6 +1399,43 @@ class GitHubHelper {
repo: repo
};
}
getPullNumber(baseRepository, headBranch, baseBranch) {
return __awaiter(this, void 0, void 0, function* () {
var _a, e_1, _b, _c;
const { data: pulls } = yield this.octokit.rest.pulls.list(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { state: 'open', head: headBranch, base: baseBranch }));
let pullNumber = undefined;
if ((pulls === null || pulls === void 0 ? void 0 : pulls.length) === 0 || pulls === null || pulls === undefined) {
// This is a fallback due to a bug that affects the list endpoint when called on forks with the same owner as the repository parent.
core.info(`Pull request not found via list endpoint; attempting fallback mechanism`);
try {
for (var _d = true, _e = __asyncValues(this.octokit.paginate.iterator(this.octokit.rest.pulls.list, Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { state: 'open', base: baseBranch }))), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
_c = _f.value;
_d = false;
const response = _c;
const existingPull = response.data.find(pull => pull.head.label === headBranch);
if (existingPull !== undefined) {
pullNumber = existingPull.number;
break;
}
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
}
finally { if (e_1) throw e_1.error; }
}
}
else {
pullNumber = pulls[0].number;
}
if (pullNumber === undefined) {
throw new Error(`Failed to find pull request number for branch ${headBranch}`);
}
return pullNumber;
});
}
createOrUpdate(inputs, baseRepository, headRepository) {
return __awaiter(this, void 0, void 0, function* () {
const [headOwner] = headRepository.split('/');
@@ -1345,9 +1469,9 @@ class GitHubHelper {
}
// Update the pull request that exists for this branch and base
core.info(`Fetching existing pull request`);
const { data: pulls } = yield this.octokit.rest.pulls.list(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { state: 'open', head: headBranch, base: inputs.base }));
const pullNumber = yield this.getPullNumber(baseRepository, headBranch, inputs.base);
core.info(`Attempting update of pull request`);
const { data: pull } = yield this.octokit.rest.pulls.update(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { pull_number: pulls[0].number, title: inputs.title, body: inputs.body }));
const { data: pull } = yield this.octokit.rest.pulls.update(Object.assign(Object.assign({}, this.parseRepository(baseRepository)), { pull_number: pullNumber, title: inputs.title, body: inputs.body }));
core.info(`Updated pull request #${pull.number} (${headBranch} => ${inputs.base})`);
return {
number: pull.number,
@@ -1766,6 +1890,7 @@ var __importStar = (this && this.__importStar) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isSelfHosted = void 0;
exports.getInputAsArray = getInputAsArray;
exports.getStringAsArray = getStringAsArray;
exports.stripOrgPrefixFromTeams = stripOrgPrefixFromTeams;
@@ -1874,6 +1999,10 @@ function getErrorMessage(error) {
return error.message;
return String(error);
}
const isSelfHosted = () => process.env['RUNNER_ENVIRONMENT'] !== 'github-hosted' &&
(process.env['AGENT_ISSELFHOSTED'] === '1' ||
process.env['AGENT_ISSELFHOSTED'] === undefined);
exports.isSelfHosted = isSelfHosted;
/***/ }),
@@ -31950,25 +32079,25 @@ Object.defineProperty(exports, "__esModule", ({value:!0}));const node=__nccwpck_
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
var qi=Object.defineProperty;var u=(c,l)=>qi(c,"name",{value:l,configurable:!0});Object.defineProperty(exports, "__esModule", ({value:!0}));const http=__nccwpck_require__(7067),https=__nccwpck_require__(4708),zlib=__nccwpck_require__(8522),Stream=__nccwpck_require__(7075),require$$0=__nccwpck_require__(4573),require$$0$1=__nccwpck_require__(7975),_commonjsHelpers=__nccwpck_require__(3465),require$$1=__nccwpck_require__(3136),require$$0$2=__nccwpck_require__(7030),node_fs=__nccwpck_require__(3024),node_path=__nccwpck_require__(6760);function _interopDefaultCompat(c){return c&&typeof c=="object"&&"default"in c?c.default:c}u(_interopDefaultCompat,"_interopDefaultCompat");const http__default=_interopDefaultCompat(http),https__default=_interopDefaultCompat(https),zlib__default=_interopDefaultCompat(zlib),Stream__default=_interopDefaultCompat(Stream);function dataUriToBuffer(c){if(!/^data:/i.test(c))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');c=c.replace(/\r?\n/g,"");const l=c.indexOf(",");if(l===-1||l<=4)throw new TypeError("malformed data: URI");const d=c.substring(5,l).split(";");let y="",b=!1;const R=d[0]||"text/plain";let w=R;for(let z=1;z<d.length;z++)d[z]==="base64"?b=!0:d[z]&&(w+=`;${d[z]}`,d[z].indexOf("charset=")===0&&(y=d[z].substring(8)));!d[0]&&!y.length&&(w+=";charset=US-ASCII",y="US-ASCII");const A=b?"base64":"ascii",F=unescape(c.substring(l+1)),B=Buffer.from(F,A);return B.type=R,B.typeFull=w,B.charset=y,B}u(dataUriToBuffer,"dataUriToBuffer");var streams={},ponyfill_es2018$1={exports:{}};/**
var ys=Object.defineProperty;var Po=c=>{throw TypeError(c)};var u=(c,l)=>ys(c,"name",{value:l,configurable:!0});var vo=(c,l,d)=>l.has(c)||Po("Cannot "+d);var D=(c,l,d)=>(vo(c,l,"read from private field"),d?d.call(c):l.get(c)),ye=(c,l,d)=>l.has(c)?Po("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(c):l.set(c,d),ne=(c,l,d,g)=>(vo(c,l,"write to private field"),g?g.call(c,d):l.set(c,d),d);var Pe,gt,ot,Zt,Oe,_t,St,it,oe,st,xe,Ue,at;Object.defineProperty(exports, "__esModule", ({value:!0}));const http=__nccwpck_require__(7067),https=__nccwpck_require__(4708),zlib=__nccwpck_require__(8522),Stream=__nccwpck_require__(7075),require$$0=__nccwpck_require__(4573),require$$0$1=__nccwpck_require__(7975),_commonjsHelpers=__nccwpck_require__(3465),require$$1=__nccwpck_require__(3136),require$$0$2=__nccwpck_require__(7030),node_fs=__nccwpck_require__(3024),node_path=__nccwpck_require__(6760);function _interopDefaultCompat(c){return c&&typeof c=="object"&&"default"in c?c.default:c}u(_interopDefaultCompat,"_interopDefaultCompat");const http__default=_interopDefaultCompat(http),https__default=_interopDefaultCompat(https),zlib__default=_interopDefaultCompat(zlib),Stream__default=_interopDefaultCompat(Stream);function dataUriToBuffer(c){if(!/^data:/i.test(c))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');c=c.replace(/\r?\n/g,"");const l=c.indexOf(",");if(l===-1||l<=4)throw new TypeError("malformed data: URI");const d=c.substring(5,l).split(";");let g="",b=!1;const R=d[0]||"text/plain";let w=R;for(let I=1;I<d.length;I++)d[I]==="base64"?b=!0:d[I]&&(w+=`;${d[I]}`,d[I].indexOf("charset=")===0&&(g=d[I].substring(8)));!d[0]&&!g.length&&(w+=";charset=US-ASCII",g="US-ASCII");const A=b?"base64":"ascii",z=unescape(c.substring(l+1)),B=Buffer.from(z,A);return B.type=R,B.typeFull=w,B.charset=g,B}u(dataUriToBuffer,"dataUriToBuffer");var streams={},ponyfill_es2018$1={exports:{}};/**
* @license
* web-streams-polyfill v3.3.3
* Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors.
* This code is released under the MIT license.
* SPDX-License-Identifier: MIT
*/var ponyfill_es2018=ponyfill_es2018$1.exports,hasRequiredPonyfill_es2018;function requirePonyfill_es2018(){return hasRequiredPonyfill_es2018||(hasRequiredPonyfill_es2018=1,function(c,l){(function(d,y){y(l)})(ponyfill_es2018,function(d){function y(){}u(y,"noop");function b(n){return typeof n=="object"&&n!==null||typeof n=="function"}u(b,"typeIsObject");const R=y;function w(n,o){try{Object.defineProperty(n,"name",{value:o,configurable:!0})}catch{}}u(w,"setFunctionName");const A=Promise,F=Promise.prototype.then,B=Promise.reject.bind(A);function z(n){return new A(n)}u(z,"newPromise");function W(n){return z(o=>o(n))}u(W,"promiseResolvedWith");function T(n){return B(n)}u(T,"promiseRejectedWith");function D(n,o,a){return F.call(n,o,a)}u(D,"PerformPromiseThen");function E(n,o,a){D(D(n,o,a),void 0,R)}u(E,"uponPromise");function Z(n,o){E(n,o)}u(Z,"uponFulfillment");function M(n,o){E(n,void 0,o)}u(M,"uponRejection");function U(n,o,a){return D(n,o,a)}u(U,"transformPromiseWith");function K(n){D(n,void 0,R)}u(K,"setPromiseIsHandledToTrue");let se=u(n=>{if(typeof queueMicrotask=="function")se=queueMicrotask;else{const o=W(void 0);se=u(a=>D(o,a),"_queueMicrotask")}return se(n)},"_queueMicrotask");function $(n,o,a){if(typeof n!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(n,o,a)}u($,"reflectCall");function N(n,o,a){try{return W($(n,o,a))}catch(p){return T(p)}}u(N,"promiseCall");const V=16384;class Q{static{u(this,"SimpleQueue")}constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(o){const a=this._back;let p=a;a._elements.length===V-1&&(p={_elements:[],_next:void 0}),a._elements.push(o),p!==a&&(this._back=p,a._next=p),++this._size}shift(){const o=this._front;let a=o;const p=this._cursor;let g=p+1;const _=o._elements,S=_[p];return g===V&&(a=o._next,g=0),--this._size,this._cursor=g,o!==a&&(this._front=a),_[p]=void 0,S}forEach(o){let a=this._cursor,p=this._front,g=p._elements;for(;(a!==g.length||p._next!==void 0)&&!(a===g.length&&(p=p._next,g=p._elements,a=0,g.length===0));)o(g[a]),++a}peek(){const o=this._front,a=this._cursor;return o._elements[a]}}const rt=Symbol("[[AbortSteps]]"),wr=Symbol("[[ErrorSteps]]"),Ot=Symbol("[[CancelSteps]]"),Ft=Symbol("[[PullSteps]]"),It=Symbol("[[ReleaseSteps]]");function Rr(n,o){n._ownerReadableStream=o,o._reader=n,o._state==="readable"?jt(n):o._state==="closed"?Dn(n):Tr(n,o._storedError)}u(Rr,"ReadableStreamReaderGenericInitialize");function zt(n,o){const a=n._ownerReadableStream;return ne(a,o)}u(zt,"ReadableStreamReaderGenericCancel");function ue(n){const o=n._ownerReadableStream;o._state==="readable"?Lt(n,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):$n(n,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),o._readableStreamController[It](),o._reader=void 0,n._ownerReadableStream=void 0}u(ue,"ReadableStreamReaderGenericRelease");function nt(n){return new TypeError("Cannot "+n+" a stream using a released reader")}u(nt,"readerLockException");function jt(n){n._closedPromise=z((o,a)=>{n._closedPromise_resolve=o,n._closedPromise_reject=a})}u(jt,"defaultReaderClosedPromiseInitialize");function Tr(n,o){jt(n),Lt(n,o)}u(Tr,"defaultReaderClosedPromiseInitializeAsRejected");function Dn(n){jt(n),Cr(n)}u(Dn,"defaultReaderClosedPromiseInitializeAsResolved");function Lt(n,o){n._closedPromise_reject!==void 0&&(K(n._closedPromise),n._closedPromise_reject(o),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0)}u(Lt,"defaultReaderClosedPromiseReject");function $n(n,o){Tr(n,o)}u($n,"defaultReaderClosedPromiseResetToRejected");function Cr(n){n._closedPromise_resolve!==void 0&&(n._closedPromise_resolve(void 0),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0)}u(Cr,"defaultReaderClosedPromiseResolve");const Pr=Number.isFinite||function(n){return typeof n=="number"&&isFinite(n)},Mn=Math.trunc||function(n){return n<0?Math.ceil(n):Math.floor(n)};function xn(n){return typeof n=="object"||typeof n=="function"}u(xn,"isDictionary");function ie(n,o){if(n!==void 0&&!xn(n))throw new TypeError(`${o} is not an object.`)}u(ie,"assertDictionary");function X(n,o){if(typeof n!="function")throw new TypeError(`${o} is not a function.`)}u(X,"assertFunction");function Un(n){return typeof n=="object"&&n!==null||typeof n=="function"}u(Un,"isObject");function Er(n,o){if(!Un(n))throw new TypeError(`${o} is not an object.`)}u(Er,"assertObject");function le(n,o,a){if(n===void 0)throw new TypeError(`Parameter ${o} is required in '${a}'.`)}u(le,"assertRequiredArgument");function Dt(n,o,a){if(n===void 0)throw new TypeError(`${o} is required in '${a}'.`)}u(Dt,"assertRequiredField");function $t(n){return Number(n)}u($t,"convertUnrestrictedDouble");function vr(n){return n===0?0:n}u(vr,"censorNegativeZero");function Nn(n){return vr(Mn(n))}u(Nn,"integerPartLine truncated
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e$1"),x=u((c,l,d)=>{if(l.length<d)throw new TypeError(`Failed to execute '${c}' on 'FormData': ${d} arguments required, but only ${l.length} present.`)},"x");const FormData=class{static{u(this,"FormData")}#e=[];constructor(...l){if(l.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[t$1](){return"FormData"}[i](){return this.entries()}static[h](l){return l&&typeof l=="object"&&l[t$1]==="FormData"&&!m.some(d=>typeof l[d]!="function")}append(...l){x("append",arguments,2),this.#e.push(f(...l))}delete(l){x("delete",arguments,1),l+="",this.#e=this.#e.filter(([d])=>d!==l)}get(l){x("get",arguments,1),l+="";for(var d=this.#e,y=d.length,b=0;b<y;b++)if(d[b][0]===l)return d[b][1];return null}getAll(l,d){return x("getAll",arguments,1),d=[],l+="",this.#e.forEach(y=>y[0]===l&&d.push(y[1])),d}has(l){return x("has",arguments,1),l+="",this.#e.some(d=>d[0]===l)}forEach(l,d){x("forEach",arguments,1);for(var[y,b]of this)l.call(d,b,y,this)}set(...l){x("set",arguments,2);var d=[],y=!0;l=f(...l),this.#e.forEach(b=>{b[0]===l[0]?y&&(y=!d.push(l)):d.push(b)}),y&&d.push(l),this.#e=d}*entries(){yield*this.#e}*keys(){for(var[l]of this)yield l}*values(){for(var[,l]of this)yield l}};function formDataToBlob(c,l=Blob){var d=`${r()}${r()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),y=[],b=`--${d}\r
Content-Disposition: form-data; name="`;return c.forEach((R,w)=>typeof R=="string"?y.push(b+e$1(w)+`"\r
*/var ponyfill_es2018=ponyfill_es2018$1.exports,hasRequiredPonyfill_es2018;function requirePonyfill_es2018(){return hasRequiredPonyfill_es2018||(hasRequiredPonyfill_es2018=1,function(c,l){(function(d,g){g(l)})(ponyfill_es2018,function(d){function g(){}u(g,"noop");function b(n){return typeof n=="object"&&n!==null||typeof n=="function"}u(b,"typeIsObject");const R=g;function w(n,o){try{Object.defineProperty(n,"name",{value:o,configurable:!0})}catch{}}u(w,"setFunctionName");const A=Promise,z=Promise.prototype.then,B=Promise.reject.bind(A);function I(n){return new A(n)}u(I,"newPromise");function k(n){return I(o=>o(n))}u(k,"promiseResolvedWith");function T(n){return B(n)}u(T,"promiseRejectedWith");function $(n,o,a){return z.call(n,o,a)}u($,"PerformPromiseThen");function v(n,o,a){$($(n,o,a),void 0,R)}u(v,"uponPromise");function K(n,o){v(n,o)}u(K,"uponFulfillment");function U(n,o){v(n,void 0,o)}u(U,"uponRejection");function N(n,o,a){return $(n,o,a)}u(N,"transformPromiseWith");function J(n){$(n,void 0,R)}u(J,"setPromiseIsHandledToTrue");let ge=u(n=>{if(typeof queueMicrotask=="function")ge=queueMicrotask;else{const o=k(void 0);ge=u(a=>$(o,a),"_queueMicrotask")}return ge(n)},"_queueMicrotask");function M(n,o,a){if(typeof n!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(n,o,a)}u(M,"reflectCall");function H(n,o,a){try{return k(M(n,o,a))}catch(p){return T(p)}}u(H,"promiseCall");const Y=16384,Dr=class Dr{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(o){const a=this._back;let p=a;a._elements.length===Y-1&&(p={_elements:[],_next:void 0}),a._elements.push(o),p!==a&&(this._back=p,a._next=p),++this._size}shift(){const o=this._front;let a=o;const p=this._cursor;let y=p+1;const _=o._elements,S=_[p];return y===Y&&(a=o._next,y=0),--this._size,this._cursor=y,o!==a&&(this._front=a),_[p]=void 0,S}forEach(o){let a=this._cursor,p=this._front,y=p._elements;for(;(a!==y.length||p._next!==void 0)&&!(a===y.length&&(p=p._next,y=p._elements,a=0,y.length===0));)o(y[a]),++a}peek(){const o=this._front,a=this._cursor;return o._elements[a]}};u(Dr,"SimpleQueue");let Q=Dr;const wt=Symbol("[[AbortSteps]]"),un=Symbol("[[ErrorSteps]]"),er=Symbol("[[CancelSteps]]"),tr=Symbol("[[PullSteps]]"),rr=Symbol("[[ReleaseSteps]]");function ln(n,o){n._ownerReadableStream=o,o._reader=n,o._state==="readable"?or(n):o._state==="closed"?Eo(n):fn(n,o._storedError)}u(ln,"ReadableStreamReaderGenericInitialize");function nr(n,o){const a=n._ownerReadableStream;return le(a,o)}u(nr,"ReadableStreamReaderGenericCancel");function _e(n){const o=n._ownerReadableStream;o._state==="readable"?ir(n,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):Ao(n,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),o._readableStreamController[rr](),o._reader=void 0,n._ownerReadableStream=void 0}u(_e,"ReadableStreamReaderGenericRelease");function Rt(n){return new TypeError("Cannot "+n+" a stream using a released reader")}u(Rt,"readerLockException");function or(n){n._closedPromise=I((o,a)=>{n._closedPromise_resolve=o,n._closedPromise_reject=a})}u(or,"defaultReaderClosedPromiseInitialize");function fn(n,o){or(n),ir(n,o)}u(fn,"defaultReaderClosedPromiseInitializeAsRejected");function Eo(n){or(n),cn(n)}u(Eo,"defaultReaderClosedPromiseInitializeAsResolved");function ir(n,o){n._closedPromise_reject!==void 0&&(J(n._closedPromise),n._closedPromise_reject(o),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0)}u(ir,"defaultReaderClosedPromiseReject");function Ao(n,o){fn(n,o)}u(Ao,"defaultReaderClosedPromiseResetToRejected");function cn(n){n._closedPromise_resolve!==void 0&&(n._closedPromise_resolve(void 0),n._closedPromise_resolve=void 0,n._closedPromise_reject=void 0)}u(cn,"defaultReaderClosedPromiseResolve");const dn=Number.isFinite||function(n){return typeof n=="number"&&isFinite(n)},Bo=Math.trunc||function(n){return n<0?Math.ceil(n):Math.floor(n)};function qo(n){return typeof n=="object"||typeof n=="function"}u(qo,"isDictionary");function ce(n,o){if(n!==void 0&&!qo(n))throw new TypeError(`${o} is not an object.`)}u(ce,"assertDictionary");function ee(n,o){if(typeof n!="function")throw new TypeError(`${o} is not a function.`)}u(ee,"assertFunction");function ko(n){return typeof n=="object"&&n!==null||typeof n=="function"}u(ko,"isObject");function hn(n,o){if(!ko(n))throw new TypeError(`${o} is not an object.`)}u(hn,"assertObject");function Se(n,o,a){if(n===void 0)throw new TypeError(`Parameter ${o} is required in '${a}'.`)}u(Se,"assertRequiredArgument");function sr(n,o,a){if(n===void 0)throw new TypeError(`${o} is required in '${a}'.`)}u(sr,"assertRequiredField");function ar(n){return Number(n)}u(ar,"convertUnrestrictedDouble");function pn(n){return n===0?0:n}u(pn,"censorNegativeZero");function Wo(n){return pn(Bo(n))}u(Wo,"inteLine truncated
`)).replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"e$1"),x=u((c,l,d)=>{if(l.length<d)throw new TypeError(`Failed to execute '${c}' on 'FormData': ${d} arguments required, but only ${l.length} present.`)},"x");const FormData=(st=class{constructor(...l){ye(this,oe,[]);if(l.length)throw new TypeError("Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.")}get[t$1](){return"FormData"}[i](){return this.entries()}static[h](l){return l&&typeof l=="object"&&l[t$1]==="FormData"&&!m.some(d=>typeof l[d]!="function")}append(...l){x("append",arguments,2),D(this,oe).push(f(...l))}delete(l){x("delete",arguments,1),l+="",ne(this,oe,D(this,oe).filter(([d])=>d!==l))}get(l){x("get",arguments,1),l+="";for(var d=D(this,oe),g=d.length,b=0;b<g;b++)if(d[b][0]===l)return d[b][1];return null}getAll(l,d){return x("getAll",arguments,1),d=[],l+="",D(this,oe).forEach(g=>g[0]===l&&d.push(g[1])),d}has(l){return x("has",arguments,1),l+="",D(this,oe).some(d=>d[0]===l)}forEach(l,d){x("forEach",arguments,1);for(var[g,b]of this)l.call(d,b,g,this)}set(...l){x("set",arguments,2);var d=[],g=!0;l=f(...l),D(this,oe).forEach(b=>{b[0]===l[0]?g&&(g=!d.push(l)):d.push(b)}),g&&d.push(l),ne(this,oe,d)}*entries(){yield*D(this,oe)}*keys(){for(var[l]of this)yield l}*values(){for(var[,l]of this)yield l}},oe=new WeakMap,u(st,"FormData"),st);function formDataToBlob(c,l=Blob){var d=`${r()}${r()}`.replace(/\./g,"").slice(-28).padStart(32,"-"),g=[],b=`--${d}\r
Content-Disposition: form-data; name="`;return c.forEach((R,w)=>typeof R=="string"?g.push(b+e$1(w)+`"\r
\r
${R.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
`)}\r
`):y.push(b+e$1(w)+`"; filename="${e$1(R.name,1)}"\r
`):g.push(b+e$1(w)+`"; filename="${e$1(R.name,1)}"\r
Content-Type: ${R.type||"application/octet-stream"}\r
\r
`,R,`\r
`)),y.push(`--${d}--`),new l(y,{type:"multipart/form-data; boundary="+d})}u(formDataToBlob,"formDataToBlob");class FetchBaseError extends Error{static{u(this,"FetchBaseError")}constructor(l,d){super(l),Error.captureStackTrace(this,this.constructor),this.type=d}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}class FetchError extends FetchBaseError{static{u(this,"FetchError")}constructor(l,d,y){super(l,d),y&&(this.code=this.errno=y.code,this.erroredSysCall=y.syscall)}}const NAME=Symbol.toStringTag,isURLSearchParameters=u(c=>typeof c=="object"&&typeof c.append=="function"&&typeof c.delete=="function"&&typeof c.get=="function"&&typeof c.getAll=="function"&&typeof c.has=="function"&&typeof c.set=="function"&&typeof c.sort=="function"&&c[NAME]==="URLSearchParams","isURLSearchParameters"),isBlob=u(c=>c&&typeof c=="object"&&typeof c.arrayBuffer=="function"&&typeof c.type=="string"&&typeof c.stream=="function"&&typeof c.constructor=="function"&&/^(Blob|File)$/.test(c[NAME]),"isBlob"),isAbortSignal=u(c=>typeof c=="object"&&(c[NAME]==="AbortSignal"||c[NAME]==="EventTarget"),"isAbortSignal"),isDomainOrSubdomain=u((c,l)=>{const d=new URL(l).hostname,y=new URL(c).hostname;return d===y||d.endsWith(`.${y}`)},"isDomainOrSubdomain"),isSameProtocol=u((c,l)=>{const d=new URL(l).protocol,y=new URL(c).protocol;return d===y},"isSameProtocol"),pipeline=require$$0$1.promisify(Stream__default.pipeline),INTERNALS$2=Symbol("Body internals");class Body{static{u(this,"Body")}constructor(l,{size:d=0}={}){let y=null;l===null?l=null:isURLSearchParameters(l)?l=require$$0.Buffer.from(l.toString()):isBlob(l)||require$$0.Buffer.isBuffer(l)||(require$$0$1.types.isAnyArrayBuffer(l)?l=require$$0.Buffer.from(l):ArrayBuffer.isView(l)?l=require$$0.Buffer.from(l.buffer,l.byteOffset,l.byteLength):l instanceof Stream__default||(l instanceof FormData?(l=formDataToBlob(l),y=l.type.split("=")[1]):l=require$$0.Buffer.from(String(l))));let b=l;require$$0.Buffer.isBuffer(l)?b=Stream__default.Readable.from(l):isBlob(l)&&(b=Stream__default.Readable.from(l.stream())),this[INTERNALS$2]={body:l,stream:b,boundary:y,disturbed:!1,error:null},this.size=d,l instanceof Stream__default&&l.on("error",R=>{const w=R instanceof FetchBaseError?R:new FetchError(`Invalid response body while trying to fetch ${this.url}: ${R.message}`,"system",R);this[INTERNALS$2].error=w})}get body(){return this[INTERNALS$2].stream}get bodyUsed(){return this[INTERNALS$2].disturbed}async arrayBuffer(){const{buffer:l,byteOffset:d,byteLength:y}=await consumeBody(this);return l.slice(d,d+y)}async formData(){const l=this.headers.get("content-type");if(l.startsWith("application/x-www-form-urlencoded")){const y=new FormData,b=new URLSearchParams(await this.text());for(const[R,w]of b)y.append(R,w);return y}const{toFormData:d}=await __nccwpck_require__.e(/* import() */ 790).then(__nccwpck_require__.t.bind(__nccwpck_require__, 790, 19));return d(this.body,l)}async blob(){const l=this.headers&&this.headers.get("content-type")||this[INTERNALS$2].body&&this[INTERNALS$2].body.type||"",d=await this.arrayBuffer();return new Blob([d],{type:l})}async json(){const l=await this.text();return JSON.parse(l)}async text(){const l=await consumeBody(this);return new TextDecoder().decode(l)}buffer(){return consumeBody(this)}}Body.prototype.buffer=require$$0$1.deprecate(Body.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer"),Object.defineProperties(Body.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:require$$0$1.deprecate(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function consumeBody(c){if(c[INTERNALS$2].disturbed)throw new TypeError(`body used already for: ${c.url}`);if(c[INTERNALS$2].disturbed=!0,c[INTERNALS$2].error)throw c[INTERNALS$2].error;const{body:l}=c;if(l===null||!(l instanceof Stream__default))return require$$0.Buffer.alloc(0);const d=[];let y=0;try{for await(const b of l){if(c.size>0&&y+b.length>c.size){const R=new FetchError(`content size at ${c.url} over limit: ${c.size}`,"max-size");throw l.destroy(R),R}y+=b.length,d.push(b)}}catch(b){throw b instanceof FetchBaseError?b:new FetchError(`Invalid response body while trying to fetch ${c.url}: ${b.message}`,"system",b)}if(l.readableEnded===!0||l._readableState.ended===!0)try{return d.every(b=>typeof b=="string")?require$$0.Buffer.from(d.join("")):require$$0.Buffer.concat(d,y)}catch(b){throw new FetchError(`Could not create Buffer from response body for ${c.url}: ${b.message}`,"system",b)}else throw new FetchError(`Premature close of server response while trying to fetch ${c.url}`)}u(consumeBody,"consumeBody");const clone=u((c,l)=>{let d,y,{body:b}=c[INTERNALS$2];if(c.bodyUsed)throw new Error("cannot clone body after it is used");return b Line truncated
`)),g.push(`--${d}--`),new l(g,{type:"multipart/form-data; boundary="+d})}u(formDataToBlob,"formDataToBlob");const rn=class rn extends Error{constructor(l,d){super(l),Error.captureStackTrace(this,this.constructor),this.type=d}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};u(rn,"FetchBaseError");let FetchBaseError=rn;const nn=class nn extends FetchBaseError{constructor(l,d,g){super(l,d),g&&(this.code=this.errno=g.code,this.erroredSysCall=g.syscall)}};u(nn,"FetchError");let FetchError=nn;const NAME=Symbol.toStringTag,isURLSearchParameters=u(c=>typeof c=="object"&&typeof c.append=="function"&&typeof c.delete=="function"&&typeof c.get=="function"&&typeof c.getAll=="function"&&typeof c.has=="function"&&typeof c.set=="function"&&typeof c.sort=="function"&&c[NAME]==="URLSearchParams","isURLSearchParameters"),isBlob=u(c=>c&&typeof c=="object"&&typeof c.arrayBuffer=="function"&&typeof c.type=="string"&&typeof c.stream=="function"&&typeof c.constructor=="function"&&/^(Blob|File)$/.test(c[NAME]),"isBlob"),isAbortSignal=u(c=>typeof c=="object"&&(c[NAME]==="AbortSignal"||c[NAME]==="EventTarget"),"isAbortSignal"),isDomainOrSubdomain=u((c,l)=>{const d=new URL(l).hostname,g=new URL(c).hostname;return d===g||d.endsWith(`.${g}`)},"isDomainOrSubdomain"),isSameProtocol=u((c,l)=>{const d=new URL(l).protocol,g=new URL(c).protocol;return d===g},"isSameProtocol"),pipeline=require$$0$1.promisify(Stream__default.pipeline),INTERNALS$2=Symbol("Body internals"),on=class on{constructor(l,{size:d=0}={}){let g=null;l===null?l=null:isURLSearchParameters(l)?l=require$$0.Buffer.from(l.toString()):isBlob(l)||require$$0.Buffer.isBuffer(l)||(require$$0$1.types.isAnyArrayBuffer(l)?l=require$$0.Buffer.from(l):ArrayBuffer.isView(l)?l=require$$0.Buffer.from(l.buffer,l.byteOffset,l.byteLength):l instanceof Stream__default||(l instanceof FormData?(l=formDataToBlob(l),g=l.type.split("=")[1]):l=require$$0.Buffer.from(String(l))));let b=l;require$$0.Buffer.isBuffer(l)?b=Stream__default.Readable.from(l):isBlob(l)&&(b=Stream__default.Readable.from(l.stream())),this[INTERNALS$2]={body:l,stream:b,boundary:g,disturbed:!1,error:null},this.size=d,l instanceof Stream__default&&l.on("error",R=>{const w=R instanceof FetchBaseError?R:new FetchError(`Invalid response body while trying to fetch ${this.url}: ${R.message}`,"system",R);this[INTERNALS$2].error=w})}get body(){return this[INTERNALS$2].stream}get bodyUsed(){return this[INTERNALS$2].disturbed}async arrayBuffer(){const{buffer:l,byteOffset:d,byteLength:g}=await consumeBody(this);return l.slice(d,d+g)}async formData(){const l=this.headers.get("content-type");if(l.startsWith("application/x-www-form-urlencoded")){const g=new FormData,b=new URLSearchParams(await this.text());for(const[R,w]of b)g.append(R,w);return g}const{toFormData:d}=await __nccwpck_require__.e(/* import() */ 790).then(__nccwpck_require__.t.bind(__nccwpck_require__, 790, 19));return d(this.body,l)}async blob(){const l=this.headers&&this.headers.get("content-type")||this[INTERNALS$2].body&&this[INTERNALS$2].body.type||"",d=await this.arrayBuffer();return new Blob([d],{type:l})}async json(){const l=await this.text();return JSON.parse(l)}async text(){const l=await consumeBody(this);return new TextDecoder().decode(l)}buffer(){return consumeBody(this)}};u(on,"Body");let Body=on;Body.prototype.buffer=require$$0$1.deprecate(Body.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer"),Object.defineProperties(Body.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:require$$0$1.deprecate(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function consumeBody(c){if(c[INTERNALS$2].disturbed)throw new TypeError(`body used already for: ${c.url}`);if(c[INTERNALS$2].disturbed=!0,c[INTERNALS$2].error)throw c[INTERNALS$2].error;const{body:l}=c;if(l===null||!(l instanceof Stream__default))return require$$0.Buffer.alloc(0);const d=[];let g=0;try{for await(const b of l){if(c.size>0&&g+b.length>c.size){const R=new FetchError(`content size at ${c.url} over limit: ${c.size}`,"max-size");throw l.destroy(R),R}g+=b.length,d.push(b)}}catch(b){throw b instanceof FetchBaseError?b:new FetchError(`Invalid response body while trying to fetch ${c.url}: ${b.message}`,"system",b)}if(l.readableEnded===!0||l._readableState.ended===!0)try{return d.every(b=>typeof b=="string")?require$$0.Buffer.from(d.join("")):require$$0.Buffer.concat(d,g)}catch(b){throw new FetchError(`Could not create Buffer from response body for ${c.url}: ${b.message}`,"system",b)}else throw new FetchError(`Premature close of server response while trying to fetch ${c.url}`)}u(consumeBody,"consumeBody");const clone=u((c,l)=>{let d,g,{body:b}=c[INTERNALS$2];if(c.bodyUsed)throw new Error("cannot clone body Line truncated
\r
`);let y=!1,b=!1,R;c.on("response",w=>{const{headers:A}=w;y=A["transfer-encoding"]==="chunked"&&!A["content-length"]}),c.on("socket",w=>{const A=u(()=>{if(y&&!b){const B=new Error("Premature close");B.code="ERR_STREAM_PREMATURE_CLOSE",l(B)}},"onSocketClose"),F=u(B=>{b=require$$0.Buffer.compare(B.slice(-5),d)===0,!b&&R&&(b=require$$0.Buffer.compare(R.slice(-3),d.slice(0,3))===0&&require$$0.Buffer.compare(B.slice(-2),d.slice(3))===0),R=B},"onData");w.prependListener("close",A),w.on("data",F),c.on("close",()=>{w.removeListener("close",A),w.removeListener("data",F)})})}u(fixResponseChunkedTransferBadEnding,"fixResponseChunkedTransferBadEnding");const privateData=new WeakMap,wrappers=new WeakMap;function pd(c){const l=privateData.get(c);return console.assert(l!=null,"'this' is expected an Event object, but got",c),l}u(pd,"pd");function setCancelFlag(c){if(c.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",c.passiveListener);return}c.event.cancelable&&(c.canceled=!0,typeof c.event.preventDefault=="function"&&c.event.preventDefault())}u(setCancelFlag,"setCancelFlag");function Event(c,l){privateData.set(this,{eventTarget:c,event:l,eventPhase:2,currentTarget:c,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:l.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const d=Object.keys(l);for(let y=0;y<d.length;++y){const b=d[y];b in this||Object.defineProperty(this,b,defineRedirectDescriptor(b))}}u(Event,"Event"),Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const c=pd(this).currentTarget;return c==null?[]:[c]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const c=pd(this);c.stopped=!0,typeof c.event.stopPropagation=="function"&&c.event.stopPropagation()},stopImmediatePropagation(){const c=pd(this);c.stopped=!0,c.immediateStopped=!0,typeof c.event.stopImmediatePropagation=="function"&&c.event.stopImmediatePropagation()},get bubbles(){return!!pd(this).event.bubbles},get cancelable(){return!!pd(this).event.cancelable},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return!!pd(this).event.composed},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(c){if(!c)return;const l=pd(this);l.stopped=!0,typeof l.event.cancelBubble=="boolean"&&(l.event.cancelBubble=!0)},get returnValue(){return!pd(this).canceled},set returnValue(c){c||setCancelFlag(pd(this))},initEvent(){}},Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Event.prototype,window.Event.prototype),wrappers.set(window.Event.prototype,Event));function defineRedirectDescriptor(c){return{get(){return pd(this).event[c]},set(l){pd(this).event[c]=l},configurable:!0,enumerable:!0}}u(defineRedirectDescriptor,"defineRedirectDescriptor");function defineCallDescriptor(c){return{value(){const l=pd(this).event;return l[c].apply(l,arguments)},configurable:!0,enumerable:!0}}u(defineCallDescriptor,"defineCallDescriptor");function defineWrapper(c,l){const d=Object.keys(l);if(d.length===0)return c;function y(b,R){c.call(this,b,R)}u(y,"CustomEvent"),y.prototype=Object.create(c.prototype,{constructor:{value:y,configurable:!0,writable:!0}});for(let b=0;b<d.length;++b){const R=d[b];if(!(R in c.prototype)){const A=typeof Object.getOwnPropertyDescriptor(l,R).value=="function";Object.defineProperty(y.prototype,R,A?defineCallDescriptor(R):defineRedirectDescriptor(R))}}return y}u(defineWrapper,"defineWrapper");function getWrapper(c){if(c==null||c===Object.prototype)return Event;let l=wrappers.get(c);return l==null&&(l=defineWrapper(getWrapper(Object.getPrototypeOf(c)),c),wrappers.set(c,l)),l}u(getWrapper,"getWrapper");function wrapEvent(c,l){const d=getWrapper(Object.getPrototypeOf(l));return new d(c,l)}u(wrapEvent,"wrapEvent");function isStopped(c){return pd(c).immediateStopped}u(isStopped,"isStopped");function setEventPhase(c,l){pd(c).eventPhase=l}u(setEventPhase,"setEventPhase");function setCurrentTarget(c,l){pd(c).currentTarget=l}u(setCurrentTarget,"setCurrentTarget");function setPassiveListener(c,l){pd(c).passiveListener=l}u(setPassiveListener,"setPassiveListener");const listenersMap=new WeakMap,CAPTURE=1,BUBBLE=2,ATTRIBUTE=3;function isObject(c){return c!==null&&typeof c=="object"}u(isObject,"isObject");function getListeners(c){const l=listenersMap.get(c);if(l==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return l}u(getListeners,"getListeners");function defineEventAttr Line truncated
`);let g=!1,b=!1,R;c.on("response",w=>{const{headers:A}=w;g=A["transfer-encoding"]==="chunked"&&!A["content-length"]}),c.on("socket",w=>{const A=u(()=>{if(g&&!b){const B=new Error("Premature close");B.code="ERR_STREAM_PREMATURE_CLOSE",l(B)}},"onSocketClose"),z=u(B=>{b=require$$0.Buffer.compare(B.slice(-5),d)===0,!b&&R&&(b=require$$0.Buffer.compare(R.slice(-3),d.slice(0,3))===0&&require$$0.Buffer.compare(B.slice(-2),d.slice(3))===0),R=B},"onData");w.prependListener("close",A),w.on("data",z),c.on("close",()=>{w.removeListener("close",A),w.removeListener("data",z)})})}u(fixResponseChunkedTransferBadEnding,"fixResponseChunkedTransferBadEnding");const privateData=new WeakMap,wrappers=new WeakMap;function pd(c){const l=privateData.get(c);return console.assert(l!=null,"'this' is expected an Event object, but got",c),l}u(pd,"pd");function setCancelFlag(c){if(c.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",c.passiveListener);return}c.event.cancelable&&(c.canceled=!0,typeof c.event.preventDefault=="function"&&c.event.preventDefault())}u(setCancelFlag,"setCancelFlag");function Event(c,l){privateData.set(this,{eventTarget:c,event:l,eventPhase:2,currentTarget:c,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:l.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const d=Object.keys(l);for(let g=0;g<d.length;++g){const b=d[g];b in this||Object.defineProperty(this,b,defineRedirectDescriptor(b))}}u(Event,"Event"),Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const c=pd(this).currentTarget;return c==null?[]:[c]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const c=pd(this);c.stopped=!0,typeof c.event.stopPropagation=="function"&&c.event.stopPropagation()},stopImmediatePropagation(){const c=pd(this);c.stopped=!0,c.immediateStopped=!0,typeof c.event.stopImmediatePropagation=="function"&&c.event.stopImmediatePropagation()},get bubbles(){return!!pd(this).event.bubbles},get cancelable(){return!!pd(this).event.cancelable},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return!!pd(this).event.composed},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(c){if(!c)return;const l=pd(this);l.stopped=!0,typeof l.event.cancelBubble=="boolean"&&(l.event.cancelBubble=!0)},get returnValue(){return!pd(this).canceled},set returnValue(c){c||setCancelFlag(pd(this))},initEvent(){}},Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Event.prototype,window.Event.prototype),wrappers.set(window.Event.prototype,Event));function defineRedirectDescriptor(c){return{get(){return pd(this).event[c]},set(l){pd(this).event[c]=l},configurable:!0,enumerable:!0}}u(defineRedirectDescriptor,"defineRedirectDescriptor");function defineCallDescriptor(c){return{value(){const l=pd(this).event;return l[c].apply(l,arguments)},configurable:!0,enumerable:!0}}u(defineCallDescriptor,"defineCallDescriptor");function defineWrapper(c,l){const d=Object.keys(l);if(d.length===0)return c;function g(b,R){c.call(this,b,R)}u(g,"CustomEvent"),g.prototype=Object.create(c.prototype,{constructor:{value:g,configurable:!0,writable:!0}});for(let b=0;b<d.length;++b){const R=d[b];if(!(R in c.prototype)){const A=typeof Object.getOwnPropertyDescriptor(l,R).value=="function";Object.defineProperty(g.prototype,R,A?defineCallDescriptor(R):defineRedirectDescriptor(R))}}return g}u(defineWrapper,"defineWrapper");function getWrapper(c){if(c==null||c===Object.prototype)return Event;let l=wrappers.get(c);return l==null&&(l=defineWrapper(getWrapper(Object.getPrototypeOf(c)),c),wrappers.set(c,l)),l}u(getWrapper,"getWrapper");function wrapEvent(c,l){const d=getWrapper(Object.getPrototypeOf(l));return new d(c,l)}u(wrapEvent,"wrapEvent");function isStopped(c){return pd(c).immediateStopped}u(isStopped,"isStopped");function setEventPhase(c,l){pd(c).eventPhase=l}u(setEventPhase,"setEventPhase");function setCurrentTarget(c,l){pd(c).currentTarget=l}u(setCurrentTarget,"setCurrentTarget");function setPassiveListener(c,l){pd(c).passiveListener=l}u(setPassiveListener,"setPassiveListener");const listenersMap=new WeakMap,CAPTURE=1,BUBBLE=2,ATTRIBUTE=3;function isObject(c){return c!==null&&typeof c=="object"}u(isObject,"isObject");function getListeners(c){const l=listenersMap.get(c);if(l==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return l}u(getListeners,"getListeners");function defineEventAttr Line truncated
/***/ }),
@@ -31977,63 +32106,64 @@ Content-Type: ${R.type||"application/octet-stream"}\r
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
var le=Object.defineProperty;var e=(A,p)=>le(A,"name",{value:p,configurable:!0});const http=__nccwpck_require__(7067),https=__nccwpck_require__(4708),require$$1$1=__nccwpck_require__(3136),require$$0=__nccwpck_require__(4589),require$$0$1=__nccwpck_require__(7030),Stream=__nccwpck_require__(7075),require$$0$2=__nccwpck_require__(4573),require$$0$3=__nccwpck_require__(7975),require$$7=__nccwpck_require__(1792),require$$8=__nccwpck_require__(8474),require$$0$4=__nccwpck_require__(3053),_commonjsHelpers=__nccwpck_require__(3465),require$$5=__nccwpck_require__(1692),zlib=__nccwpck_require__(8522),require$$5$1=__nccwpck_require__(643),require$$8$1=__nccwpck_require__(3429),require$$1=__nccwpck_require__(5919),require$$5$2=__nccwpck_require__(6698),require$$1$2=__nccwpck_require__(7540),require$$1$3=__nccwpck_require__(610),require$$5$3=__nccwpck_require__(3193),require$$0$6=__nccwpck_require__(9278),require$$0$5=__nccwpck_require__(8611),require$$1$4=__nccwpck_require__(5692),require$$1$7=__nccwpck_require__(4756),require$$1$5=__nccwpck_require__(2018),require$$1$6=__nccwpck_require__(9023),require$$0$7=__nccwpck_require__(857),require$$3=__nccwpck_require__(4434),require$$5$4=__nccwpck_require__(7016),require$$2=__nccwpck_require__(2613),nodeFetchNative=__nccwpck_require__(2174);function _interopDefaultCompat(A){return A&&typeof A=="object"&&"default"in A?A.default:A}e(_interopDefaultCompat,"_interopDefaultCompat");function _interopNamespaceCompat(A){if(A&&typeof A=="object"&&"default"in A)return A;const p=Object.create(null);if(A)for(const c in A)p[c]=A[c];return p.default=A,p}e(_interopNamespaceCompat,"_interopNamespaceCompat");const http__default=_interopDefaultCompat(http),http__namespace=_interopNamespaceCompat(http),https__namespace=_interopNamespaceCompat(https),require$$1__default$1=_interopDefaultCompat(require$$1$1),require$$0__default=_interopDefaultCompat(require$$0),require$$0__default$1=_interopDefaultCompat(require$$0$1),Stream__default=_interopDefaultCompat(Stream),require$$0__default$2=_interopDefaultCompat(require$$0$2),require$$0__default$3=_interopDefaultCompat(require$$0$3),require$$7__default=_interopDefaultCompat(require$$7),require$$8__default=_interopDefaultCompat(require$$8),require$$0__default$4=_interopDefaultCompat(require$$0$4),require$$5__default=_interopDefaultCompat(require$$5),zlib__default=_interopDefaultCompat(zlib),require$$5__default$1=_interopDefaultCompat(require$$5$1),require$$8__default$1=_interopDefaultCompat(require$$8$1),require$$1__default=_interopDefaultCompat(require$$1),require$$5__default$2=_interopDefaultCompat(require$$5$2),require$$1__default$2=_interopDefaultCompat(require$$1$2),require$$1__default$3=_interopDefaultCompat(require$$1$3),require$$5__default$3=_interopDefaultCompat(require$$5$3),require$$0__default$6=_interopDefaultCompat(require$$0$6),require$$0__default$5=_interopDefaultCompat(require$$0$5),require$$1__default$4=_interopDefaultCompat(require$$1$4),require$$1__default$7=_interopDefaultCompat(require$$1$7),require$$1__default$5=_interopDefaultCompat(require$$1$5),require$$1__default$6=_interopDefaultCompat(require$$1$6),require$$0__default$7=_interopDefaultCompat(require$$0$7),require$$3__default=_interopDefaultCompat(require$$3),require$$5__default$4=_interopDefaultCompat(require$$5$4),require$$2__default=_interopDefaultCompat(require$$2);var undici={},symbols$4,hasRequiredSymbols$4;function requireSymbols$4(){return hasRequiredSymbols$4||(hasRequiredSymbols$4=1,symbols$4={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kCoLine truncated
`)||G.includes("\r")||G.includes("\0"))===!1}e(S,"isValidHeaderValue");function W(G,j){const{headersList:T}=j,X=(T.get("referrer-policy",!0)??"").split(",");let K="";if(X.length>0)for(let _=X.length;_!==0;_--){const gA=X[_-1].trim();if(E.has(gA)){K=gA;break}}K!==""&&(G.referrerPolicy=K)}e(W,"setRequestReferrerPolicyOnRedirect");function q(){return"allowed"}e(q,"crossOriginResourcePolicyCheck");function O(){return"success"}e(O,"corsCheck");function P(){return"success"}e(P,"TAOCheck");function Z(G){let j=null;j=G.mode,G.headersList.set("sec-fetch-mode",j,!0)}e(Z,"appendFetchMetadata");function cA(G){let j=G.origin;if(!(j==="client"||j===void 0)){if(G.responseTainting==="cors"||G.mode==="websocket")G.headersList.append("origin",j,!0);else if(G.method!=="GET"&&G.method!=="HEAD"){switch(G.referrerPolicy){case"no-referrer":j=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":G.origin&&wA(G.origin)&&!wA(k(G))&&(j=null);break;case"same-origin":dA(G,k(G))||(j=null);break}G.headersList.append("origin",j,!0)}}}e(cA,"appendRequestOriginHeader");function EA(G,j){return G}e(EA,"coarsenTime");function fA(G,j,T){return!G?.startTime||G.startTime<j?{domainLookupStartTime:j,domainLookupEndTime:j,connectionStartTime:j,connectionEndTime:j,secureConnectionStartTime:j,ALPNNegotiatedProtocol:G?.ALPNNegotiatedProtocol}:{domainLookupStartTime:EA(G.domainLookupStartTime),domainLookupEndTime:EA(G.domainLookupEndTime),connectionStartTime:EA(G.connectionStartTime),connectionEndTime:EA(G.connectionEndTime),secureConnectionStartTime:EA(G.secureConnectionStartTime),ALPNNegotiatedProtocol:G.ALPNNegotiatedProtocol}}e(fA,"clampAndCoarsenConnectionTimingInfo");function uA(G){return EA(n.now())}e(uA,"coarsenedSharedCurrentTime");function pA(G){return{startTime:G.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:G.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}e(pA,"createOpaqueTimingInfo");function RA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}e(RA,"makePolicyContainer");function DA(G){return{referrerPolicy:G.referrerPolicy}}e(DA,"clonePolicyContainer");function TA(G){const j=G.referrerPolicy;d(j);let T=null;if(G.referrer==="client"){const tA=B();if(!tA||tA.origin==="null")return"no-referrer";T=new URL(tA)}else G.referrer instanceof URL&&(T=G.referrer);let X=UA(T);const K=UA(T,!0);X.toString().length>4096&&(X=K);const _=dA(G,X),gA=QA(X)&&!QA(G.url);switch(j){case"origin":return K??UA(T,!0);case"unsafe-url":return X;case"same-origin":return _?K:"no-referrer";case"origin-when-cross-origin":return _?X:K;case"strict-origin-when-cross-origin":{const tA=k(G);return dA(X,tA)?X:QA(X)&&!QA(tA)?"no-referrer":K}case"strict-origin":case"no-referrer-when-downgrade":default:return gA?"no-referrer":K}}e(TA,"determineRequestsReferrer");function UA(G,j){return d(G instanceof URL),G=new URL(G),G.protocol==="file:"||G.protocol==="about:"||G.protocol==="blank:"?"no-referrer":(G.username="",G.password="",G.hash="",j&&(G.pathname="",G.search=""),G)}e(UA,"stripURLForReferrer");function QA(G){if(!(G instanceof URL))return!1;if(G.href==="about:blank"||G.href==="about:srcdoc"||G.protocol==="data:"||G.protocol==="file:")return!0;return j(G.origin);function j(T){if(T==null||T==="null")return!1;const X=new URL(T);return!!(X.protocol==="https:"||X.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(X.hostname)||X.hostname==="localhost"||X.hostname.includes("localhost.")||X.hostname.endsWith(".localhost"))}}e(QA,"isURLPotentiallyTrustworthy");function eA(G,j){if(J===void 0)return!0;const T=YA(j);if(T==="no metadata"||T.length===0)return!0;const X=nA(T),K=$(T,X);for(const _ of K){const gA=_.algo,tA=_.hash;let hA=J.createHash(gA).update(G).digest("base64");if(hA[hA.length-1]==="="&&(hA[hA.length-2]==="="?hA=hA.slice(0,-2):hA=hA.slice(0,-1)),sA(hA,tA))return!0}return!1}e(eA,"bytesMatch");const lA=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function YA(G){const j=[];let T=!0;for(const X of G.split(" ")){T=!1;const K=lA.exec(X);if(K===null||K.groups===void 0||K.groups.algo===void 0)continue;const _=K.groups.algo.toLowerCase();Y.includes(_)&&j.push(K.groups)}return T===!0?"no metadata":j}e(YA,"parseMetadata");function nA(G){let j=G[0].algo;if(j[3]==="5")return j;for(let T=1;T<G.length;++T){const X=G[T];if(X.algo[3]==="5"){j="sha512";break}else{if(j[3]==="3")continue;X.algo[3]==="3"&&(j="sha384")}}return j}e(nA,"getStrongestMetadata");function $(G,j){if(G.length===1)return G;let T=0;for(let X=0;X<G.length;++X)G[X].algo===j&&(G[T++]=G[X]);return G.length=T,G}e($,"filterMetadataListByAlgorithm");function sA(G,j){if(G.length!==j.length)return!1;for(let T=0;T<G.length;++T)if(G[T]!==j[T]){if(G[T]==="+"&&j[T]==="-"||G[T]==="/"&&j[T]==="_")continue;return!1}return!0}e(sA,"compareBase6 Line truncated
`);function g(h){for(let I=0;I<h.length;++I)if(h.charCodeAt(I)&-128)return!1;return!0}e(g,"isAsciiString");function d(h){const I=h.length;if(I<27||I>70)return!1;for(let k=0;k<I;++k){const i=h.charCodeAt(k);if(!(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===39||i===45||i===95))return!1}return!0}e(d,"validateBoundary");function N(h,I){l(I!=="failure"&&I.essence==="multipart/form-data");const k=I.parameters.get("boundary");if(k===void 0)return"failure";const i=Buffer.from(`--${k}`,"utf8"),F=[],m={position:0};for(;h[m.position]===13&&h[m.position+1]===10;)m.position+=2;let D=h.length;for(;h[D-1]===10&&h[D-2]===13;)D-=2;for(D!==h.length&&(h=h.subarray(0,D));;){if(h.subarray(m.position,m.position+i.length).equals(i))m.position+=i.length;else return"failure";if(m.position===h.length-2&&H(h,o,m)||m.position===h.length-4&&H(h,a,m))return F;if(h[m.position]!==13||h[m.position+1]!==10)return"failure";m.position+=2;const S=M(h,m);if(S==="failure")return"failure";let{name:W,filename:q,contentType:O,encoding:P}=S;m.position+=2;let Z;{const EA=h.indexOf(i.subarray(2),m.position);if(EA===-1)return"failure";Z=h.subarray(m.position,EA-4),m.position+=Z.length,P==="base64"&&(Z=Buffer.from(Z.toString(),"base64"))}if(h[m.position]!==13||h[m.position+1]!==10)return"failure";m.position+=2;let cA;q!==null?(O??="text/plain",g(O)||(O=""),cA=new u([Z],q,{type:O})):cA=c(Buffer.from(Z)),l(A(W)),l(typeof cA=="string"&&A(cA)||B(cA)),F.push(f(W,cA,q))}}e(N,"multipartFormDataParser");function M(h,I){let k=null,i=null,F=null,m=null;for(;;){if(h[I.position]===13&&h[I.position+1]===10)return k===null?"failure":{name:k,filename:i,contentType:F,encoding:m};let D=J(S=>S!==10&&S!==13&&S!==58,h,I);if(D=V(D,!0,!0,S=>S===9||S===32),!E.test(D.toString())||h[I.position]!==58)return"failure";switch(I.position++,J(S=>S===32||S===9,h,I),p(D)){case"content-disposition":{if(k=i=null,!H(h,n,I)||(I.position+=17,k=Y(h,I),k===null))return"failure";if(H(h,r,I)){let S=I.position+r.length;if(h[S]===42&&(I.position+=1,S+=1),h[S]!==61||h[S+1]!==34||(I.position+=12,i=Y(h,I),i===null))return"failure"}break}case"content-type":{let S=J(W=>W!==10&&W!==13,h,I);S=V(S,!1,!0,W=>W===9||W===32),F=t(S);break}case"content-transfer-encoding":{let S=J(W=>W!==10&&W!==13,h,I);S=V(S,!1,!0,W=>W===9||W===32),m=t(S);break}default:J(S=>S!==10&&S!==13,h,I)}if(h[I.position]!==13&&h[I.position+1]!==10)return"failure";I.position+=2}}e(M,"parseMultipartFormDataHeaders");function Y(h,I){l(h[I.position-1]===34);let k=J(i=>i!==10&&i!==13&&i!==34,h,I);return h[I.position]!==34?null:(I.position++,k=new TextDecoder().decode(k).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),k)}e(Y,"parseMultipartFormDataName");function J(h,I,k){let i=k.position;for(;i<I.length&&h(I[i]);)++i;return I.subarray(k.position,k.position=i)}e(J,"collectASequenceOfBytes");function V(h,I,k,i){let F=0,m=h.length-1;if(I)for(;F<h.length&&i(h[F]);)F++;for(;m>0&&i(h[m]);)m--;return F===0&&m===h.length-1?h:h.subarray(F,m+1)}e(V,"removeChars");function H(h,I,k){if(h.length<I.length)return!1;for(let i=0;i<I.length;i++)if(I[i]!==h[k.position+i])return!1;return!0}return e(H,"bufferStartsWith"),formdataParser={multipartFormDataParser:N,validateBoundary:d},formdataParser}e(requireFormdataParser,"requireFormdataParser");var body,hasRequiredBody;function requireBody(){if(hasRequiredBody)return body;hasRequiredBody=1;const A=requireUtil$7(),{ReadableStreamFrom:p,isBlobLike:c,isReadableStreamLike:E,readableStreamClose:t,createDeferredPromise:B,fullyReadBody:f,extractMimeType:l,utf8DecodeBytes:Q}=requireUtil$6(),{FormData:u}=requireFormdata(),{kState:n}=requireSymbols$3(),{webidl:r}=requireWebidl(),{Blob:o}=require$$0__default$2,a=require$$0__default,{isErrored:g,isDisturbed:d}=Stream__default,{isArrayBuffer:N}=require$$8__default$1,{serializeAMimeType:M}=requireDataUrl(),{multipartFormDataParser:Y}=requireFormdataParser();let J;try{const Z=__nccwpck_require__(7598);J=e(cA=>Z.randomInt(0,cA),"random")}catch{J=e(Z=>Math.floor(Math.random(Z)),"random")}const V=new TextEncoder;function H(){}e(H,"noop");const h=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let I;h&&(I=new FinalizationRegistry(Z=>{const cA=Z.deref();cA&&!cA.locked&&!d(cA)&&!g(cA)&&cA.cancel("Response object has been garbage collected").catch(H)}));function k(Z,cA=!1){let EA=null;Z instanceof ReadableStream?EA=Z:c(Z)?EA=Z.stream():EA=new ReadableStream({async pull(TA){const UA=typeof uA=="string"?V.encode(uA):uA;UA.byteLength&&TA.enqueue(UA),queueMicrotask(()=>t(TA))},start(){},type:"bytes"}),a(E(EA));let fA=null,uA=null,pA=null,RA=null;if(typeof Z=="string")uA=Z,RA="text/plain;charset=UTF-8";else if(Z instanceof URLSearchParams)uA=Z.toString(),RA="application/x-www-form-urlencoded;charset=UTF-8";else if(N(Z))uA=new Uint8Array(Z.slice());else if(ArrayBuffer.isView(Z))uA=new Uint8Array(Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength));else if(A.isFormDataLike(Z)){const TA=`----formdata-undici-0${`${J(1e11)}`.padStart(11,"0")}`,UA=`--${TA}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */const QA=e(sA=>sA.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),eA=e(sA=>sA.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),lA=[],YA=new Uint8Array([13,10]);pA=0;let nA=!1;for(const[sA,BA]of Z)if(typeof BA=="string"){const dA=V.encode(UA+`; name="${QA(eA(sA))}"\r
var Ye=Object.defineProperty;var Re=A=>{throw TypeError(A)};var ze=(A,k,c)=>k in A?Ye(A,k,{enumerable:!0,configurable:!0,writable:!0,value:c}):A[k]=c;var e=(A,k)=>Ye(A,"name",{value:k,configurable:!0});var $A=(A,k,c)=>ze(A,typeof k!="symbol"?k+"":k,c),ke=(A,k,c)=>k.has(A)||Re("Cannot "+c),Ge=(A,k)=>Object(k)!==k?Re('Cannot use the "in" operator on this value'):A.has(k),Z=(A,k,c)=>(ke(A,k,"read from private field"),c?c.call(A):k.get(A)),SA=(A,k,c)=>k.has(A)?Re("Cannot add the same private member more than once"):k instanceof WeakSet?k.add(A):k.set(A,c),mA=(A,k,c,B)=>(ke(A,k,"write to private field"),B?B.call(A,c):k.set(A,c),c),ee=(A,k,c)=>(ke(A,k,"access private method"),c);var fe,de;const http=__nccwpck_require__(7067),https=__nccwpck_require__(4708),require$$1$1=__nccwpck_require__(3136),require$$0$1=__nccwpck_require__(4589),require$$0$2=__nccwpck_require__(7030),Stream=__nccwpck_require__(7075),require$$0=__nccwpck_require__(4573),require$$0$3=__nccwpck_require__(7975),require$$7=__nccwpck_require__(1792),require$$8=__nccwpck_require__(8474),require$$0$4=__nccwpck_require__(3053),_commonjsHelpers=__nccwpck_require__(3465),require$$5=__nccwpck_require__(1692),zlib=__nccwpck_require__(8522),require$$5$1=__nccwpck_require__(643),require$$8$1=__nccwpck_require__(3429),require$$1=__nccwpck_require__(5919),require$$5$2=__nccwpck_require__(6698),require$$1$2=__nccwpck_require__(7540),require$$1$3=__nccwpck_require__(610),require$$5$3=__nccwpck_require__(3193),require$$0$6=__nccwpck_require__(9278),require$$0$5=__nccwpck_require__(8611),require$$1$4=__nccwpck_require__(5692),require$$1$7=__nccwpck_require__(4756),require$$1$5=__nccwpck_require__(2018),require$$1$6=__nccwpck_require__(9023),require$$0$7=__nccwpck_require__(857),require$$3=__nccwpck_require__(4434),require$$5$4=__nccwpck_require__(7016),require$$2=__nccwpck_require__(2613),nodeFetchNative=__nccwpck_require__(2174);function _interopDefaultCompat(A){return A&&typeof A=="object"&&"default"in A?A.default:A}e(_interopDefaultCompat,"_interopDefaultCompat");function _interopNamespaceCompat(A){if(A&&typeof A=="object"&&"default"in A)return A;const k=Object.create(null);if(A)for(const c in A)k[c]=A[c];return k.default=A,k}e(_interopNamespaceCompat,"_interopNamespaceCompat");const http__default=_interopDefaultCompat(http),http__namespace=_interopNamespaceCompat(http),https__namespace=_interopNamespaceCompat(https),require$$1__default$1=_interopDefaultCompat(require$$1$1),require$$0__default$1=_interopDefaultCompat(require$$0$1),require$$0__default$2=_interopDefaultCompat(require$$0$2),Stream__default=_interopDefaultCompat(Stream),require$$0__default=_interopDefaultCompat(require$$0),require$$0__default$3=_interopDefaultCompat(require$$0$3),require$$7__default=_interopDefaultCompat(require$$7),require$$8__default=_interopDefaultCompat(require$$8),require$$0__default$4=_interopDefaultCompat(require$$0$4),require$$5__default=_interopDefaultCompat(require$$5),zlib__default=_interopDefaultCompat(zlib),require$$5__default$1=_interopDefaultCompat(require$$5$1),require$$8__default$1=_interopDefaultCompat(require$$8$1),require$$1__default=_interopDefaultCompat(require$$1),require$$5__default$2=_interopDefaultCompat(require$$5$2),require$$1__default$2=_interopDefaultCompat(require$$1$2),require$$1__default$3=_interopDefaultCompat(require$$1$3),require$$5__default$3=_interopDefaultCompat(require$$5$3),require$$0__default$6=_interopDefaultCompat(require$$0$6),require$$0__default$5=_interopDefaultCompat(require$$0$5),require$$1__default$4=_interopDefaultCompat(require$$1$4),require$$1__default$7=_interopDefaultCompat(require$$1$7),require$$1__default$5=_interopDefaultCompat(require$$1$5),require$$1__default$6=_interopDefaultCompat(require$$1$6),require$$0__default$7=_interopDefaultCompat(require$$0$7),require$$3__default=_interopDefaultCompat(require$$3),require$$5__default$4=_interopDefaultCompat(require$$5$4),require$$2__default=_interopDefaultCompat(require$$2);var undici={},symbols$4,hasRequiredSymbols$4;function requireSymbols$4(){return hasRequiredSymbols$4||(hasRequiredSymbols$4=1,symbols$4={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy")Line truncated
`)||v.includes("\r")||v.includes("\0"))===!1}e(w,"isValidHeaderValue");function S(v,X){const{headersList:j}=X,tA=(j.get("referrer-policy",!0)??"").split(",");let rA="";if(tA.length>0)for(let FA=tA.length;FA!==0;FA--){const TA=tA[FA-1].trim();if(B.has(TA)){rA=TA;break}}rA!==""&&(v.referrerPolicy=rA)}e(S,"setRequestReferrerPolicyOnRedirect");function x(){return"allowed"}e(x,"crossOriginResourcePolicyCheck");function z(){return"success"}e(z,"corsCheck");function $(){return"success"}e($,"TAOCheck");function K(v){let X=null;X=v.mode,v.headersList.set("sec-fetch-mode",X,!0)}e(K,"appendFetchMetadata");function nA(v){let X=v.origin;if(!(X==="client"||X===void 0)){if(v.responseTainting==="cors"||v.mode==="websocket")v.headersList.append("origin",X,!0);else if(v.method!=="GET"&&v.method!=="HEAD"){switch(v.referrerPolicy){case"no-referrer":X=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":v.origin&&yA(v.origin)&&!yA(Y(v))&&(X=null);break;case"same-origin":wA(v,Y(v))||(X=null);break}v.headersList.append("origin",X,!0)}}}e(nA,"appendRequestOriginHeader");function iA(v,X){return v}e(iA,"coarsenTime");function uA(v,X,j){return!v?.startTime||v.startTime<X?{domainLookupStartTime:X,domainLookupEndTime:X,connectionStartTime:X,connectionEndTime:X,secureConnectionStartTime:X,ALPNNegotiatedProtocol:v?.ALPNNegotiatedProtocol}:{domainLookupStartTime:iA(v.domainLookupStartTime),domainLookupEndTime:iA(v.domainLookupEndTime),connectionStartTime:iA(v.connectionStartTime),connectionEndTime:iA(v.connectionEndTime),secureConnectionStartTime:iA(v.secureConnectionStartTime),ALPNNegotiatedProtocol:v.ALPNNegotiatedProtocol}}e(uA,"clampAndCoarsenConnectionTimingInfo");function RA(v){return iA(U.now())}e(RA,"coarsenedSharedCurrentTime");function IA(v){return{startTime:v.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:v.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}e(IA,"createOpaqueTimingInfo");function CA(){return{referrerPolicy:"strict-origin-when-cross-origin"}}e(CA,"makePolicyContainer");function pA(v){return{referrerPolicy:v.referrerPolicy}}e(pA,"clonePolicyContainer");function fA(v){const X=v.referrerPolicy;I(X);let j=null;if(v.referrer==="client"){const VA=y();if(!VA||VA.origin==="null")return"no-referrer";j=new URL(VA)}else v.referrer instanceof URL&&(j=v.referrer);let tA=kA(j);const rA=kA(j,!0);tA.toString().length>4096&&(tA=rA);const FA=wA(v,tA),TA=bA(tA)&&!bA(v.url);switch(X){case"origin":return rA??kA(j,!0);case"unsafe-url":return tA;case"same-origin":return FA?rA:"no-referrer";case"origin-when-cross-origin":return FA?tA:rA;case"strict-origin-when-cross-origin":{const VA=Y(v);return wA(tA,VA)?tA:bA(tA)&&!bA(VA)?"no-referrer":rA}case"strict-origin":case"no-referrer-when-downgrade":default:return TA?"no-referrer":rA}}e(fA,"determineRequestsReferrer");function kA(v,X){return I(v instanceof URL),v=new URL(v),v.protocol==="file:"||v.protocol==="about:"||v.protocol==="blank:"?"no-referrer":(v.username="",v.password="",v.hash="",X&&(v.pathname="",v.search=""),v)}e(kA,"stripURLForReferrer");function bA(v){if(!(v instanceof URL))return!1;if(v.href==="about:blank"||v.href==="about:srcdoc"||v.protocol==="data:"||v.protocol==="file:")return!0;return X(v.origin);function X(j){if(j==null||j==="null")return!1;const tA=new URL(j);return!!(tA.protocol==="https:"||tA.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(tA.hostname)||tA.hostname==="localhost"||tA.hostname.includes("localhost.")||tA.hostname.endsWith(".localhost"))}}e(bA,"isURLPotentiallyTrustworthy");function gA(v,X){if(J===void 0)return!0;const j=oA(X);if(j==="no metadata"||j.length===0)return!0;const tA=aA(j),rA=EA(j,tA);for(const FA of rA){const TA=FA.algo,VA=FA.hash;let YA=J.createHash(TA).update(v).digest("base64");if(YA[YA.length-1]==="="&&(YA[YA.length-2]==="="?YA=YA.slice(0,-2):YA=YA.slice(0,-1)),sA(YA,VA))return!0}return!1}e(gA,"bytesMatch");const DA=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function oA(v){const X=[];let j=!0;for(const tA of v.split(" ")){j=!1;const rA=DA.exec(tA);if(rA===null||rA.groups===void 0||rA.groups.algo===void 0)continue;const FA=rA.groups.algo.toLowerCase();G.includes(FA)&&X.push(rA.groups)}return j===!0?"no metadata":X}e(oA,"parseMetadata");function aA(v){let X=v[0].algo;if(X[3]==="5")return X;for(let j=1;j<v.length;++j){const tA=v[j];if(tA.algo[3]==="5"){X="sha512";break}else{if(X[3]==="3")continue;tA.algo[3]==="3"&&(X="sha384")}}return X}e(aA,"getStrongestMetadata");function EA(v,X){if(v.length===1)return v;let j=0;for(let tA=0;tA<v.length;++tA)v[tA].algo===X&&(v[j++]=v[tA]);return v.length=j,v}e(EA,"filterMetadataListByAlgorithm");function sA(v,X){if(v.length!==X.length)return!1;for(let j=0;j<v.length;++j)if(v[j]!==X[j]){if(v[j]==="+"&&X[j]==="-"||v Line truncated
`);function l(q){for(let M=0;M<q.length;++M)if((q.charCodeAt(M)&-128)!==0)return!1;return!0}e(l,"isAsciiString");function I(q){const M=q.length;if(M<27||M>70)return!1;for(let Y=0;Y<M;++Y){const m=q.charCodeAt(Y);if(!(m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||m===39||m===45||m===95))return!1}return!0}e(I,"validateBoundary");function p(q,M){F(M!=="failure"&&M.essence==="multipart/form-data");const Y=M.parameters.get("boundary");if(Y===void 0)return"failure";const m=Buffer.from(`--${Y}`,"utf8"),f=[],n={position:0};for(;q[n.position]===13&&q[n.position+1]===10;)n.position+=2;let C=q.length;for(;q[C-1]===10&&q[C-2]===13;)C-=2;for(C!==q.length&&(q=q.subarray(0,C));;){if(q.subarray(n.position,n.position+m.length).equals(m))n.position+=m.length;else return"failure";if(n.position===q.length-2&&_(q,o,n)||n.position===q.length-4&&_(q,N,n))return f;if(q[n.position]!==13||q[n.position+1]!==10)return"failure";n.position+=2;const w=b(q,n);if(w==="failure")return"failure";let{name:S,filename:x,contentType:z,encoding:$}=w;n.position+=2;let K;{const iA=q.indexOf(m.subarray(2),n.position);if(iA===-1)return"failure";K=q.subarray(n.position,iA-4),n.position+=K.length,$==="base64"&&(K=Buffer.from(K.toString(),"base64"))}if(q[n.position]!==13||q[n.position+1]!==10)return"failure";n.position+=2;let nA;x!==null?(z??(z="text/plain"),l(z)||(z=""),nA=new D([K],x,{type:z})):nA=c(Buffer.from(K)),F(A(S)),F(typeof nA=="string"&&A(nA)||y(nA)),f.push(R(S,nA,x))}}e(p,"multipartFormDataParser");function b(q,M){let Y=null,m=null,f=null,n=null;for(;;){if(q[M.position]===13&&q[M.position+1]===10)return Y===null?"failure":{name:Y,filename:m,contentType:f,encoding:n};let C=J(w=>w!==10&&w!==13&&w!==58,q,M);if(C=V(C,!0,!0,w=>w===9||w===32),!B.test(C.toString())||q[M.position]!==58)return"failure";switch(M.position++,J(w=>w===32||w===9,q,M),k(C)){case"content-disposition":{if(Y=m=null,!_(q,U,M)||(M.position+=17,Y=G(q,M),Y===null))return"failure";if(_(q,r,M)){let w=M.position+r.length;if(q[w]===42&&(M.position+=1,w+=1),q[w]!==61||q[w+1]!==34||(M.position+=12,m=G(q,M),m===null))return"failure"}break}case"content-type":{let w=J(S=>S!==10&&S!==13,q,M);w=V(w,!1,!0,S=>S===9||S===32),f=t(w);break}case"content-transfer-encoding":{let w=J(S=>S!==10&&S!==13,q,M);w=V(w,!1,!0,S=>S===9||S===32),n=t(w);break}default:J(w=>w!==10&&w!==13,q,M)}if(q[M.position]!==13&&q[M.position+1]!==10)return"failure";M.position+=2}}e(b,"parseMultipartFormDataHeaders");function G(q,M){F(q[M.position-1]===34);let Y=J(m=>m!==10&&m!==13&&m!==34,q,M);return q[M.position]!==34?null:(M.position++,Y=new TextDecoder().decode(Y).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),Y)}e(G,"parseMultipartFormDataName");function J(q,M,Y){let m=Y.position;for(;m<M.length&&q(M[m]);)++m;return M.subarray(Y.position,Y.position=m)}e(J,"collectASequenceOfBytes");function V(q,M,Y,m){let f=0,n=q.length-1;if(M)for(;f<q.length&&m(q[f]);)f++;for(;n>0&&m(q[n]);)n--;return f===0&&n===q.length-1?q:q.subarray(f,n+1)}e(V,"removeChars");function _(q,M,Y){if(q.length<M.length)return!1;for(let m=0;m<M.length;m++)if(M[m]!==q[Y.position+m])return!1;return!0}return e(_,"bufferStartsWith"),formdataParser={multipartFormDataParser:p,validateBoundary:I},formdataParser}e(requireFormdataParser,"requireFormdataParser");var body,hasRequiredBody;function requireBody(){if(hasRequiredBody)return body;hasRequiredBody=1;const A=requireUtil$7(),{ReadableStreamFrom:k,isBlobLike:c,isReadableStreamLike:B,readableStreamClose:t,createDeferredPromise:y,fullyReadBody:R,extractMimeType:F,utf8DecodeBytes:Q}=requireUtil$6(),{FormData:D}=requireFormdata(),{kState:U}=requireSymbols$3(),{webidl:r}=requireWebidl(),{Blob:o}=require$$0__default,N=require$$0__default$1,{isErrored:l,isDisturbed:I}=Stream__default,{isArrayBuffer:p}=require$$8__default$1,{serializeAMimeType:b}=requireDataUrl(),{multipartFormDataParser:G}=requireFormdataParser();let J;try{const K=__nccwpck_require__(7598);J=e(nA=>K.randomInt(0,nA),"random")}catch{J=e(K=>Math.floor(Math.random(K)),"random")}const V=new TextEncoder;function _(){}e(_,"noop");const q=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let M;q&&(M=new FinalizationRegistry(K=>{const nA=K.deref();nA&&!nA.locked&&!I(nA)&&!l(nA)&&nA.cancel("Response object has been garbage collected").catch(_)}));function Y(K,nA=!1){let iA=null;K instanceof ReadableStream?iA=K:c(K)?iA=K.stream():iA=new ReadableStream({async pull(fA){const kA=typeof RA=="string"?V.encode(RA):RA;kA.byteLength&&fA.enqueue(kA),queueMicrotask(()=>t(fA))},start(){},type:"bytes"}),N(B(iA));let uA=null,RA=null,IA=null,CA=null;if(typeof K=="string")RA=K,CA="text/plain;charset=UTF-8";else if(K instanceof URLSearchParams)RA=K.toString(),CA="application/x-www-form-urlencoded;charset=UTF-8";else if(p(K))RA=new Uint8Array(K.slice());else if(ArrayBuffer.isView(K))RA=new Uint8Array(K.buffer.slice(K.byteOffset,K.byteOffset+K.byteLength));else if(A.isFormDataLike(K)){const fA=`----formdata-undici-0${`${J(1e11)}`.padStart(11,"0")}`,kA=`--${fA}\r
Content-Disposition: form-data`;/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */const bA=e(sA=>sA.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),gA=e(sA=>sA.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),DA=[],oA=new Uint8Array([13,10]);IA=0;let aA=!1;for(const[sA,NA]of K)if(typeof NA=="string"){const wA=V.encode(kA+`; name="${bA(gA(sA))}"\r
\r
${eA(BA)}\r
`);lA.push(dA),pA+=dA.byteLength}else{const dA=V.encode(`${UA}; name="${QA(eA(sA))}"`+(BA.name?`; filename="${QA(BA.name)}"`:"")+`\r
Content-Type: ${BA.type||"application/octet-stream"}\r
${gA(NA)}\r
`);DA.push(wA),IA+=wA.byteLength}else{const wA=V.encode(`${kA}; name="${bA(gA(sA))}"`+(NA.name?`; filename="${bA(NA.name)}"`:"")+`\r
Content-Type: ${NA.type||"application/octet-stream"}\r
\r
`);lA.push(dA,BA,YA),typeof BA.size=="number"?pA+=dA.byteLength+BA.size+YA.byteLength:nA=!0}const $=V.encode(`--${TA}--`);lA.push($),pA+=$.byteLength,nA&&(pA=null),uA=Z,fA=e(async function*(){for(const sA of lA)sA.stream?yield*sA.stream():yield sA},"action"),RA=`multipart/form-data; boundary=${TA}`}else if(c(Z))uA=Z,pA=Z.size,Z.type&&(RA=Z.type);else if(typeof Z[Symbol.asyncIterator]=="function"){if(cA)throw new TypeError("keepalive");if(A.isDisturbed(Z)||Z.locked)throw new TypeError("Response body object should not be disturbed or locked");EA=Z instanceof ReadableStream?Z:p(Z)}if((typeof uA=="string"||A.isBuffer(uA))&&(pA=Buffer.byteLength(uA)),fA!=null){let TA;EA=new ReadableStream({async start(){TA=fA(Z)[Symbol.asyncIterator]()},async pull(UA){const{value:QA,done:eA}=await TA.next();if(eA)queueMicrotask(()=>{UA.close(),UA.byobRequest?.respond(0)});else if(!g(EA)){const lA=new Uint8Array(QA);lA.byteLength&&UA.enqueue(lA)}return UA.desiredSize>0},async cancel(UA){await TA.return()},type:"bytes"})}return[{stream:EA,source:uA,length:pA},RA]}e(k,"extractBody");function i(Z,cA=!1){return Z instanceof ReadableStream&&(a(!A.isDisturbed(Z),"The body has already been consumed."),a(!Z.locked,"The stream is locked.")),k(Z,cA)}e(i,"safelyExtractBody");function F(Z,cA){const[EA,fA]=cA.stream.tee();return h&&I.register(Z,new WeakRef(EA)),cA.stream=EA,{stream:fA,length:cA.length,source:cA.source}}e(F,"cloneBody");function m(Z){if(Z.aborted)throw new DOMException("The operation was aborted.","AbortError")}e(m,"throwIfAborted");function D(Z){return{blob(){return W(this,EA=>{let fA=P(this);return fA===null?fA="":fA&&(fA=M(fA)),new o([EA],{type:fA})},Z)},arrayBuffer(){return W(this,EA=>new Uint8Array(EA).buffer,Z)},text(){return W(this,Q,Z)},json(){return W(this,O,Z)},formData(){return W(this,EA=>{const fA=P(this);if(fA!==null)switch(fA.essence){case"multipart/form-data":{const uA=Y(EA,fA);if(uA==="failure")throw new TypeError("Failed to parse body as FormData.");const pA=new u;return pA[n]=uA,pA}case"application/x-www-form-urlencoded":{const uA=new URLSearchParams(EA.toString()),pA=new u;for(const[RA,DA]of uA)pA.append(RA,DA);return pA}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},Z)},bytes(){return W(this,EA=>new Uint8Array(EA),Z)}}}e(D,"bodyMixinMethods");function S(Z){Object.assign(Z.prototype,D(Z))}e(S,"mixinBody");async function W(Z,cA,EA){if(r.brandCheck(Z,EA),q(Z))throw new TypeError("Body is unusable: Body has already been read");m(Z[n]);const fA=B(),uA=e(RA=>fA.reject(RA),"errorSteps"),pA=e(RA=>{try{fA.resolve(cA(RA))}catch(DA){uA(DA)}},"successSteps");return Z[n].body==null?(pA(Buffer.allocUnsafe(0)),fA.promise):(await f(Z[n].body,pA,uA),fA.promise)}e(W,"consumeBody");function q(Z){const cA=Z[n].body;return cA!=null&&(cA.stream.locked||A.isDisturbed(cA.stream))}e(q,"bodyUnusable");function O(Z){return JSON.parse(Q(Z))}e(O,"parseJSONFromBytes");function P(Z){const cA=Z[n].headersList,EA=l(cA);return EA==="failure"?null:EA}return e(P,"bodyMimeType"),body={extractBody:k,safelyExtractBody:i,cloneBody:F,mixinBody:S,streamRegistry:I,hasFinalizationRegistry:h,bodyUnusable:q},body}e(requireBody,"requireBody");var clientH1,hasRequiredClientH1;function requireClientH1(){if(hasRequiredClientH1)return clientH1;hasRequiredClientH1=1;const A=require$$0__default,p=requireUtil$7(),{channels:c}=requireDiagnostics(),E=requireTimers(),{RequestContentLengthMismatchError:t,ResponseContentLengthMismatchError:B,RequestAbortedError:f,HeadersTimeoutError:l,HeadersOverflowError:Q,SocketError:u,InformationalError:n,BodyTimeoutError:r,HTTPParserError:o,ResponseExceededMaxSizeError:a}=requireErrors(),{kUrl:g,kReset:d,kClient:N,kParser:M,kBlocking:Y,kRunning:J,kPending:V,kSize:H,kWriting:h,kQueue:I,kNoRef:k,kKeepAliveDefaultTimeout:i,kHostHeader:F,kPendingIdx:m,kRunningIdx:D,kError:S,kPipelining:W,kSocket:q,kKeepAliveTimeoutValue:O,kMaxHeadersSize:P,kKeepAliveMaxTimeout:Z,kKeepAliveTimeoutThreshold:cA,kHeadersTimeout:EA,kBodyTimeout:fA,kStrictContentLength:uA,kMaxRequests:pA,kCounter:RA,kMaxResponseSize:DA,kOnError:TA,kResume:UA,kHTTPContext:QA}=requireSymbols$4(),eA=requireConstants$3(),lA=Buffer.alloc(0),YA=Buffer[Symbol.species],nA=p.addListener,$=p.removeAllListeners;let sA;async function BA(){const kA=process.env.JEST_WORKER_ID?requireLlhttpWasm():void 0;let z;try{z=await WebAssembly.compile(requireLlhttp_simdWasm())}catch{z=await WebAssembly.compile(kA||requireLlhttpWasm())}return await WebAssembly.instantiate(z,{env:{wasm_on_url:e((iA,rA,aA)=>0,"wasm_on_url"),wasm_on_status:e((iA,rA,aA)=>{A(mA.ptr===iA);const yA=rA-WA+xA.byteOffset;return mA.onStatus(new YA(xA.buffer,yA,aA))||0},"wasm_on_status"),wasm_on_message_begin:e(iA=>(A(mA.ptr===iA),mA.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:e((iA,rA,aA)=>{A(mA.ptr===iA);const yA=rA-WA+xA.byteOffset;return mA.onHeaderField(new YA(xA.buffer,yA,aA))||0},"wasm_on_header_field"),wasm_on_header_value:e((i Line truncated
`;if(typeof aA=="string"?tA+=`host: ${aA}\r
`:tA+=kA[F],yA?tA+=`connection: upgrade\r
upgrade: ${yA}\r
`:kA[W]&&!_[d]?tA+=`connection: keep-alive\r
`:tA+=`connection: close\r
`,Array.isArray(j))for(let hA=0;hA<j.length;hA+=2){const JA=j[hA+0],qA=j[hA+1];if(Array.isArray(qA))for(let VA=0;VA<qA.length;VA++)tA+=`${JA}: ${qA[VA]}\r
`;else tA+=`${JA}: ${qA}\r
`}return c.sendHeaders.hasSubscribers&&c.sendHeaders.publish({request:z,headers:tA,socket:_}),!G||K===0?MA(gA,null,kA,z,_,T,tA,X):p.isBuffer(G)?MA(gA,G,kA,z,_,T,tA,X):p.isBlobLike(G)?typeof G.stream=="function"?_A(gA,G.stream(),kA,z,_,T,tA,X):OA(gA,G,kA,z,_,T,tA,X):p.isStream(G)?FA(gA,G,kA,z,_,T,tA,X):p.isIterable(G)?_A(gA,G,kA,z,_,T,tA,X):A(!1),!0}e(wA,"writeH1");function FA(kA,z,iA,rA,aA,yA,SA,vA){A(yA!==0||iA[J]===0,"stream body cannot be pipelined");let G=!1;const j=new $A({abort:kA,socket:aA,request:rA,contentLength:yA,client:iA,expectsPayload:vA,header:SA}),T=e(function(gA){if(!G)try{!j.write(gA)&&this.pause&&this.pause()}catch(tA){p.destroy(this,tA)}},"onData"),X=e(function(){G||z.resume&&z.resume()},"onDrain"),K=e(function(){if(queueMicrotask(()=>{z.removeListener("error",_)}),!G){const gA=new f;queueMicrotask(()=>_(gA))}},"onClose"),_=e(function(gA){if(!G){if(G=!0,A(aA.destroyed||aA[h]&&iA[J]<=1),aA.off("drain",X).off("error",_),z.removeListener("data",T).removeListener("end",_).removeListener("close",K),!gA)try{j.end()}catch(tA){gA=tA}j.destroy(gA),gA&&(gA.code!=="UND_ERR_INFO"||gA.message!=="reset")?p.destroy(z,gA):p.destroy(z)}},"onFinished");z.on("data",T).on("end",_).on("error",_).on("close",K),z.resume&&z.resume(),aA.on("drain",X).on("error",_),z.errorEmitted??z.errored?setImmediate(()=>_(z.errored)):(z.endEmitted??z.readableEnded)&&setImmediate(()=>_(null)),(z.closeEmitted??z.closed)&&setImmediate(K)}e(FA,"writeStream");function MA(kA,z,iA,rA,aA,yA,SA,vA){try{z?p.isBuffer(z)&&(A(yA===z.byteLength,"buffer body must have content length"),aA.cork(),aA.write(`${SA}content-length: ${yA}\r
`);DA.push(wA,NA,oA),typeof NA.size=="number"?IA+=wA.byteLength+NA.size+oA.byteLength:aA=!0}const EA=V.encode(`--${fA}--\r
`);DA.push(EA),IA+=EA.byteLength,aA&&(IA=null),RA=K,uA=e(async function*(){for(const sA of DA)sA.stream?yield*sA.stream():yield sA},"action"),CA=`multipart/form-data; boundary=${fA}`}else if(c(K))RA=K,IA=K.size,K.type&&(CA=K.type);else if(typeof K[Symbol.asyncIterator]=="function"){if(nA)throw new TypeError("keepalive");if(A.isDisturbed(K)||K.locked)throw new TypeError("Response body object should not be disturbed or locked");iA=K instanceof ReadableStream?K:k(K)}if((typeof RA=="string"||A.isBuffer(RA))&&(IA=Buffer.byteLength(RA)),uA!=null){let fA;iA=new ReadableStream({async start(){fA=uA(K)[Symbol.asyncIterator]()},async pull(kA){const{value:bA,done:gA}=await fA.next();if(gA)queueMicrotask(()=>{kA.close(),kA.byobRequest?.respond(0)});else if(!l(iA)){const DA=new Uint8Array(bA);DA.byteLength&&kA.enqueue(DA)}return kA.desiredSize>0},async cancel(kA){await fA.return()},type:"bytes"})}return[{stream:iA,source:RA,length:IA},CA]}e(Y,"extractBody");function m(K,nA=!1){return K instanceof ReadableStream&&(N(!A.isDisturbed(K),"The body has already been consumed."),N(!K.locked,"The stream is locked.")),Y(K,nA)}e(m,"safelyExtractBody");function f(K,nA){const[iA,uA]=nA.stream.tee();return q&&M.register(K,new WeakRef(iA)),nA.stream=iA,{stream:uA,length:nA.length,source:nA.source}}e(f,"cloneBody");function n(K){if(K.aborted)throw new DOMException("The operation was aborted.","AbortError")}e(n,"throwIfAborted");function C(K){return{blob(){return S(this,iA=>{let uA=$(this);return uA===null?uA="":uA&&(uA=b(uA)),new o([iA],{type:uA})},K)},arrayBuffer(){return S(this,iA=>new Uint8Array(iA).buffer,K)},text(){return S(this,Q,K)},json(){return S(this,z,K)},formData(){return S(this,iA=>{const uA=$(this);if(uA!==null)switch(uA.essence){case"multipart/form-data":{const RA=G(iA,uA);if(RA==="failure")throw new TypeError("Failed to parse body as FormData.");const IA=new D;return IA[U]=RA,IA}case"application/x-www-form-urlencoded":{const RA=new URLSearchParams(iA.toString()),IA=new D;for(const[CA,pA]of RA)IA.append(CA,pA);return IA}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},K)},bytes(){return S(this,iA=>new Uint8Array(iA),K)}}}e(C,"bodyMixinMethods");function w(K){Object.assign(K.prototype,C(K))}e(w,"mixinBody");async function S(K,nA,iA){if(r.brandCheck(K,iA),x(K))throw new TypeError("Body is unusable: Body has already been read");n(K[U]);const uA=y(),RA=e(CA=>uA.reject(CA),"errorSteps"),IA=e(CA=>{try{uA.resolve(nA(CA))}catch(pA){RA(pA)}},"successSteps");return K[U].body==null?(IA(Buffer.allocUnsafe(0)),uA.promise):(await R(K[U].body,IA,RA),uA.promise)}e(S,"consumeBody");function x(K){const nA=K[U].body;return nA!=null&&(nA.stream.locked||A.isDisturbed(nA.stream))}e(x,"bodyUnusable");function z(K){return JSON.parse(Q(K))}e(z,"parseJSONFromBytes");function $(K){const nA=K[U].headersList,iA=F(nA);return iA==="failure"?null:iA}return e($,"bodyMimeType"),body={extractBody:Y,safelyExtractBody:m,cloneBody:f,mixinBody:w,streamRegistry:M,hasFinalizationRegistry:q,bodyUnusable:x},body}e(requireBody,"requireBody");var clientH1,hasRequiredClientH1;function requireClientH1(){if(hasRequiredClientH1)return clientH1;hasRequiredClientH1=1;const A=require$$0__default$1,k=requireUtil$7(),{channels:c}=requireDiagnostics(),B=requireTimers(),{RequestContentLengthMismatchError:t,ResponseContentLengthMismatchError:y,RequestAbortedError:R,HeadersTimeoutError:F,HeadersOverflowError:Q,SocketError:D,InformationalError:U,BodyTimeoutError:r,HTTPParserError:o,ResponseExceededMaxSizeError:N}=requireErrors(),{kUrl:l,kReset:I,kClient:p,kParser:b,kBlocking:G,kRunning:J,kPending:V,kSize:_,kWriting:q,kQueue:M,kNoRef:Y,kKeepAliveDefaultTimeout:m,kHostHeader:f,kPendingIdx:n,kRunningIdx:C,kError:w,kPipelining:S,kSocket:x,kKeepAliveTimeoutValue:z,kMaxHeadersSize:$,kKeepAliveMaxTimeout:K,kKeepAliveTimeoutThreshold:nA,kHeadersTimeout:iA,kBodyTimeout:uA,kStrictContentLength:RA,kMaxRequests:IA,kCounter:CA,kMaxResponseSize:pA,kOnError:fA,kResume:kA,kHTTPContext:bA}=requireSymbols$4(),gA=requireConstants$3(),DA=Buffer.alloc(0),oA=Buffer[Symbol.species],aA=k.addListener,EA=k.removeAllListeners;let sA;async function NA(){const GA=process.env.JEST_WORKER_ID?requireLlhttpWasm():void 0;let eA;try{eA=await WebAssembly.compile(requireLlhttp_simdWasm())}catch{eA=await WebAssembly.compile(GA||requireLlhttpWasm())}return await WebAssembly.instantiate(eA,{env:{wasm_on_url:e((lA,BA,hA)=>0,"wasm_on_url"),wasm_on_status:e((lA,BA,hA)=>{A(dA.ptr===lA);const MA=BA-OA+XA.byteOffset;return dA.onStatus(new oA(XA.buffer,MA,hA))||0},"wasm_on_status"),wasm_on_message_begin:e(lA=>(A(dA.ptr===lA),dA.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:e((lA,BA,hA)=>{A(dA.ptr===lA);const MA=BA-OA+XA.byteOffset;return dA.onHeaderField(new oA(XA.buffer,MA,hA))||0},"wasm_on_header_field"),wasm_on_header_value:e((lA,BA,hA)=>{A(dA.ptr===lA);const MA=BA-OA+XA.byteOffset;return dA.onHeaderValue(new oA(XA.buffer,MA,hA))||0},"w Line truncated
`;if(typeof hA=="string"?FA+=`host: ${hA}\r
`:FA+=GA[f],MA?FA+=`connection: upgrade\r
upgrade: ${MA}\r
`:GA[S]&&!tA[I]?FA+=`connection: keep-alive\r
`:FA+=`connection: close\r
`,Array.isArray(AA))for(let TA=0;TA<AA.length;TA+=2){const VA=AA[TA+0],YA=AA[TA+1];if(Array.isArray(YA))for(let _A=0;_A<YA.length;_A++)FA+=`${VA}: ${YA[_A]}\r
`;else FA+=`${VA}: ${YA}\r
`}return c.sendHeaders.hasSubscribers&&c.sendHeaders.publish({request:eA,headers:FA,socket:tA}),!UA||j===0?JA(rA,null,GA,eA,tA,v,FA,X):k.isBuffer(UA)?JA(rA,UA,GA,eA,tA,v,FA,X):k.isBlobLike(UA)?typeof UA.stream=="function"?te(rA,UA.stream(),GA,eA,tA,v,FA,X):WA(rA,UA,GA,eA,tA,v,FA,X):k.isStream(UA)?LA(rA,UA,GA,eA,tA,v,FA,X):k.isIterable(UA)?te(rA,UA,GA,eA,tA,v,FA,X):A(!1),!0}e(yA,"writeH1");function LA(GA,eA,lA,BA,hA,MA,xA,zA){A(MA!==0||lA[J]===0,"stream body cannot be pipelined");let UA=!1;const AA=new ie({abort:GA,socket:hA,request:BA,contentLength:MA,client:lA,expectsPayload:zA,header:xA}),v=e(function(rA){if(!UA)try{!AA.write(rA)&&this.pause&&this.pause()}catch(FA){k.destroy(this,FA)}},"onData"),X=e(function(){UA||eA.resume&&eA.resume()},"onDrain"),j=e(function(){if(queueMicrotask(()=>{eA.removeListener("error",tA)}),!UA){const rA=new R;queueMicrotask(()=>tA(rA))}},"onClose"),tA=e(function(rA){if(!UA){if(UA=!0,A(hA.destroyed||hA[q]&&lA[J]<=1),hA.off("drain",X).off("error",tA),eA.removeListener("data",v).removeListener("end",tA).removeListener("close",j),!rA)try{AA.end()}catch(FA){rA=FA}AA.destroy(rA),rA&&(rA.code!=="UND_ERR_INFO"||rA.message!=="reset")?k.destroy(eA,rA):k.destroy(eA)}},"onFinished");eA.on("data",v).on("end",tA).on("error",tA).on("close",j),eA.resume&&eA.resume(),hA.on("drain",X).on("error",tA),eA.errorEmitted??eA.errored?setImmediate(()=>tA(eA.errored)):(eA.endEmitted??eA.readableEnded)&&setImmediate(()=>tA(null)),(eA.closeEmitted??eA.closed)&&setImmediate(j)}e(LA,"writeStream");function JA(GA,eA,lA,BA,hA,MA,xA,zA){try{eA?k.isBuffer(eA)&&(A(MA===eA.byteLength,"buffer body must have content length"),hA.cork(),hA.write(`${xA}content-length: ${MA}\r
\r
`,"latin1"),aA.write(z),aA.uncork(),rA.onBodySent(z),!vA&&rA.reset!==!1&&(aA[d]=!0)):yA===0?aA.write(`${SA}content-length: 0\r
`,"latin1"),hA.write(eA),hA.uncork(),BA.onBodySent(eA),!zA&&BA.reset!==!1&&(hA[I]=!0)):MA===0?hA.write(`${xA}content-length: 0\r
\r
`,"latin1"):(A(yA===null,"no body must not have content length"),aA.write(`${SA}\r
`,"latin1")),rA.onRequestSent(),iA[UA]()}catch(G){kA(G)}}e(MA,"writeBuffer");async function OA(kA,z,iA,rA,aA,yA,SA,vA){A(yA===z.size,"blob body must have content length");try{if(yA!=null&&yA!==z.size)throw new t;const G=Buffer.from(await z.arrayBuffer());aA.cork(),aA.write(`${SA}content-length: ${yA}\r
`,"latin1"):(A(MA===null,"no body must not have content length"),hA.write(`${xA}\r
`,"latin1")),BA.onRequestSent(),lA[kA]()}catch(UA){GA(UA)}}e(JA,"writeBuffer");async function WA(GA,eA,lA,BA,hA,MA,xA,zA){A(MA===eA.size,"blob body must have content length");try{if(MA!=null&&MA!==eA.size)throw new t;const UA=Buffer.from(await eA.arrayBuffer());hA.cork(),hA.write(`${xA}content-length: ${MA}\r
\r
`,"latin1"),aA.write(G),aA.uncork(),rA.onBodySent(G),rA.onRequestSent(),!vA&&rA.reset!==!1&&(aA[d]=!0),iA[UA]()}catch(G){kA(G)}}e(OA,"writeBlob");async function _A(kA,z,iA,rA,aA,yA,SA,vA){A(yA!==0||iA[J]===0,"iterator body cannot be pipelined");let G=null;function j(){if(G){const K=G;G=null,K()}}e(j,"onDrain");const T=e(()=>new Promise((K,_)=>{A(G===null),aA[S]?_(aA[S]):G=K}),"waitForDrain");aA.on("close",j).on("drain",j);const X=new $A({abort:kA,socket:aA,request:rA,contentLength:yA,client:iA,expectsPayload:vA,header:SA});try{for await(const K of z){if(aA[S])throw aA[S];X.write(K)||await T()}X.end()}catch(K){X.destroy(K)}finally{aA.off("close",j).off("drain",j)}}e(_A,"writeIterable");class $A{static{e(this,"AsyncWriter")}constructor({abort:z,socket:iA,request:rA,contentLength:aA,client:yA,expectsPayload:SA,header:vA}){this.socket=iA,this.request=rA,this.contentLength=aA,this.client=yA,this.bytesWritten=0,this.expectsPayload=SA,this.header=vA,this.abort=z,iA[h]=!0}write(z){const{socket:iA,request:rA,contentLength:aA,client:yA,bytesWritten:SA,expectsPayload:vA,header:G}=this;if(iA[S])throw iA[S];if(iA.destroyed)return!1;const j=Buffer.byteLength(z);if(!j)return!0;if(aA!==null&&SA+j>aA){if(yA[uA])throw new t;process.emitWarning(new t)}iA.cork(),SA===0&&(!vA&&rA.reset!==!1&&(iA[d]=!0),aA===null?iA.write(`${G}transfer-encoding: chunked\r
`,"latin1"):iA.write(`${G}content-length: ${aA}\r
`,"latin1"),hA.write(UA),hA.uncork(),BA.onBodySent(UA),BA.onRequestSent(),!zA&&BA.reset!==!1&&(hA[I]=!0),lA[kA]()}catch(UA){GA(UA)}}e(WA,"writeBlob");async function te(GA,eA,lA,BA,hA,MA,xA,zA){A(MA!==0||lA[J]===0,"iterator body cannot be pipelined");let UA=null;function AA(){if(UA){const j=UA;UA=null,j()}}e(AA,"onDrain");const v=e(()=>new Promise((j,tA)=>{A(UA===null),hA[w]?tA(hA[w]):UA=j}),"waitForDrain");hA.on("close",AA).on("drain",AA);const X=new ie({abort:GA,socket:hA,request:BA,contentLength:MA,client:lA,expectsPayload:zA,header:xA});try{for await(const j of eA){if(hA[w])throw hA[w];X.write(j)||await v()}X.end()}catch(j){X.destroy(j)}finally{hA.off("close",AA).off("drain",AA)}}e(te,"writeIterable");const Ie=class Ie{constructor({abort:eA,socket:lA,request:BA,contentLength:hA,client:MA,expectsPayload:xA,header:zA}){this.socket=lA,this.request=BA,this.contentLength=hA,this.client=MA,this.bytesWritten=0,this.expectsPayload=xA,this.header=zA,this.abort=eA,lA[q]=!0}write(eA){const{socket:lA,request:BA,contentLength:hA,client:MA,bytesWritten:xA,expectsPayload:zA,header:UA}=this;if(lA[w])throw lA[w];if(lA.destroyed)return!1;const AA=Buffer.byteLength(eA);if(!AA)return!0;if(hA!==null&&xA+AA>hA){if(MA[RA])throw new t;process.emitWarning(new t)}lA.cork(),xA===0&&(!zA&&BA.reset!==!1&&(lA[I]=!0),hA===null?lA.write(`${UA}transfer-encoding: chunked\r
`,"latin1"):lA.write(`${UA}content-length: ${hA}\r
\r
`,"latin1")),aA===null&&iA.write(`\r
${j.toString(16)}\r
`,"latin1"),this.bytesWritten+=j;const T=iA.write(z);return iA.uncork(),rA.onBodySent(z),T||iA[M].timeout&&iA[M].timeoutType===NA&&iA[M].timeout.refresh&&iA[M].timeout.refresh(),T}end(){const{socket:z,contentLength:iA,client:rA,bytesWritten:aA,expectsPayload:yA,header:SA,request:vA}=this;if(vA.onRequestSent(),z[h]=!1,z[S])throw z[S];if(!z.destroyed){if(aA===0?yA?z.write(`${SA}content-length: 0\r
`,"latin1")),hA===null&&lA.write(`\r
${AA.toString(16)}\r
`,"latin1"),this.bytesWritten+=AA;const v=lA.write(eA);return lA.uncork(),BA.onBodySent(eA),v||lA[b].timeout&&lA[b].timeoutType===HA&&lA[b].timeout.refresh&&lA[b].timeout.refresh(),v}end(){const{socket:eA,contentLength:lA,client:BA,bytesWritten:hA,expectsPayload:MA,header:xA,request:zA}=this;if(zA.onRequestSent(),eA[q]=!1,eA[w])throw eA[w];if(!eA.destroyed){if(hA===0?MA?eA.write(`${xA}content-length: 0\r
\r
`,"latin1"):z.write(`${SA}\r
`,"latin1"):iA===null&&z.write(`\r
`,"latin1"):eA.write(`${xA}\r
`,"latin1"):lA===null&&eA.write(`\r
0\r
\r
`,"latin1"),iA!==null&&aA!==iA){if(rA[uA])throw new t;process.emitWarning(new t)}z[M].timeout&&z[M].timeoutType===NA&&z[M].timeout.refresh&&z[M].timeout.refresh(),rA[UA]()}}destroy(z){const{socket:iA,client:rA,abort:aA}=this;iA[h]=!1,z&&(A(rA[J]<=1,"pipeline should only contain this request"),aA(z))}}return clientH1=L,clientH1}e(requireClientH1,"requireClientH1");var clientH2,hasRequiredClientH2;function requireClientH2(){if(hasRequiredClientH2)return clientH2;hasRequiredClientH2=1;const A=require$$0__default,{pipeline:p}=Stream__default,c=requireUtil$7(),{RequestContentLengthMismatchError:E,RequestAbortedError:t,SocketError:B,InformationalError:f}=requireErrors(),{kUrl:l,kReset:Q,kClient:u,kRunning:n,kPending:r,kQueue:o,kPendingIdx:a,kRunningIdx:g,kError:d,kSocket:N,kStrictContentLength:M,kOnError:Y,kMaxConcurrentStreams:J,kHTTP2Session:V,kResume:H,kSize:h,kHTTPContext:I}=requireSymbols$4(),k=Symbol("open streams");let i,F=!1,m;try{m=__nccwpck_require__(2467)}catch{m={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:D,HTTP2_HEADER_METHOD:S,HTTP2_HEADER_PATH:W,HTTP2_HEADER_SCHEME:q,HTTP2_HEADER_CONTENT_LENGTH:O,HTTP2_HEADER_EXPECT:P,HTTP2_HEADER_STATUS:Z}}=m;function cA(nA){const $=[];for(const[sA,BA]of Object.entries(nA))if(Array.isArray(BA))for(const dA of BA)$.push(Buffer.from(sA),Buffer.from(dA));else $.push(Buffer.from(sA),Buffer.from(BA));return $}e(cA,"parseH2Headers");async function EA(nA,$){nA[N]=$,F||(F=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));const sA=m.connect(nA[l],{createConnection:e(()=>$,"createConnection"),peerMaxConcurrentStreams:nA[J]});sA[k]=0,sA[u]=nA,sA[N]=$,c.addListener(sA,"error",uA),c.addListener(sA,"frameError",pA),c.addListener(sA,"end",RA),c.addListener(sA,"goaway",DA),c.addListener(sA,"close",function(){const{[u]:dA}=this,{[N]:CA}=dA,mA=this[N][d]||this[d]||new B("closed",c.getSocketInfo(CA));if(dA[V]=null,dA.destroyed){A(dA[r]===0);const xA=dA[o].splice(dA[g]);for(let bA=0;bA<xA.length;bA++){const WA=xA[bA];c.errorRequest(dA,WA,mA)}}}),sA.unref(),nA[V]=sA,$[V]=sA,c.addListener($,"error",function(dA){A(dA.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[d]=dA,this[u][Y](dA)}),c.addListener($,"end",function(){c.destroy(this,new B("other side closed",c.getSocketInfo(this)))}),c.addListener($,"close",function(){const dA=this[d]||new B("closed",c.getSocketInfo(this));nA[N]=null,this[V]!=null&&this[V].destroy(dA),nA[a]=nA[g],A(nA[n]===0),nA.emit("disconnect",nA[l],[nA],dA),nA[H]()});let BA=!1;return $.on("close",()=>{BA=!0}),{version:"h2",defaultPipelining:1/0,write(...dA){return UA(nA,...dA)},resume(){fA(nA)},destroy(dA,CA){BA?queueMicrotask(CA):$.destroy(dA).on("close",CA)},get destroyed(){return $.destroyed},busy(){return!1}}}e(EA,"connectH2");function fA(nA){const $=nA[N];$?.destroyed===!1&&(nA[h]===0&&nA[J]===0?($.unref(),nA[V].unref()):($.ref(),nA[V].ref()))}e(fA,"resumeH2");function uA(nA){A(nA.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[N][d]=nA,this[u][Y](nA)}e(uA,"onHttp2SessionError");function pA(nA,$,sA){if(sA===0){const BA=new f(`HTTP/2: "frameError" received - type ${nA}, code ${$}`);this[N][d]=BA,this[u][Y](BA)}}e(pA,"onHttp2FrameError");function RA(){const nA=new B("other side closed",c.getSocketInfo(this[N]));this.destroy(nA),c.destroy(this[N],nA)}e(RA,"onHttp2SessionEnd");function DA(nA){const $=this[d]||new B(`HTTP/2: "GOAWAY" frame received with code ${nA}`,c.getSocketInfo(this)),sA=this[u];if(sA[N]=null,sA[I]=null,this[V]!=null&&(this[V].destroy($),this[V]=null),c.destroy(this[N],$),sA[g]<sA[o].length){const BA=sA[o][sA[g]];sA[o][sA[g]++]=null,c.errorRequest(sA,BA,$),sA[a]=sA[g]}A(sA[n]===0),sA.emit("disconnect",sA[l],[sA],$),sA[H]()}e(DA,"onHTTP2GoAway");function TA(nA){return nA!=="GET"&&nA!=="HEAD"&&nA!=="OPTIONS"&&nA!=="TRACE"&&nA!=="CONNECT"}e(TA,"shouldSendContentLength");function UA(nA,$){const sA=nA[V],{method:BA,path:dA,host:CA,upgrade:mA,expectContinue:xA,signal:bA,headers:WA}=$;let{body:LA}=$;if(mA)return c.errorRequest(nA,$,new Error("Upgrade not supported for H2")),!1;const GA={};for(let wA=0;wA<WA.length;wA+=2){const FA=WA[wA+0],MA=WA[wA+1];if(Array.isArray(MA))for(let OA=0;OA<MA.length;OA++)GA[FA]?GA[FA]+=`,${MA[OA]}`:GA[FA]=MA[OA];else GA[FA]=MA}let NA;const{hostname:KA,port:ZA}=nA[l];GA[D]=CA||`${KA}${ZA?`:${ZA}`:""}`,GA[S]=BA;const PA=e(wA=>{$.aborted||$.completed||(wA=wA||new t,c.errorRequest(nA,$,wA),NA!=null&&c.destroy(NA,wA),c.destroy(LA,wA),nA[o][nA[g]++]=null,nA[H]())},"abort");try{$.onConnect(PA)}catch(wA){c.errorRequest(nA,$,wA)}if($.aborted)return!1;if(BA==="CONNECT")return sA.ref(),NA=sA.request(GA,{endStream:!1,signal:bA}),NA.id&&!NA.pending?($.onUpgrade(null,null,NA),++sA[k],nA[o][nA[g]++]=null):NA.once("ready",()=>{$.onUpgrade(null,null,NA),++sA[k],nA[o][nA[g]++]=null}),NA.once("close",()=>{sA[k]-=1,sA[k]===0&&sA.unref()}),!0;GA[W]=dA,GA[q]="https";const oA=BA==="PUT"||BA==="POST"||BA==="PATCH";LA&&typeof LA.read=="function"&&LA.read(0);let L=c.bodyLength(LA);if(c Line truncated
`,this[cA]=_A??3e5,this[Z]=wA??3e5,this[EA]=G??!0,this[uA]=T,this[pA]=K,this[mA]=null,this[lA]=gA>-1?gA:-1,this[$]=JA??100,this[nA]=null,this[V]=[],this[m]=0,this[F]=0,this[sA]=VA=>ZA(this,VA),this[YA]=VA=>GA(this,VA)}get pipelining(){return this[S]}set pipelining(L){this[S]=L,this[sA](!0)}get[Y](){return this[V].length-this[F]}get[M](){return this[F]-this[m]}get[J](){return this[V].length-this[m]}get[H](){return!!this[nA]&&!this[h]&&!this[nA].destroyed}get[g](){return!!(this[nA]?.busy(null)||this[J]>=(bA(this)||1)||this[Y]>0)}[d](L){NA(this),this.once("connect",L)}[UA](L,AA){const IA=L.origin||this[r].origin,wA=new B(IA,L,AA);return this[V].push(wA),this[N]||(E.bodyLength(wA.body)==null&&E.isIterable(wA.body)?(this[N]=1,queueMicrotask(()=>ZA(this))):this[sA](!0)),this[N]&&this[I]!==2&&this[g]&&(this[I]=2),this[I]<2}async[DA](){return new Promise(L=>{this[J]?this[mA]=L:L(null)})}async[TA](L){return new Promise(AA=>{const IA=this[V].splice(this[F]);for(let FA=0;FA<IA.length;FA++){const MA=IA[FA];E.errorRequest(this,MA,L)}const wA=e(()=>{this[mA]&&(this[mA](),this[mA]=null),AA(null)},"callback");this[nA]?(this[nA].destroy(L,wA),this[nA]=null):queueMicrotask(wA),this[sA]()})}}const LA=requireRedirectInterceptor();function GA(oA,L){if(oA[M]===0&&L.code!=="UND_ERR_INFO"&&L.code!=="UND_ERR_SOCKET"){A(oA[F]===oA[m]);const AA=oA[V].splice(oA[m]);for(let IA=0;IA<AA.length;IA++){const wA=AA[IA];E.errorRequest(oA,wA,L)}A(oA[J]===0)}}e(GA,"onError");async function NA(oA){A(!oA[h]),A(!oA[nA]);let{host:L,hostname:AA,protocol:IA,port:wA}=oA[r];if(AA[0]==="["){const FA=AA.indexOf("]");A(FA!==-1);const MA=AA.substring(1,FA);A(p.isIP(MA)),AA=MA}oA[h]=!0,t.beforeConnect.hasSubscribers&&t.beforeConnect.publish({connectParams:{host:L,hostname:AA,protocol:IA,port:wA,version:oA[nA]?.version,servername:oA[o],localAddress:oA[eA]},connector:oA[fA]});try{const FA=await new Promise((MA,OA)=>{oA[fA]({host:L,hostname:AA,protocol:IA,port:wA,servername:oA[o],localAddress:oA[eA]},(_A,$A)=>{_A?OA(_A):MA($A)})});if(oA.destroyed){E.destroy(FA.on("error",xA),new u);return}A(FA);try{oA[nA]=FA.alpnProtocol==="h2"?await dA(oA,FA):await BA(oA,FA)}catch(MA){throw FA.destroy().on("error",xA),MA}oA[h]=!1,FA[RA]=0,FA[pA]=oA[pA],FA[a]=oA,FA[D]=null,t.connected.hasSubscribers&&t.connected.publish({connectParams:{host:L,hostname:AA,protocol:IA,port:wA,version:oA[nA]?.version,servername:oA[o],localAddress:oA[eA]},connector:oA[fA],socket:FA}),oA.emit("connect",oA[r],[oA])}catch(FA){if(oA.destroyed)return;if(oA[h]=!1,t.connectError.hasSubscribers&&t.connectError.publish({connectParams:{host:L,hostname:AA,protocol:IA,port:wA,version:oA[nA]?.version,servername:oA[o],localAddress:oA[eA]},connector:oA[fA],error:FA}),FA.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(A(oA[M]===0);oA[Y]>0&&oA[V][oA[F]].servername===oA[o];){const MA=oA[V][oA[F]++];E.errorRequest(oA,MA,FA)}else GA(oA,FA);oA.emit("connectionError",oA[r],[oA],FA)}oA[sA]()}e(NA,"connect");function KA(oA){oA[I]=0,oA.emit("drain",oA[r],[oA])}e(KA,"emitDrain");function ZA(oA,L){oA[N]!==2&&(oA[N]=2,PA(oA,L),oA[N]=0,oA[m]>256&&(oA[V].splice(0,oA[m]),oA[F]-=oA[m],oA[m]=0))}e(ZA,"resume");function PA(oA,L){for(;;){if(oA.destroyed){A(oA[Y]===0);return}if(oA[mA]&&!oA[J]){oA[mA](),oA[mA]=null;return}if(oA[nA]&&oA[nA].resume(),oA[g])oA[I]=2;else if(oA[I]===2){L?(oA[I]=1,queueMicrotask(()=>KA(oA))):KA(oA);continue}if(oA[Y]===0||oA[M]>=(bA(oA)||1))return;const AA=oA[V][oA[F]];if(oA[r].protocol==="https:"&&oA[o]!==AA.servername){if(oA[M]>0)return;oA[o]=AA.servername,oA[nA]?.destroy(new Q("servername changed"),()=>{oA[nA]=null,ZA(oA)})}if(oA[h])return;if(!oA[nA]){NA(oA);return}if(oA[nA].destroyed||oA[nA].busy(AA))return;!AA.aborted&&oA[nA].write(AA)?oA[F]++:oA[V].splice(oA[F],1)}}return e(PA,"_resume"),client=WA,client}e(requireClient,"requireClient");var fixedQueue,hasRequiredFixedQueue;function requireFixedQueue(){if(hasRequiredFixedQueue)return fixedQueue;hasRequiredFixedQueue=1;const A=2048,p=A-1;class c{static{e(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(A),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&p)===this.bottom}push(t){this.list[this.top]=t,this.top=this.top+1&p}shift(){const t=this.list[this.bottom];return t===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&p,t)}}return fixedQueue=class{static{e(this,"FixedQueue")}constructor(){this.head=this.tail=new c}isEmpty(){return this.head.isEmpty()}push(t){this.head.isFull()&&(this.head=this.head.next=new c),this.head.push(t)}shift(){const t=this.tail,B=t.shift();return t.isEmpty()&&t.next!==null&&(this.tail=t.next),B}},fixedQueue}e(requireFixedQueue,"requireFixedQueue");var poolStats,hasRequiredPoolStats;function requirePoolStats(){if(hasRequiredPoolStats)return poolStats;hasRequiredPoolStats=1;const{kFree:A,kConnected:p,kPending:c,kQueued:E,kRunning:t,kSize:B}=requireSymbols$4(),f=Symbol("pool");class l{static{e(this,"PoolStats")}constructor(u){this[f]=u}get connec Line truncated
${k.count} ${k.noun} ${k.is} pending:
`,"latin1"),lA!==null&&hA!==lA){if(BA[RA])throw new t;process.emitWarning(new t)}eA[b].timeout&&eA[b].timeoutType===HA&&eA[b].timeout.refresh&&eA[b].timeout.refresh(),BA[kA]()}}destroy(eA){const{socket:lA,client:BA,abort:hA}=this;lA[q]=!1,eA&&(A(BA[J]<=1,"pipeline should only contain this request"),hA(eA))}};e(Ie,"AsyncWriter");let ie=Ie;return clientH1=QA,clientH1}e(requireClientH1,"requireClientH1");var clientH2,hasRequiredClientH2;function requireClientH2(){if(hasRequiredClientH2)return clientH2;hasRequiredClientH2=1;const A=require$$0__default$1,{pipeline:k}=Stream__default,c=requireUtil$7(),{RequestContentLengthMismatchError:B,RequestAbortedError:t,SocketError:y,InformationalError:R}=requireErrors(),{kUrl:F,kReset:Q,kClient:D,kRunning:U,kPending:r,kQueue:o,kPendingIdx:N,kRunningIdx:l,kError:I,kSocket:p,kStrictContentLength:b,kOnError:G,kMaxConcurrentStreams:J,kHTTP2Session:V,kResume:_,kSize:q,kHTTPContext:M}=requireSymbols$4(),Y=Symbol("open streams");let m,f=!1,n;try{n=__nccwpck_require__(2467)}catch{n={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:C,HTTP2_HEADER_METHOD:w,HTTP2_HEADER_PATH:S,HTTP2_HEADER_SCHEME:x,HTTP2_HEADER_CONTENT_LENGTH:z,HTTP2_HEADER_EXPECT:$,HTTP2_HEADER_STATUS:K}}=n;function nA(aA){const EA=[];for(const[sA,NA]of Object.entries(aA))if(Array.isArray(NA))for(const wA of NA)EA.push(Buffer.from(sA),Buffer.from(wA));else EA.push(Buffer.from(sA),Buffer.from(NA));return EA}e(nA,"parseH2Headers");async function iA(aA,EA){aA[p]=EA,f||(f=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));const sA=n.connect(aA[F],{createConnection:e(()=>EA,"createConnection"),peerMaxConcurrentStreams:aA[J]});sA[Y]=0,sA[D]=aA,sA[p]=EA,c.addListener(sA,"error",RA),c.addListener(sA,"frameError",IA),c.addListener(sA,"end",CA),c.addListener(sA,"goaway",pA),c.addListener(sA,"close",function(){const{[D]:wA}=this,{[p]:vA}=wA,dA=this[p][I]||this[I]||new y("closed",c.getSocketInfo(vA));if(wA[V]=null,wA.destroyed){A(wA[r]===0);const XA=wA[o].splice(wA[l]);for(let KA=0;KA<XA.length;KA++){const OA=XA[KA];c.errorRequest(wA,OA,dA)}}}),sA.unref(),aA[V]=sA,EA[V]=sA,c.addListener(EA,"error",function(wA){A(wA.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[I]=wA,this[D][G](wA)}),c.addListener(EA,"end",function(){c.destroy(this,new y("other side closed",c.getSocketInfo(this)))}),c.addListener(EA,"close",function(){const wA=this[I]||new y("closed",c.getSocketInfo(this));aA[p]=null,this[V]!=null&&this[V].destroy(wA),aA[N]=aA[l],A(aA[U]===0),aA.emit("disconnect",aA[F],[aA],wA),aA[_]()});let NA=!1;return EA.on("close",()=>{NA=!0}),{version:"h2",defaultPipelining:1/0,write(...wA){return kA(aA,...wA)},resume(){uA(aA)},destroy(wA,vA){NA?queueMicrotask(vA):EA.destroy(wA).on("close",vA)},get destroyed(){return EA.destroyed},busy(){return!1}}}e(iA,"connectH2");function uA(aA){const EA=aA[p];EA?.destroyed===!1&&(aA[q]===0&&aA[J]===0?(EA.unref(),aA[V].unref()):(EA.ref(),aA[V].ref()))}e(uA,"resumeH2");function RA(aA){A(aA.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[p][I]=aA,this[D][G](aA)}e(RA,"onHttp2SessionError");function IA(aA,EA,sA){if(sA===0){const NA=new R(`HTTP/2: "frameError" received - type ${aA}, code ${EA}`);this[p][I]=NA,this[D][G](NA)}}e(IA,"onHttp2FrameError");function CA(){const aA=new y("other side closed",c.getSocketInfo(this[p]));this.destroy(aA),c.destroy(this[p],aA)}e(CA,"onHttp2SessionEnd");function pA(aA){const EA=this[I]||new y(`HTTP/2: "GOAWAY" frame received with code ${aA}`,c.getSocketInfo(this)),sA=this[D];if(sA[p]=null,sA[M]=null,this[V]!=null&&(this[V].destroy(EA),this[V]=null),c.destroy(this[p],EA),sA[l]<sA[o].length){const NA=sA[o][sA[l]];sA[o][sA[l]++]=null,c.errorRequest(sA,NA,EA),sA[N]=sA[l]}A(sA[U]===0),sA.emit("disconnect",sA[F],[sA],EA),sA[_]()}e(pA,"onHTTP2GoAway");function fA(aA){return aA!=="GET"&&aA!=="HEAD"&&aA!=="OPTIONS"&&aA!=="TRACE"&&aA!=="CONNECT"}e(fA,"shouldSendContentLength");function kA(aA,EA){const sA=aA[V],{method:NA,path:wA,host:vA,upgrade:dA,expectContinue:XA,signal:KA,headers:OA}=EA;let{body:PA}=EA;if(dA)return c.errorRequest(aA,EA,new Error("Upgrade not supported for H2")),!1;const ZA={};for(let yA=0;yA<OA.length;yA+=2){const LA=OA[yA+0],JA=OA[yA+1];if(Array.isArray(JA))for(let WA=0;WA<JA.length;WA++)ZA[LA]?ZA[LA]+=`,${JA[WA]}`:ZA[LA]=JA[WA];else ZA[LA]=JA}let HA;const{hostname:se,port:ne}=aA[F];ZA[C]=vA||`${se}${ne?`:${ne}`:""}`,ZA[w]=NA;const jA=e(yA=>{EA.aborted||EA.completed||(yA=yA||new t,c.errorRequest(aA,EA,yA),HA!=null&&c.destroy(HA,yA),c.destroy(PA,yA),aA[o][aA[l]++]=null,aA[_]())},"abort");try{EA.onConnect(jA)}catch(yA){c.errorRequest(aA,EA,yA)}if(EA.aborted)return!1;if(NA==="CONNECT")return sA.ref(),HA=sA.request(ZA,{endStream:!1,signal:KA}),HA.id&&!HA.pending?(EA.onUpgrade(null,null,HA),++sA[Y],aA[o][aA[l]++]=null):HA.once("ready",()=>{EA.onUpgrade(null,null,HA),++sA[Y],aA[o][aA[l]++]=null}),HA.once("close",()=>{sA[Y]-=1,sA[Y]===0&&sA.unref()}),!0;ZA[S]=wA,ZA[x]="https";const Ae=NA==="PUT"||NA==="POST"||NA== Line truncated
`,this[nA]=ie??3e5,this[K]=LA??3e5,this[iA]=zA??!0,this[RA]=AA,this[IA]=X,this[dA]=null,this[DA]=tA>-1?tA:-1,this[EA]=TA??100,this[aA]=null,this[V]=[],this[n]=0,this[f]=0,this[sA]=YA=>ne(this,YA),this[oA]=YA=>ZA(this,YA)}get pipelining(){return this[w]}set pipelining(W){this[w]=W,this[sA](!0)}get[G](){return this[V].length-this[f]}get[b](){return this[f]-this[n]}get[J](){return this[V].length-this[n]}get[_](){return!!this[aA]&&!this[q]&&!this[aA].destroyed}get[l](){return!!(this[aA]?.busy(null)||this[J]>=(KA(this)||1)||this[G]>0)}[I](W){HA(this),this.once("connect",W)}[kA](W,cA){const yA=W.origin||this[r].origin,LA=new y(yA,W,cA);return this[V].push(LA),this[p]||(B.bodyLength(LA.body)==null&&B.isIterable(LA.body)?(this[p]=1,queueMicrotask(()=>ne(this))):this[sA](!0)),this[p]&&this[M]!==2&&this[l]&&(this[M]=2),this[M]<2}async[pA](){return new Promise(W=>{this[J]?this[dA]=W:W(null)})}async[fA](W){return new Promise(cA=>{const yA=this[V].splice(this[f]);for(let JA=0;JA<yA.length;JA++){const WA=yA[JA];B.errorRequest(this,WA,W)}const LA=e(()=>{this[dA]&&(this[dA](),this[dA]=null),cA(null)},"callback");this[aA]?(this[aA].destroy(W,LA),this[aA]=null):queueMicrotask(LA),this[sA]()})}};e(Ae,"Client");let OA=Ae;const PA=requireRedirectInterceptor();function ZA(QA,W){if(QA[b]===0&&W.code!=="UND_ERR_INFO"&&W.code!=="UND_ERR_SOCKET"){A(QA[f]===QA[n]);const cA=QA[V].splice(QA[n]);for(let yA=0;yA<cA.length;yA++){const LA=cA[yA];B.errorRequest(QA,LA,W)}A(QA[J]===0)}}e(ZA,"onError");async function HA(QA){A(!QA[q]),A(!QA[aA]);let{host:W,hostname:cA,protocol:yA,port:LA}=QA[r];if(cA[0]==="["){const JA=cA.indexOf("]");A(JA!==-1);const WA=cA.substring(1,JA);A(k.isIP(WA)),cA=WA}QA[q]=!0,t.beforeConnect.hasSubscribers&&t.beforeConnect.publish({connectParams:{host:W,hostname:cA,protocol:yA,port:LA,version:QA[aA]?.version,servername:QA[o],localAddress:QA[gA]},connector:QA[uA]});try{const JA=await new Promise((WA,te)=>{QA[uA]({host:W,hostname:cA,protocol:yA,port:LA,servername:QA[o],localAddress:QA[gA]},(ie,oe)=>{ie?te(ie):WA(oe)})});if(QA.destroyed){B.destroy(JA.on("error",XA),new D);return}A(JA);try{QA[aA]=JA.alpnProtocol==="h2"?await wA(QA,JA):await NA(QA,JA)}catch(WA){throw JA.destroy().on("error",XA),WA}QA[q]=!1,JA[CA]=0,JA[IA]=QA[IA],JA[N]=QA,JA[C]=null,t.connected.hasSubscribers&&t.connected.publish({connectParams:{host:W,hostname:cA,protocol:yA,port:LA,version:QA[aA]?.version,servername:QA[o],localAddress:QA[gA]},connector:QA[uA],socket:JA}),QA.emit("connect",QA[r],[QA])}catch(JA){if(QA.destroyed)return;if(QA[q]=!1,t.connectError.hasSubscribers&&t.connectError.publish({connectParams:{host:W,hostname:cA,protocol:yA,port:LA,version:QA[aA]?.version,servername:QA[o],localAddress:QA[gA]},connector:QA[uA],error:JA}),JA.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(A(QA[b]===0);QA[G]>0&&QA[V][QA[f]].servername===QA[o];){const WA=QA[V][QA[f]++];B.errorRequest(QA,WA,JA)}else ZA(QA,JA);QA.emit("connectionError",QA[r],[QA],JA)}QA[sA]()}e(HA,"connect");function se(QA){QA[M]=0,QA.emit("drain",QA[r],[QA])}e(se,"emitDrain");function ne(QA,W){QA[p]!==2&&(QA[p]=2,jA(QA,W),QA[p]=0,QA[n]>256&&(QA[V].splice(0,QA[n]),QA[f]-=QA[n],QA[n]=0))}e(ne,"resume");function jA(QA,W){for(;;){if(QA.destroyed){A(QA[G]===0);return}if(QA[dA]&&!QA[J]){QA[dA](),QA[dA]=null;return}if(QA[aA]&&QA[aA].resume(),QA[l])QA[M]=2;else if(QA[M]===2){W?(QA[M]=1,queueMicrotask(()=>se(QA))):se(QA);continue}if(QA[G]===0||QA[b]>=(KA(QA)||1))return;const cA=QA[V][QA[f]];if(QA[r].protocol==="https:"&&QA[o]!==cA.servername){if(QA[b]>0)return;QA[o]=cA.servername,QA[aA]?.destroy(new Q("servername changed"),()=>{QA[aA]=null,ne(QA)})}if(QA[q])return;if(!QA[aA]){HA(QA);return}if(QA[aA].destroyed||QA[aA].busy(cA))return;!cA.aborted&&QA[aA].write(cA)?QA[f]++:QA[V].splice(QA[f],1)}}return e(jA,"_resume"),client=OA,client}e(requireClient,"requireClient");var fixedQueue,hasRequiredFixedQueue;function requireFixedQueue(){var t;if(hasRequiredFixedQueue)return fixedQueue;hasRequiredFixedQueue=1;const A=2048,k=A-1,B=class B{constructor(){this.bottom=0,this.top=0,this.list=new Array(A),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&k)===this.bottom}push(R){this.list[this.top]=R,this.top=this.top+1&k}shift(){const R=this.list[this.bottom];return R===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&k,R)}};e(B,"FixedCircularBuffer");let c=B;return fixedQueue=(t=class{constructor(){this.head=this.tail=new c}isEmpty(){return this.head.isEmpty()}push(R){this.head.isFull()&&(this.head=this.head.next=new c),this.head.push(R)}shift(){const R=this.tail,F=R.shift();return R.isEmpty()&&R.next!==null&&(this.tail=R.next),F}},e(t,"FixedQueue"),t),fixedQueue}e(requireFixedQueue,"requireFixedQueue");var poolStats,hasRequiredPoolStats;function requirePoolStats(){if(hasRequiredPoolStats)return poolStats;hasRequiredPoolStats=1;const{kFree:A,kConnected:k,kPending:c,kQueued:B,kRunning:t,kSize:y}=requireSymbols$4(),R=Symbol("pool"),Q=class Q{constructor(U){this[R]=U}get Line truncated
${m.count} ${m.noun} ${m.is} pending:
${h.format(I)}
`.trim())}}return mockAgent=V,mockAgent}e(requireMockAgent,"requireMockAgent");var global,hasRequiredGlobal;function requireGlobal(){if(hasRequiredGlobal)return global;hasRequiredGlobal=1;const A=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:p}=requireErrors(),c=requireAgent();t()===void 0&&E(new c);function E(B){if(!B||typeof B.dispatch!="function")throw new p("Argument agent must implement Agent");Object.defineProperty(globalThis,A,{value:B,writable:!0,enumerable:!1,configurable:!1})}e(E,"setGlobalDispatcher");function t(){return globalThis[A]}return e(t,"getGlobalDispatcher"),global={setGlobalDispatcher:E,getGlobalDispatcher:t},global}e(requireGlobal,"requireGlobal");var decoratorHandler,hasRequiredDecoratorHandler;function requireDecoratorHandler(){return hasRequiredDecoratorHandler||(hasRequiredDecoratorHandler=1,decoratorHandler=class{static{e(this,"DecoratorHandler")}#A;constructor(p){if(typeof p!="object"||p===null)throw new TypeError("handler must be an object");this.#A=p}onConnect(...p){return this.#A.onConnect?.(...p)}onError(...p){return this.#A.onError?.(...p)}onUpgrade(...p){return this.#A.onUpgrade?.(...p)}onResponseStarted(...p){return this.#A.onResponseStarted?.(...p)}onHeaders(...p){return this.#A.onHeaders?.(...p)}onData(...p){return this.#A.onData?.(...p)}onComplete(...p){return this.#A.onComplete?.(...p)}onBodySent(...p){return this.#A.onBodySent?.(...p)}}),decoratorHandler}e(requireDecoratorHandler,"requireDecoratorHandler");var redirect,hasRequiredRedirect;function requireRedirect(){if(hasRequiredRedirect)return redirect;hasRequiredRedirect=1;const A=requireRedirectHandler();return redirect=e(p=>{const c=p?.maxRedirections;return E=>e(function(B,f){const{maxRedirections:l=c,...Q}=B;if(!l)return E(B,f);const u=new A(E,l,B,f);return E(Q,u)},"redirectInterceptor")},"redirect"),redirect}e(requireRedirect,"requireRedirect");var retry,hasRequiredRetry;function requireRetry(){if(hasRequiredRetry)return retry;hasRequiredRetry=1;const A=requireRetryHandler();return retry=e(p=>c=>e(function(t,B){return c(t,new A({...t,retryOptions:{...p,...t.retryOptions}},{handler:B,dispatch:c}))},"retryInterceptor"),"retry"),retry}e(requireRetry,"requireRetry");var dump,hasRequiredDump;function requireDump(){if(hasRequiredDump)return dump;hasRequiredDump=1;const A=requireUtil$7(),{InvalidArgumentError:p,RequestAbortedError:c}=requireErrors(),E=requireDecoratorHandler();class t extends E{static{e(this,"DumpHandler")}#A=1024*1024;#e=null;#n=!1;#r=!1;#t=0;#s=null;#o=null;constructor({maxSize:l},Q){if(super(Q),l!=null&&(!Number.isFinite(l)||l<1))throw new p("maxSize must be a number greater than 0");this.#A=l??this.#A,this.#o=Q}onConnect(l){this.#e=l,this.#o.onConnect(this.#i.bind(this))}#i(l){this.#r=!0,this.#s=l}onHeaders(l,Q,u,n){const o=A.parseHeaders(Q)["content-length"];if(o!=null&&o>this.#A)throw new c(`Response size (${o}) larger than maxSize (${this.#A})`);return this.#r?!0:this.#o.onHeaders(l,Q,u,n)}onError(l){this.#n||(l=this.#s??l,this.#o.onError(l))}onData(l){return this.#t=this.#t+l.length,this.#t>=this.#A&&(this.#n=!0,this.#r?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(l){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(l)}}}function B({maxSize:f}={maxSize:1024*1024}){return l=>e(function(u,n){const{dumpMaxSize:r=f}=u,o=new t({maxSize:r},n);return l(u,o)},"Intercept")}return e(B,"createDumpInterceptor"),dump=B,dump}e(requireDump,"requireDump");var dns,hasRequiredDns;function requireDns(){if(hasRequiredDns)return dns;hasRequiredDns=1;const{isIP:A}=require$$0__default$1,{lookup:p}=require$$1__default$3,c=requireDecoratorHandler(),{InvalidArgumentError:E,InformationalError:t}=requireErrors(),B=Math.pow(2,31)-1;class f{static{e(this,"DNSInstance")}#A=0;#e=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(u){this.#A=u.maxTTL,this.#e=u.maxItems,this.dualStack=u.dualStack,this.affinity=u.affinity,this.lookup=u.lookup??this.#r,this.pick=u.pick??this.#t}get full(){return this.#n.size===this.#e}runLookup(u,n,r){const o=this.#n.get(u.hostname);if(o==null&&this.full){r(null,u.origin);return}const a={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...n.dns,maxTTL:this.#A,maxItems:this.#e};if(o==null)this.lookup(u,a,(g,d)=>{if(g||d==null||d.length===0){r(g??new t("No DNS entries found"));return}this.setRecords(u,d);const N=this.#n.get(u.hostname),M=this.pick(u,N,a.affinity);let Y;typeof M.port=="number"?Y=`:${M.port}`:u.port!==""?Y=`:${u.port}`:Y="",r(null,`${u.protocol}//${M.family===6?`[${M.address}]`:M.address}${Y}`)});else{const g=this.pick(u,o,a.affinity);if(g==null){this.#n.delete(u.hostname),this.runLookup(u,n,r);return}let d;typeof g.port=="number"?d=`:${g.port}`:u.port!==""?d=`:${u.port}`:d="",r(null,`${u.protocol}//${g.family===6?`[${g.address}]`:g.address}${d}`)}}#r(u,n,r){p(u.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,a)=>{if(o)return r(o) Line truncated
${g}`;break;case"retry":p(g)&&(r[a]=g);break;case"id":c(g)&&(r[a]=g);break;case"event":g.length>0&&(r[a]=g);break}}processEvent(n){n.retry&&p(n.retry)&&(this.state.reconnectionTime=parseInt(n.retry,10)),n.id&&c(n.id)&&(this.state.lastEventId=n.id),n.data!==void 0&&this.push({type:n.event||"message",options:{data:n.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}return eventsourceStream={EventSourceStream:Q},eventsourceStream}e(requireEventsourceStream,"requireEventsourceStream");var eventsource,hasRequiredEventsource;function requireEventsource(){if(hasRequiredEventsource)return eventsource;hasRequiredEventsource=1;const{pipeline:A}=Stream__default,{fetching:p}=requireFetch(),{makeRequest:c}=requireRequest(),{webidl:E}=requireWebidl(),{EventSourceStream:t}=requireEventsourceStream(),{parseMIMEType:B}=requireDataUrl(),{createFastMessageEvent:f}=requireEvents(),{isNetworkError:l}=requireResponse(),{delay:Q}=requireUtil(),{kEnumerableProperty:u}=requireUtil$7(),{environmentSettingsObject:n}=requireUtil$6();let r=!1;const o=3e3,a=0,g=1,d=2,N="anonymous",M="use-credentials";class Y extends EventTarget{static{e(this,"EventSource")}#A={open:null,error:null,message:null};#e=null;#n=!1;#r=a;#t=null;#s=null;#o;#i;constructor(H,h={}){super(),E.util.markAsUncloneable(this);const I="EventSource constructor";E.argumentLengthCheck(arguments,1,I),r||(r=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),H=E.converters.USVString(H,I,"url"),h=E.converters.EventSourceInitDict(h,I,"eventSourceInitDict"),this.#o=h.dispatcher,this.#i={lastEventId:"",reconnectionTime:o};const k=n;let i;try{i=new URL(H,k.settingsObject.baseUrl),this.#i.origin=i.origin}catch(D){throw new DOMException(D,"SyntaxError")}this.#e=i.href;let F=N;h.withCredentials&&(F=M,this.#n=!0);const m={redirect:"follow",keepalive:!0,mode:"cors",credentials:F==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};m.client=n.settingsObject,m.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],m.cache="no-store",m.initiator="other",m.urlList=[new URL(this.#e)],this.#t=c(m),this.#a()}get readyState(){return this.#r}get url(){return this.#e}get withCredentials(){return this.#n}#a(){if(this.#r===d)return;this.#r=a;const H={request:this.#t,dispatcher:this.#o},h=e(I=>{l(I)&&(this.dispatchEvent(new Event("error")),this.close()),this.#g()},"processEventSourceEndOfBody");H.processResponseEndOfBody=h,H.processResponse=I=>{if(l(I))if(I.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#g();return}const k=I.headersList.get("content-type",!0),i=k!==null?B(k):"failure",F=i!=="failure"&&i.essence==="text/event-stream";if(I.status!==200||F===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=g,this.dispatchEvent(new Event("open")),this.#i.origin=I.urlList[I.urlList.length-1].origin;const m=new t({eventSourceSettings:this.#i,push:e(D=>{this.dispatchEvent(f(D.type,D.options))},"push")});A(I.body.stream,m,D=>{D?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=p(H)}async#g(){this.#r!==d&&(this.#r=a,this.dispatchEvent(new Event("error")),await Q(this.#i.reconnectionTime),this.#r===a&&(this.#i.lastEventId.length&&this.#t.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#a()))}close(){E.brandCheck(this,Y),this.#r!==d&&(this.#r=d,this.#s.abort(),this.#t=null)}get onopen(){return this.#A.open}set onopen(H){this.#A.open&&this.removeEventListener("open",this.#A.open),typeof H=="function"?(this.#A.open=H,this.addEventListener("open",H)):this.#A.open=null}get onmessage(){return this.#A.message}set onmessage(H){this.#A.message&&this.removeEventListener("message",this.#A.message),typeof H=="function"?(this.#A.message=H,this.addEventListener("message",H)):this.#A.message=null}get onerror(){return this.#A.error}set onerror(H){this.#A.error&&this.removeEventListener("error",this.#A.error),typeof H=="function"?(this.#A.error=H,this.addEventListener("error",H)):this.#A.error=null}}const J={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:a,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:g,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:d,writable:!1}};return Object.defineProperties(Y,J),Object.defineProperties(Y.prototype,J),Object.defineProperties(Y.prototype,{close:u,onerror:u,onmessage:u,onopen:u,readyState:u,url:u,withCredentials:u}),E.converters.EventSourceInitDict=E.dictionaryConverter([{key:"withCredentials",converter:E.converters.boolean,defaultValue:e(()=>!1,"defaultValue")},{key:"dispatcher",converter:E.converters.any}]),eventsource={EventSource:Y,defaultReconnectionTime:o},eventsource}e(requireEventsource,"requireEventsource");var hasRequiredUndici;function requireUndici(){if(hasRequiredUndici)return undici;hasRequiredUndici=1;const A=requireClient(),p=requireDispatcher(),c=r Line truncated
`).some(a=>a.indexOf("(https.js:")!==-1||a.indexOf("node:https:")!==-1)}incrementSockets(r){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[r]||(this.sockets[r]=[]);const o=new B.Socket({writable:!1});return this.sockets[r].push(o),this.totalSocketCount++,o}decrementSockets(r,o){if(!this.sockets[r]||o===null)return;const a=this.sockets[r],g=a.indexOf(o);g!==-1&&(a.splice(g,1),this.totalSocketCount--,a.length===0&&delete this.sockets[r])}getName(r){return(typeof r.secureEndpoint=="boolean"?r.secureEndpoint:this.isSecureEndpoint(r))?l.Agent.prototype.getName.call(this,r):super.getName(r)}createSocket(r,o,a){const g={...o,secureEndpoint:this.isSecureEndpoint(o)},d=this.getName(g),N=this.incrementSockets(d);Promise.resolve().then(()=>this.connect(r,g)).then(M=>{if(this.decrementSockets(d,N),M instanceof f.Agent)try{return M.addRequest(r,g)}catch(Y){return a(Y)}this[Q].currentSocket=M,super.createSocket(r,o,a)},M=>{this.decrementSockets(d,N),a(M)})}createConnection(){const r=this[Q].currentSocket;if(this[Q].currentSocket=void 0,!r)throw new Error("No socket was returned in the `connect()` function");return r}get defaultPort(){return this[Q].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(r){this[Q]&&(this[Q].defaultPort=r)}get protocol(){return this[Q].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(r){this[Q]&&(this[Q].protocol=r)}}A.Agent=u}(dist$2)),dist$2}e(requireDist$2,"requireDist$2");var distExports$2=requireDist$2(),dist$1={},src={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var A=1e3,p=A*60,c=p*60,E=c*24,t=E*7,B=E*365.25;ms=e(function(n,r){r=r||{};var o=typeof n;if(o==="string"&&n.length>0)return f(n);if(o==="number"&&isFinite(n))return r.long?Q(n):l(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))},"ms");function f(n){if(n=String(n),!(n.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(n);if(r){var o=parseFloat(r[1]),a=(r[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return o*B;case"weeks":case"week":case"w":return o*t;case"days":case"day":case"d":return o*E;case"hours":case"hour":case"hrs":case"hr":case"h":return o*c;case"minutes":case"minute":case"mins":case"min":case"m":return o*p;case"seconds":case"second":case"secs":case"sec":case"s":return o*A;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}e(f,"parse");function l(n){var r=Math.abs(n);return r>=E?Math.round(n/E)+"d":r>=c?Math.round(n/c)+"h":r>=p?Math.round(n/p)+"m":r>=A?Math.round(n/A)+"s":n+"ms"}e(l,"fmtShort");function Q(n){var r=Math.abs(n);return r>=E?u(n,r,E,"day"):r>=c?u(n,r,c,"hour"):r>=p?u(n,r,p,"minute"):r>=A?u(n,r,A,"second"):n+" ms"}e(Q,"fmtLong");function u(n,r,o,a){var g=r>=o*1.5;return Math.round(n/o)+" "+a+(g?"s":"")}return e(u,"plural"),ms}e(requireMs,"requireMs");var common,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;function A(p){E.debug=E,E.default=E,E.coerce=u,E.disable=l,E.enable=B,E.enabled=Q,E.humanize=requireMs(),E.destroy=n,Object.keys(p).forEach(r=>{E[r]=p[r]}),E.names=[],E.skips=[],E.formatters={};function c(r){let o=0;for(let a=0;a<r.length;a++)o=(o<<5)-o+r.charCodeAt(a),o|=0;return E.colors[Math.abs(o)%E.colors.length]}e(c,"selectColor"),E.selectColor=c;function E(r){let o,a=null,g,d;function N(...M){if(!N.enabled)return;const Y=N,J=Number(new Date),V=J-(o||J);Y.diff=V,Y.prev=o,Y.curr=J,o=J,M[0]=E.coerce(M[0]),typeof M[0]!="string"&&M.unshift("%O");let H=0;M[0]=M[0].replace(/%([a-zA-Z%])/g,(I,k)=>{if(I==="%%")return"%";H++;const i=E.formatters[k];if(typeof i=="function"){const F=M[H];I=i.call(Y,F),M.splice(H,1),H--}return I}),E.formatArgs.call(Y,M),(Y.log||E.log).apply(Y,M)}return e(N,"debug"),N.namespace=r,N.useColors=E.useColors(),N.color=E.selectColor(r),N.extend=t,N.destroy=E.destroy,Object.defineProperty(N,"enabled",{enumerable:!0,configurable:!1,get:e(()=>a!==null?a:(g!==E.namespaces&&(g=E.namespaces,d=E.enabled(r)),d),"get"),set:e(M=>{a=M},"set")}),typeof E.init=="function"&&E.init(N),N}e(E,"createDebug");function t(r,o){const a=E(this.namespace+(typeof o>"u"?":":o)+r);return a.log=this.log,a}e(t,"extend");function B(r){E.save(r),E.namespaces=r,E.names=[],E.skips=[];const o=(typeof r=="string"?r:"").trim().replace(" ",",").split(",").filter(Boolean);for(const a of o)a[0]==="-"?E.skips.push(a.slice(1)):E.names.push(a)}e(B,"enable");function f(r,o){let a=0,g=0,d=-1,N=0;for(;a<r.length;)if(g<o.length&&(o[g]===r[a]||o[g]==="*"))o[g]==="*"?(d=g,N=a,g++):(a++,g++);else if(d!==-1)g=d+1,N++,a=N;else return!1;for(;g<o.length&&o[g]==="*";)g++;return g===o.length}e(f,"matchesTemplate");function l(){const r=[...E.names,...E.skips.map(o=>"-"+o)].join(",");return E.enable(""),r}e(l,"disable");function Q(r){fo Line truncated
${M.format(Y)}
`.trim())}};e(_,"MockAgent");let V=_;return mockAgent=V,mockAgent}e(requireMockAgent,"requireMockAgent");var global,hasRequiredGlobal;function requireGlobal(){if(hasRequiredGlobal)return global;hasRequiredGlobal=1;const A=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:k}=requireErrors(),c=requireAgent();t()===void 0&&B(new c);function B(y){if(!y||typeof y.dispatch!="function")throw new k("Argument agent must implement Agent");Object.defineProperty(globalThis,A,{value:y,writable:!0,enumerable:!1,configurable:!1})}e(B,"setGlobalDispatcher");function t(){return globalThis[A]}return e(t,"getGlobalDispatcher"),global={setGlobalDispatcher:B,getGlobalDispatcher:t},global}e(requireGlobal,"requireGlobal");var decoratorHandler,hasRequiredDecoratorHandler;function requireDecoratorHandler(){var A,k;return hasRequiredDecoratorHandler||(hasRequiredDecoratorHandler=1,decoratorHandler=(k=class{constructor(B){SA(this,A);if(typeof B!="object"||B===null)throw new TypeError("handler must be an object");mA(this,A,B)}onConnect(...B){return Z(this,A).onConnect?.(...B)}onError(...B){return Z(this,A).onError?.(...B)}onUpgrade(...B){return Z(this,A).onUpgrade?.(...B)}onResponseStarted(...B){return Z(this,A).onResponseStarted?.(...B)}onHeaders(...B){return Z(this,A).onHeaders?.(...B)}onData(...B){return Z(this,A).onData?.(...B)}onComplete(...B){return Z(this,A).onComplete?.(...B)}onBodySent(...B){return Z(this,A).onBodySent?.(...B)}},A=new WeakMap,e(k,"DecoratorHandler"),k)),decoratorHandler}e(requireDecoratorHandler,"requireDecoratorHandler");var redirect,hasRequiredRedirect;function requireRedirect(){if(hasRequiredRedirect)return redirect;hasRequiredRedirect=1;const A=requireRedirectHandler();return redirect=e(k=>{const c=k?.maxRedirections;return B=>e(function(y,R){const{maxRedirections:F=c,...Q}=y;if(!F)return B(y,R);const D=new A(B,F,y,R);return B(Q,D)},"redirectInterceptor")},"redirect"),redirect}e(requireRedirect,"requireRedirect");var retry,hasRequiredRetry;function requireRetry(){if(hasRequiredRetry)return retry;hasRequiredRetry=1;const A=requireRetryHandler();return retry=e(k=>c=>e(function(t,y){return c(t,new A({...t,retryOptions:{...k,...t.retryOptions}},{handler:y,dispatch:c}))},"retryInterceptor"),"retry"),retry}e(requireRetry,"requireRetry");var dump,hasRequiredDump;function requireDump(){var R,F,Q,D,U,r,o,N,xe;if(hasRequiredDump)return dump;hasRequiredDump=1;const A=requireUtil$7(),{InvalidArgumentError:k,RequestAbortedError:c}=requireErrors(),B=requireDecoratorHandler(),I=class I extends B{constructor({maxSize:G},J){super(J);SA(this,N);SA(this,R,1024*1024);SA(this,F,null);SA(this,Q,!1);SA(this,D,!1);SA(this,U,0);SA(this,r,null);SA(this,o,null);if(G!=null&&(!Number.isFinite(G)||G<1))throw new k("maxSize must be a number greater than 0");mA(this,R,G??Z(this,R)),mA(this,o,J)}onConnect(G){mA(this,F,G),Z(this,o).onConnect(ee(this,N,xe).bind(this))}onHeaders(G,J,V,_){const M=A.parseHeaders(J)["content-length"];if(M!=null&&M>Z(this,R))throw new c(`Response size (${M}) larger than maxSize (${Z(this,R)})`);return Z(this,D)?!0:Z(this,o).onHeaders(G,J,V,_)}onError(G){Z(this,Q)||(G=Z(this,r)??G,Z(this,o).onError(G))}onData(G){return mA(this,U,Z(this,U)+G.length),Z(this,U)>=Z(this,R)&&(mA(this,Q,!0),Z(this,D)?Z(this,o).onError(Z(this,r)):Z(this,o).onComplete([])),!0}onComplete(G){if(!Z(this,Q)){if(Z(this,D)){Z(this,o).onError(this.reason);return}Z(this,o).onComplete(G)}}};R=new WeakMap,F=new WeakMap,Q=new WeakMap,D=new WeakMap,U=new WeakMap,r=new WeakMap,o=new WeakMap,N=new WeakSet,xe=e(function(G){mA(this,D,!0),mA(this,r,G)},"#customAbort"),e(I,"DumpHandler");let t=I;function y({maxSize:p}={maxSize:1024*1024}){return b=>e(function(J,V){const{dumpMaxSize:_=p}=J,q=new t({maxSize:_},V);return b(J,q)},"Intercept")}return e(y,"createDumpInterceptor"),dump=y,dump}e(requireDump,"requireDump");var dns,hasRequiredDns;function requireDns(){var Q,D,U,r,We,qe,I,p,b,G,J;if(hasRequiredDns)return dns;hasRequiredDns=1;const{isIP:A}=require$$0__default$2,{lookup:k}=require$$1__default$3,c=requireDecoratorHandler(),{InvalidArgumentError:B,InformationalError:t}=requireErrors(),y=Math.pow(2,31)-1,l=class l{constructor(q){SA(this,r);SA(this,Q,0);SA(this,D,0);SA(this,U,new Map);$A(this,"dualStack",!0);$A(this,"affinity",null);$A(this,"lookup",null);$A(this,"pick",null);mA(this,Q,q.maxTTL),mA(this,D,q.maxItems),this.dualStack=q.dualStack,this.affinity=q.affinity,this.lookup=q.lookup??ee(this,r,We),this.pick=q.pick??ee(this,r,qe)}get full(){return Z(this,U).size===Z(this,D)}runLookup(q,M,Y){const m=Z(this,U).get(q.hostname);if(m==null&&this.full){Y(null,q.origin);return}const f={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...M.dns,maxTTL:Z(this,Q),maxItems:Z(this,D)};if(m==null)this.lookup(q,f,(n,C)=>{if(n||C==null||C.length===0){Y(n??new t("No DNS entries found"));return}this.setRecords(q,C);const w=Z(this,U).get(q.hostname),S=this.pick(q,w,f.affinity);let x;typeof S.port=="number"?x=`:${S.port}`:q Line truncated
${p}`;break;case"retry":k(p)&&(N[I]=p);break;case"id":c(p)&&(N[I]=p);break;case"event":p.length>0&&(N[I]=p);break}}processEvent(o){o.retry&&k(o.retry)&&(this.state.reconnectionTime=parseInt(o.retry,10)),o.id&&c(o.id)&&(this.state.lastEventId=o.id),o.data!==void 0&&this.push({type:o.event||"message",options:{data:o.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};e(D,"EventSourceStream");let Q=D;return eventsourceStream={EventSourceStream:Q},eventsourceStream}e(requireEventsourceStream,"requireEventsourceStream");var eventsource,hasRequiredEventsource;function requireEventsource(){var V,_,q,M,Y,m,f,n,C,Ue,Me;if(hasRequiredEventsource)return eventsource;hasRequiredEventsource=1;const{pipeline:A}=Stream__default,{fetching:k}=requireFetch(),{makeRequest:c}=requireRequest(),{webidl:B}=requireWebidl(),{EventSourceStream:t}=requireEventsourceStream(),{parseMIMEType:y}=requireDataUrl(),{createFastMessageEvent:R}=requireEvents(),{isNetworkError:F}=requireResponse(),{delay:Q}=requireUtil(),{kEnumerableProperty:D}=requireUtil$7(),{environmentSettingsObject:U}=requireUtil$6();let r=!1;const o=3e3,N=0,l=1,I=2,p="anonymous",b="use-credentials",x=class x extends EventTarget{constructor(K,nA={}){super();SA(this,C);SA(this,V,{open:null,error:null,message:null});SA(this,_,null);SA(this,q,!1);SA(this,M,N);SA(this,Y,null);SA(this,m,null);SA(this,f);SA(this,n);B.util.markAsUncloneable(this);const iA="EventSource constructor";B.argumentLengthCheck(arguments,1,iA),r||(r=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),K=B.converters.USVString(K,iA,"url"),nA=B.converters.EventSourceInitDict(nA,iA,"eventSourceInitDict"),mA(this,f,nA.dispatcher),mA(this,n,{lastEventId:"",reconnectionTime:o});const uA=U;let RA;try{RA=new URL(K,uA.settingsObject.baseUrl),Z(this,n).origin=RA.origin}catch(pA){throw new DOMException(pA,"SyntaxError")}mA(this,_,RA.href);let IA=p;nA.withCredentials&&(IA=b,mA(this,q,!0));const CA={redirect:"follow",keepalive:!0,mode:"cors",credentials:IA==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};CA.client=U.settingsObject,CA.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],CA.cache="no-store",CA.initiator="other",CA.urlList=[new URL(Z(this,_))],mA(this,Y,c(CA)),ee(this,C,Ue).call(this)}get readyState(){return Z(this,M)}get url(){return Z(this,_)}get withCredentials(){return Z(this,q)}close(){B.brandCheck(this,x),Z(this,M)!==I&&(mA(this,M,I),Z(this,m).abort(),mA(this,Y,null))}get onopen(){return Z(this,V).open}set onopen(K){Z(this,V).open&&this.removeEventListener("open",Z(this,V).open),typeof K=="function"?(Z(this,V).open=K,this.addEventListener("open",K)):Z(this,V).open=null}get onmessage(){return Z(this,V).message}set onmessage(K){Z(this,V).message&&this.removeEventListener("message",Z(this,V).message),typeof K=="function"?(Z(this,V).message=K,this.addEventListener("message",K)):Z(this,V).message=null}get onerror(){return Z(this,V).error}set onerror(K){Z(this,V).error&&this.removeEventListener("error",Z(this,V).error),typeof K=="function"?(Z(this,V).error=K,this.addEventListener("error",K)):Z(this,V).error=null}};V=new WeakMap,_=new WeakMap,q=new WeakMap,M=new WeakMap,Y=new WeakMap,m=new WeakMap,f=new WeakMap,n=new WeakMap,C=new WeakSet,Ue=e(function(){if(Z(this,M)===I)return;mA(this,M,N);const K={request:Z(this,Y),dispatcher:Z(this,f)},nA=e(iA=>{F(iA)&&(this.dispatchEvent(new Event("error")),this.close()),ee(this,C,Me).call(this)},"processEventSourceEndOfBody");K.processResponseEndOfBody=nA,K.processResponse=iA=>{if(F(iA))if(iA.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{ee(this,C,Me).call(this);return}const uA=iA.headersList.get("content-type",!0),RA=uA!==null?y(uA):"failure",IA=RA!=="failure"&&RA.essence==="text/event-stream";if(iA.status!==200||IA===!1){this.close(),this.dispatchEvent(new Event("error"));return}mA(this,M,l),this.dispatchEvent(new Event("open")),Z(this,n).origin=iA.urlList[iA.urlList.length-1].origin;const CA=new t({eventSourceSettings:Z(this,n),push:e(pA=>{this.dispatchEvent(R(pA.type,pA.options))},"push")});A(iA.body.stream,CA,pA=>{pA?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},mA(this,m,k(K))},"#connect"),Me=e(async function(){Z(this,M)!==I&&(mA(this,M,N),this.dispatchEvent(new Event("error")),await Q(Z(this,n).reconnectionTime),Z(this,M)===N&&(Z(this,n).lastEventId.length&&Z(this,Y).headersList.set("last-event-id",Z(this,n).lastEventId,!0),ee(this,C,Ue).call(this)))},"#reconnect"),e(x,"EventSource");let G=x;const J={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:N,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:l,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:I,writable:!1}};return Object.defineProperties(G,J),Object.defineProperties(G.prototype,J),Object.defineProperties(G.prototype,{close:D Line truncated
`).some(l=>l.indexOf("(https.js:")!==-1||l.indexOf("node:https:")!==-1)}incrementSockets(o){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[o]||(this.sockets[o]=[]);const N=new y.Socket({writable:!1});return this.sockets[o].push(N),this.totalSocketCount++,N}decrementSockets(o,N){if(!this.sockets[o]||N===null)return;const l=this.sockets[o],I=l.indexOf(N);I!==-1&&(l.splice(I,1),this.totalSocketCount--,l.length===0&&delete this.sockets[o])}getName(o){return this.isSecureEndpoint(o)?F.Agent.prototype.getName.call(this,o):super.getName(o)}createSocket(o,N,l){const I={...N,secureEndpoint:this.isSecureEndpoint(N)},p=this.getName(I),b=this.incrementSockets(p);Promise.resolve().then(()=>this.connect(o,I)).then(G=>{if(this.decrementSockets(p,b),G instanceof R.Agent)try{return G.addRequest(o,I)}catch(J){return l(J)}this[Q].currentSocket=G,super.createSocket(o,N,l)},G=>{this.decrementSockets(p,b),l(G)})}createConnection(){const o=this[Q].currentSocket;if(this[Q].currentSocket=void 0,!o)throw new Error("No socket was returned in the `connect()` function");return o}get defaultPort(){return this[Q].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(o){this[Q]&&(this[Q].defaultPort=o)}get protocol(){return this[Q].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(o){this[Q]&&(this[Q].protocol=o)}};e(U,"Agent");let D=U;A.Agent=D}(dist$2)),dist$2}e(requireDist$2,"requireDist$2");var distExports$2=requireDist$2(),dist$1={},src={exports:{}},browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var A=1e3,k=A*60,c=k*60,B=c*24,t=B*7,y=B*365.25;ms=e(function(U,r){r=r||{};var o=typeof U;if(o==="string"&&U.length>0)return R(U);if(o==="number"&&isFinite(U))return r.long?Q(U):F(U);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(U))},"ms");function R(U){if(U=String(U),!(U.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(U);if(r){var o=parseFloat(r[1]),N=(r[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return o*y;case"weeks":case"week":case"w":return o*t;case"days":case"day":case"d":return o*B;case"hours":case"hour":case"hrs":case"hr":case"h":return o*c;case"minutes":case"minute":case"mins":case"min":case"m":return o*k;case"seconds":case"second":case"secs":case"sec":case"s":return o*A;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}e(R,"parse");function F(U){var r=Math.abs(U);return r>=B?Math.round(U/B)+"d":r>=c?Math.round(U/c)+"h":r>=k?Math.round(U/k)+"m":r>=A?Math.round(U/A)+"s":U+"ms"}e(F,"fmtShort");function Q(U){var r=Math.abs(U);return r>=B?D(U,r,B,"day"):r>=c?D(U,r,c,"hour"):r>=k?D(U,r,k,"minute"):r>=A?D(U,r,A,"second"):U+" ms"}e(Q,"fmtLong");function D(U,r,o,N){var l=r>=o*1.5;return Math.round(U/o)+" "+N+(l?"s":"")}return e(D,"plural"),ms}e(requireMs,"requireMs");var common,hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;function A(k){B.debug=B,B.default=B,B.coerce=D,B.disable=F,B.enable=y,B.enabled=Q,B.humanize=requireMs(),B.destroy=U,Object.keys(k).forEach(r=>{B[r]=k[r]}),B.names=[],B.skips=[],B.formatters={};function c(r){let o=0;for(let N=0;N<r.length;N++)o=(o<<5)-o+r.charCodeAt(N),o|=0;return B.colors[Math.abs(o)%B.colors.length]}e(c,"selectColor"),B.selectColor=c;function B(r){let o,N=null,l,I;function p(...b){if(!p.enabled)return;const G=p,J=Number(new Date),V=J-(o||J);G.diff=V,G.prev=o,G.curr=J,o=J,b[0]=B.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let _=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(M,Y)=>{if(M==="%%")return"%";_++;const m=B.formatters[Y];if(typeof m=="function"){const f=b[_];M=m.call(G,f),b.splice(_,1),_--}return M}),B.formatArgs.call(G,b),(G.log||B.log).apply(G,b)}return e(p,"debug"),p.namespace=r,p.useColors=B.useColors(),p.color=B.selectColor(r),p.extend=t,p.destroy=B.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:e(()=>N!==null?N:(l!==B.namespaces&&(l=B.namespaces,I=B.enabled(r)),I),"get"),set:e(b=>{N=b},"set")}),typeof B.init=="function"&&B.init(p),p}e(B,"createDebug");function t(r,o){const N=B(this.namespace+(typeof o>"u"?":":o)+r);return N.log=this.log,N}e(t,"extend");function y(r){B.save(r),B.namespaces=r,B.names=[],B.skips=[];const o=(typeof r=="string"?r:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const N of o)N[0]==="-"?B.skips.push(N.slice(1)):B.names.push(N)}e(y,"enable");function R(r,o){let N=0,l=0,I=-1,p=0;for(;N<r.length;)if(l<o.length&&(o[l]===r[N]||o[l]==="*"))o[l]==="*"?(I=l,p=N,l++):(N++,l++);else if(I!==-1)l=I+1,p++,N=p;else return!1;for(;l<o.length&&o[l]==="*";)l++;return l===o.length}e(R,"matchesTemplate");function F(){const r=[...B.names,...B.skips.map(o=>"-"+o)].join(",");return B.enable(""),r}e(F,"disable");function Q(r){for(const o of B.skips)if(R(r, Line truncated
`).join(`
`+M),o.push(N+"m+"+A.exports.humanize(this.diff)+"\x1B[0m")}else o[0]=f()+a+" "+o[0]}e(B,"formatArgs");function f(){return p.inspectOpts.hideDate?"":new Date().toISOString()+" "}e(f,"getDate");function l(...o){return process.stderr.write(E.formatWithOptions(p.inspectOpts,...o)+`
`)}e(l,"log");function Q(o){o?process.env.DEBUG=o:delete process.env.DEBUG}e(Q,"save");function u(){return process.env.DEBUG}e(u,"load");function n(o){o.inspectOpts={};const a=Object.keys(p.inspectOpts);for(let g=0;g<a.length;g++)o.inspectOpts[a[g]]=p.inspectOpts[a[g]]}e(n,"init"),A.exports=requireCommon()(p);const{formatters:r}=A.exports;r.o=function(o){return this.inspectOpts.colors=this.useColors,E.inspect(o,this.inspectOpts).split(`
`).map(a=>a.trim()).join(" ")},r.O=function(o){return this.inspectOpts.colors=this.useColors,E.inspect(o,this.inspectOpts)}}(node,node.exports)),node.exports}e(requireNode,"requireNode");var hasRequiredSrc;function requireSrc(){return hasRequiredSrc||(hasRequiredSrc=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?src.exports=requireBrowser():src.exports=requireNode()),src.exports}e(requireSrc,"requireSrc");var hasRequiredDist$1;function requireDist$1(){if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=1;var A=dist$1.__createBinding||(Object.create?function(a,g,d,N){N===void 0&&(N=d);var M=Object.getOwnPropertyDescriptor(g,d);(!M||("get"in M?!g.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:e(function(){return g[d]},"get")}),Object.defineProperty(a,N,M)}:function(a,g,d,N){N===void 0&&(N=d),a[N]=g[d]}),p=dist$1.__setModuleDefault||(Object.create?function(a,g){Object.defineProperty(a,"default",{enumerable:!0,value:g})}:function(a,g){a.default=g}),c=dist$1.__importStar||function(a){if(a&&a.__esModule)return a;var g={};if(a!=null)for(var d in a)d!=="default"&&Object.prototype.hasOwnProperty.call(a,d)&&A(g,a,d);return p(g,a),g},E=dist$1.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(dist$1,"__esModule",{value:!0}),dist$1.HttpProxyAgent=void 0;const t=c(require$$0__default$6),B=c(require$$1__default$7),f=E(requireSrc()),l=require$$3__default,Q=requireDist$2(),u=require$$5__default$4,n=(0,f.default)("http-proxy-agent");class r extends Q.Agent{static{e(this,"HttpProxyAgent")}constructor(g,d){super(d),this.proxy=typeof g=="string"?new u.URL(g):g,this.proxyHeaders=d?.headers??{},n("Creating new HttpProxyAgent instance: %o",this.proxy.href);const N=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),M=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...d?o(d,"headers"):null,host:N,port:M}}addRequest(g,d){g._header=null,this.setRequestProps(g,d),super.addRequest(g,d)}setRequestProps(g,d){const{proxy:N}=this,M=d.secureEndpoint?"https:":"http:",Y=g.getHeader("host")||"localhost",J=`${M}//${Y}`,V=new u.URL(g.path,J);d.port!==80&&(V.port=String(d.port)),g.path=String(V);const H=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(N.username||N.password){const h=`${decodeURIComponent(N.username)}:${decodeURIComponent(N.password)}`;H["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}H["Proxy-Connection"]||(H["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const h of Object.keys(H)){const I=H[h];I&&g.setHeader(h,I)}}async connect(g,d){g._header=null,g.path.includes("://")||this.setRequestProps(g,d);let N,M;n("Regenerating stored HTTP header string for request"),g._implicitHeader(),g.outputData&&g.outputData.length>0&&(n("Patching connection write() output buffer with updated header"),N=g.outputData[0].data,M=N.indexOf(`\r
`+b),o.push(p+"m+"+A.exports.humanize(this.diff)+"\x1B[0m")}else o[0]=R()+N+" "+o[0]}e(y,"formatArgs");function R(){return k.inspectOpts.hideDate?"":new Date().toISOString()+" "}e(R,"getDate");function F(...o){return process.stderr.write(B.formatWithOptions(k.inspectOpts,...o)+`
`)}e(F,"log");function Q(o){o?process.env.DEBUG=o:delete process.env.DEBUG}e(Q,"save");function D(){return process.env.DEBUG}e(D,"load");function U(o){o.inspectOpts={};const N=Object.keys(k.inspectOpts);for(let l=0;l<N.length;l++)o.inspectOpts[N[l]]=k.inspectOpts[N[l]]}e(U,"init"),A.exports=requireCommon()(k);const{formatters:r}=A.exports;r.o=function(o){return this.inspectOpts.colors=this.useColors,B.inspect(o,this.inspectOpts).split(`
`).map(N=>N.trim()).join(" ")},r.O=function(o){return this.inspectOpts.colors=this.useColors,B.inspect(o,this.inspectOpts)}}(node,node.exports)),node.exports}e(requireNode,"requireNode");var hasRequiredSrc;function requireSrc(){return hasRequiredSrc||(hasRequiredSrc=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?src.exports=requireBrowser():src.exports=requireNode()),src.exports}e(requireSrc,"requireSrc");var hasRequiredDist$1;function requireDist$1(){if(hasRequiredDist$1)return dist$1;hasRequiredDist$1=1;var A=dist$1&&dist$1.__createBinding||(Object.create?function(l,I,p,b){b===void 0&&(b=p);var G=Object.getOwnPropertyDescriptor(I,p);(!G||("get"in G?!I.__esModule:G.writable||G.configurable))&&(G={enumerable:!0,get:e(function(){return I[p]},"get")}),Object.defineProperty(l,b,G)}:function(l,I,p,b){b===void 0&&(b=p),l[b]=I[p]}),k=dist$1&&dist$1.__setModuleDefault||(Object.create?function(l,I){Object.defineProperty(l,"default",{enumerable:!0,value:I})}:function(l,I){l.default=I}),c=dist$1&&dist$1.__importStar||function(l){if(l&&l.__esModule)return l;var I={};if(l!=null)for(var p in l)p!=="default"&&Object.prototype.hasOwnProperty.call(l,p)&&A(I,l,p);return k(I,l),I},B=dist$1&&dist$1.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(dist$1,"__esModule",{value:!0}),dist$1.HttpProxyAgent=void 0;const t=c(require$$0__default$6),y=c(require$$1__default$7),R=B(requireSrc()),F=require$$3__default,Q=requireDist$2(),D=require$$5__default$4,U=(0,R.default)("http-proxy-agent"),N=class N extends Q.Agent{constructor(I,p){super(p),this.proxy=typeof I=="string"?new D.URL(I):I,this.proxyHeaders=p?.headers??{},U("Creating new HttpProxyAgent instance: %o",this.proxy.href);const b=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),G=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...p?o(p,"headers"):null,host:b,port:G}}addRequest(I,p){I._header=null,this.setRequestProps(I,p),super.addRequest(I,p)}setRequestProps(I,p){const{proxy:b}=this,G=p.secureEndpoint?"https:":"http:",J=I.getHeader("host")||"localhost",V=`${G}//${J}`,_=new D.URL(I.path,V);p.port!==80&&(_.port=String(p.port)),I.path=String(_);const q=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(b.username||b.password){const M=`${decodeURIComponent(b.username)}:${decodeURIComponent(b.password)}`;q["Proxy-Authorization"]=`Basic ${Buffer.from(M).toString("base64")}`}q["Proxy-Connection"]||(q["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const M of Object.keys(q)){const Y=q[M];Y&&I.setHeader(M,Y)}}async connect(I,p){I._header=null,I.path.includes("://")||this.setRequestProps(I,p);let b,G;U("Regenerating stored HTTP header string for request"),I._implicitHeader(),I.outputData&&I.outputData.length>0&&(U("Patching connection write() output buffer with updated header"),b=I.outputData[0].data,G=b.indexOf(`\r
\r
`)+4,g.outputData[0].data=g._header+N.substring(M),n("Output buffer: %o",g.outputData[0].data));let Y;return this.proxy.protocol==="https:"?(n("Creating `tls.Socket`: %o",this.connectOpts),Y=B.connect(this.connectOpts)):(n("Creating `net.Socket`: %o",this.connectOpts),Y=t.connect(this.connectOpts)),await(0,l.once)(Y,"connect"),Y}}r.protocols=["http","https"],dist$1.HttpProxyAgent=r;function o(a,...g){const d={};let N;for(N in a)g.includes(N)||(d[N]=a[N]);return d}return e(o,"omit"),dist$1}e(requireDist$1,"requireDist$1");var distExports$1=requireDist$1(),dist={},parseProxyResponse={},hasRequiredParseProxyResponse;function requireParseProxyResponse(){if(hasRequiredParseProxyResponse)return parseProxyResponse;hasRequiredParseProxyResponse=1;var A=parseProxyResponse.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(parseProxyResponse,"__esModule",{value:!0}),parseProxyResponse.parseProxyResponse=void 0;const c=(0,A(requireSrc()).default)("https-proxy-agent:parse-proxy-response");function E(t){return new Promise((B,f)=>{let l=0;const Q=[];function u(){const g=t.read();g?a(g):t.once("readable",u)}e(u,"read");function n(){t.removeListener("end",r),t.removeListener("error",o),t.removeListener("readable",u)}e(n,"cleanup");function r(){n(),c("onend"),f(new Error("Proxy connection ended before receiving CONNECT response"))}e(r,"onend");function o(g){n(),c("onerror %o",g),f(g)}e(o,"onerror");function a(g){Q.push(g),l+=g.length;const d=Buffer.concat(Q,l),N=d.indexOf(`\r
`)+4,I.outputData[0].data=I._header+b.substring(G),U("Output buffer: %o",I.outputData[0].data));let J;return this.proxy.protocol==="https:"?(U("Creating `tls.Socket`: %o",this.connectOpts),J=y.connect(this.connectOpts)):(U("Creating `net.Socket`: %o",this.connectOpts),J=t.connect(this.connectOpts)),await(0,F.once)(J,"connect"),J}};e(N,"HttpProxyAgent");let r=N;r.protocols=["http","https"],dist$1.HttpProxyAgent=r;function o(l,...I){const p={};let b;for(b in l)I.includes(b)||(p[b]=l[b]);return p}return e(o,"omit"),dist$1}e(requireDist$1,"requireDist$1");var distExports$1=requireDist$1(),dist={},parseProxyResponse={},hasRequiredParseProxyResponse;function requireParseProxyResponse(){if(hasRequiredParseProxyResponse)return parseProxyResponse;hasRequiredParseProxyResponse=1;var A=parseProxyResponse&&parseProxyResponse.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(parseProxyResponse,"__esModule",{value:!0}),parseProxyResponse.parseProxyResponse=void 0;const c=(0,A(requireSrc()).default)("https-proxy-agent:parse-proxy-response");function B(t){return new Promise((y,R)=>{let F=0;const Q=[];function D(){const l=t.read();l?N(l):t.once("readable",D)}e(D,"read");function U(){t.removeListener("end",r),t.removeListener("error",o),t.removeListener("readable",D)}e(U,"cleanup");function r(){U(),c("onend"),R(new Error("Proxy connection ended before receiving CONNECT response"))}e(r,"onend");function o(l){U(),c("onerror %o",l),R(l)}e(o,"onerror");function N(l){Q.push(l),F+=l.length;const I=Buffer.concat(Q,F),p=I.indexOf(`\r
\r
`);if(N===-1){c("have not received end of HTTP headers yet..."),u();return}const M=d.slice(0,N).toString("ascii").split(`\r
`),Y=M.shift();if(!Y)return t.destroy(),f(new Error("No header received from proxy CONNECT response"));const J=Y.split(" "),V=+J[1],H=J.slice(2).join(" "),h={};for(const I of M){if(!I)continue;const k=I.indexOf(":");if(k===-1)return t.destroy(),f(new Error(`Invalid header from proxy CONNECT response: "${I}"`));const i=I.slice(0,k).toLowerCase(),F=I.slice(k+1).trimStart(),m=h[i];typeof m=="string"?h[i]=[m,F]:Array.isArray(m)?m.push(F):h[i]=F}c("got proxy server response: %o %o",Y,h),n(),B({connect:{statusCode:V,statusText:H,headers:h},buffered:d})}e(a,"ondata"),t.on("error",o),t.on("end",r),u()})}return e(E,"parseProxyResponse$1"),parseProxyResponse.parseProxyResponse=E,parseProxyResponse}e(requireParseProxyResponse,"requireParseProxyResponse");var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1;var A=dist.__createBinding||(Object.create?function(N,M,Y,J){J===void 0&&(J=Y);var V=Object.getOwnPropertyDescriptor(M,Y);(!V||("get"in V?!M.__esModule:V.writable||V.configurable))&&(V={enumerable:!0,get:e(function(){return M[Y]},"get")}),Object.defineProperty(N,J,V)}:function(N,M,Y,J){J===void 0&&(J=Y),N[J]=M[Y]}),p=dist.__setModuleDefault||(Object.create?function(N,M){Object.defineProperty(N,"default",{enumerable:!0,value:M})}:function(N,M){N.default=M}),c=dist.__importStar||function(N){if(N&&N.__esModule)return N;var M={};if(N!=null)for(var Y in N)Y!=="default"&&Object.prototype.hasOwnProperty.call(N,Y)&&A(M,N,Y);return p(M,N),M},E=dist.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(dist,"__esModule",{value:!0}),dist.HttpsProxyAgent=void 0;const t=c(require$$0__default$6),B=c(require$$1__default$7),f=E(require$$2__default),l=E(requireSrc()),Q=requireDist$2(),u=require$$5__default$4,n=requireParseProxyResponse(),r=(0,l.default)("https-proxy-agent"),o=e(N=>N.servername===void 0&&N.host&&!t.isIP(N.host)?{...N,servername:N.host}:N,"setServernameFromNonIpHost");class a extends Q.Agent{static{e(this,"HttpsProxyAgent")}constructor(M,Y){super(Y),this.options={path:void 0},this.proxy=typeof M=="string"?new u.URL(M):M,this.proxyHeaders=Y?.headers??{},r("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const J=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),V=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...Y?d(Y,"headers"):null,host:J,port:V}}async connect(M,Y){const{proxy:J}=this;if(!Y.host)throw new TypeError('No "host" provided');let V;J.protocol==="https:"?(r("Creating `tls.Socket`: %o",this.connectOpts),V=B.connect(o(this.connectOpts))):(r("Creating `net.Socket`: %o",this.connectOpts),V=t.connect(this.connectOpts));const H=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},h=t.isIPv6(Y.host)?`[${Y.host}]`:Y.host;let I=`CONNECT ${h}:${Y.port} HTTP/1.1\r
`;if(J.username||J.password){const D=`${decodeURIComponent(J.username)}:${decodeURIComponent(J.password)}`;H["Proxy-Authorization"]=`Basic ${Buffer.from(D).toString("base64")}`}H.Host=`${h}:${Y.port}`,H["Proxy-Connection"]||(H["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const D of Object.keys(H))I+=`${D}: ${H[D]}\r
`;const k=(0,n.parseProxyResponse)(V);V.write(`${I}\r
`);const{connect:i,buffered:F}=await k;if(M.emit("proxyConnect",i),this.emit("proxyConnect",i,M),i.statusCode===200)return M.once("socket",g),Y.secureEndpoint?(r("Upgrading socket connection to TLS"),B.connect({...d(o(Y),"host","path","port"),socket:V})):V;V.destroy();const m=new t.Socket({writable:!1});return m.readable=!0,M.once("socket",D=>{r("Replaying proxy buffer for failed request"),(0,f.default)(D.listenerCount("data")>0),D.push(F),D.push(null)}),m}}a.protocols=["http","https"],dist.HttpsProxyAgent=a;function g(N){N.resume()}e(g,"resume");function d(N,...M){const Y={};let J;for(J in N)M.includes(J)||(Y[J]=N[J]);return Y}return e(d,"omit"),dist}e(requireDist,"requireDist");var distExports=requireDist(),x=Object.defineProperty,s=e((A,p)=>x(A,"name",{value:p,configurable:!0}),"s");function w(...A){process.env.DEBUG&&console.debug("[node-fetch-native] [proxy]",...A)}e(w,"w"),s(w,"debug");function y(A,p){if(!p)return!1;for(const c of p)if(c===A||c[0]==="."&&A.endsWith(c.slice(1)))return!0;return!1}e(y,"y"),s(y,"bypassProxy");class v extends undiciExports.ProxyAgent{static{e(this,"v")}constructor(p){super(p),this._options=p,this._agent=new undiciExports.Agent}static{s(this,"UndiciProxyAgent")}_agent;dispatch(p,c){const E=new require$$1$1.URL(p.origin).hostname;return y(E,this._options.noProxy)?(w(`Bypassing proxy for: ${E}`),this._agent.dispatch(p,c)):super.dispatch(p,c)}}const U=["http","https"],C={http:[distExports$1.HttpProxyAgent,distExports.HttpsProxyAgent],https:[distExports$1.HttpProxyAgent,distExports.HttpsProxyAgent]};function R(A){return U.includes(A)}e(R,"R"),s(R,"isValidProtocol");class b extends distExports$2.Agent{static{e(this,"b")}constructor(p){super({}),this._options=p,this.httpAgent=new http__namespace.Agent({}),this.httpsAgent=new https__namespace.Agent({})}static{s(this,"NodeProxyAgent")}cache=new Map;httpAgent;httpsAgent;connect(p,c){const E=p.getHeader("upgrade")==="websocket",t=c.secureEndpoint?E?"wss:":"https:":E?"ws:":"http:",B=p.getHeader("host");if(y(B,this._options.noProxy))return c.secureEndpoint?this.httpsAgent:this.httpAgent;const f=`${t}+${this._options.uri}`;let l=this.cache.get(f);if(!l){const Q=new require$$1$1.URL(this._options.uri).protocol.replace(":","");if(!R(Q))throw new Error(`Unsupported protocol for proxy URL: ${this._options.uri}`);const u=C[Q][c.secureEndpoint||E?1:0];l=new u(this._options.uri,this._options),this.cache.set(f,l)}return l}destroy(){for(const p of this.cache.values())p.destroy();super.destroy()}}function createProxy(A={}){const p=A.url||process.env.https_proxy||process.env.http_proxy||process.env.HTTPS_PROXY||process.env.HTTP_PROXY;if(!p)return{agent:void 0,dispatcher:void 0};const c=A.noProxy||process.env.no_proxy||process.env.NO_PROXY,E=typeof c=="string"?c.split(","):c,t=new b({uri:p,noProxy:E}),B=new v({uri:p,noProxy:E});return{agent:t,dispatcher:B}}e(createProxy,"createProxy"),s(createProxy,"createProxy");function createFetch(A={}){const p=createProxy(A);return(c,E)=>nodeFetchNative.fetch(c,{...p,...E})}e(createFetch,"createFetch"),s(createFetch,"createFetch");const fetch=createFetch({});exports.createFetch=createFetch,exports.createProxy=createProxy,exports.fetch=fetch;
`);if(p===-1){c("have not received end of HTTP headers yet..."),D();return}const b=I.slice(0,p).toString("ascii").split(`\r
`),G=b.shift();if(!G)return t.destroy(),R(new Error("No header received from proxy CONNECT response"));const J=G.split(" "),V=+J[1],_=J.slice(2).join(" "),q={};for(const M of b){if(!M)continue;const Y=M.indexOf(":");if(Y===-1)return t.destroy(),R(new Error(`Invalid header from proxy CONNECT response: "${M}"`));const m=M.slice(0,Y).toLowerCase(),f=M.slice(Y+1).trimStart(),n=q[m];typeof n=="string"?q[m]=[n,f]:Array.isArray(n)?n.push(f):q[m]=f}c("got proxy server response: %o %o",G,q),U(),y({connect:{statusCode:V,statusText:_,headers:q},buffered:I})}e(N,"ondata"),t.on("error",o),t.on("end",r),D()})}return e(B,"parseProxyResponse$1"),parseProxyResponse.parseProxyResponse=B,parseProxyResponse}e(requireParseProxyResponse,"requireParseProxyResponse");var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1;var A=dist&&dist.__createBinding||(Object.create?function(b,G,J,V){V===void 0&&(V=J);var _=Object.getOwnPropertyDescriptor(G,J);(!_||("get"in _?!G.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:e(function(){return G[J]},"get")}),Object.defineProperty(b,V,_)}:function(b,G,J,V){V===void 0&&(V=J),b[V]=G[J]}),k=dist&&dist.__setModuleDefault||(Object.create?function(b,G){Object.defineProperty(b,"default",{enumerable:!0,value:G})}:function(b,G){b.default=G}),c=dist&&dist.__importStar||function(b){if(b&&b.__esModule)return b;var G={};if(b!=null)for(var J in b)J!=="default"&&Object.prototype.hasOwnProperty.call(b,J)&&A(G,b,J);return k(G,b),G},B=dist&&dist.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(dist,"__esModule",{value:!0}),dist.HttpsProxyAgent=void 0;const t=c(require$$0__default$6),y=c(require$$1__default$7),R=B(require$$2__default),F=B(requireSrc()),Q=requireDist$2(),D=require$$5__default$4,U=requireParseProxyResponse(),r=(0,F.default)("https-proxy-agent"),o=e(b=>b.servername===void 0&&b.host&&!t.isIP(b.host)?{...b,servername:b.host}:b,"setServernameFromNonIpHost"),p=class p extends Q.Agent{constructor(G,J){super(J),this.options={path:void 0},this.proxy=typeof G=="string"?new D.URL(G):G,this.proxyHeaders=J?.headers??{},r("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const V=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),_=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?I(J,"headers"):null,host:V,port:_}}async connect(G,J){const{proxy:V}=this;if(!J.host)throw new TypeError('No "host" provided');let _;V.protocol==="https:"?(r("Creating `tls.Socket`: %o",this.connectOpts),_=y.connect(o(this.connectOpts))):(r("Creating `net.Socket`: %o",this.connectOpts),_=t.connect(this.connectOpts));const q=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},M=t.isIPv6(J.host)?`[${J.host}]`:J.host;let Y=`CONNECT ${M}:${J.port} HTTP/1.1\r
`;if(V.username||V.password){const w=`${decodeURIComponent(V.username)}:${decodeURIComponent(V.password)}`;q["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}q.Host=`${M}:${J.port}`,q["Proxy-Connection"]||(q["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const w of Object.keys(q))Y+=`${w}: ${q[w]}\r
`;const m=(0,U.parseProxyResponse)(_);_.write(`${Y}\r
`);const{connect:f,buffered:n}=await m;if(G.emit("proxyConnect",f),this.emit("proxyConnect",f,G),f.statusCode===200)return G.once("socket",l),J.secureEndpoint?(r("Upgrading socket connection to TLS"),y.connect({...I(o(J),"host","path","port"),socket:_})):_;_.destroy();const C=new t.Socket({writable:!1});return C.readable=!0,G.once("socket",w=>{r("Replaying proxy buffer for failed request"),(0,R.default)(w.listenerCount("data")>0),w.push(n),w.push(null)}),C}};e(p,"HttpsProxyAgent");let N=p;N.protocols=["http","https"],dist.HttpsProxyAgent=N;function l(b){b.resume()}e(l,"resume");function I(b,...G){const J={};let V;for(V in b)G.includes(V)||(J[V]=b[V]);return J}return e(I,"omit"),dist}e(requireDist,"requireDist");var distExports=requireDist(),d=Object.defineProperty,O=e((A,k,c)=>k in A?d(A,k,{enumerable:!0,configurable:!0,writable:!0,value:c}):A[k]=c,"O"),s=e((A,k)=>d(A,"name",{value:k,configurable:!0}),"s"),i=e((A,k,c)=>O(A,typeof k!="symbol"?k+"":k,c),"i");function H(...A){process.env.DEBUG&&console.debug("[node-fetch-native] [proxy]",...A)}e(H,"H"),s(H,"debug");function P(A,k){if(!k)return!1;for(const c of k)if(c===A||c[0]==="."&&A.endsWith(c.slice(1)))return!0;return!1}e(P,"P"),s(P,"bypassProxy");const g=(fe=class extends undiciExports.ProxyAgent{constructor(k){super(k),this._options=k,i(this,"_agent"),this._agent=new undiciExports.Agent}dispatch(k,c){const B=new require$$1$1.URL(k.origin).hostname;return P(B,this._options.noProxy)?(H(`Bypassing proxy for: ${B}`),this._agent.dispatch(k,c)):super.dispatch(k,c)}},e(fe,"g"),fe);s(g,"UndiciProxyAgent");let h=g;const T=["http","https"],E={http:[distExports$1.HttpProxyAgent,distExports.HttpsProxyAgent],https:[distExports$1.HttpProxyAgent,distExports.HttpsProxyAgent]};function L(A){return T.includes(A)}e(L,"L"),s(L,"isValidProtocol");const u=(de=class extends distExports$2.Agent{constructor(k){super({}),this._options=k,i(this,"cache",new Map),i(this,"httpAgent"),i(this,"httpsAgent"),this.httpAgent=new http__namespace.Agent({}),this.httpsAgent=new https__namespace.Agent({})}connect(k,c){const B=k.getHeader("upgrade")==="websocket",t=c.secureEndpoint?B?"wss:":"https:":B?"ws:":"http:",y=k.getHeader("host");if(P(y,this._options.noProxy))return c.secureEndpoint?this.httpsAgent:this.httpAgent;const R=`${t}+${this._options.uri}`;let F=this.cache.get(R);if(!F){const Q=new require$$1$1.URL(this._options.uri).protocol.replace(":","");if(!L(Q))throw new Error(`Unsupported protocol for proxy URL: ${this._options.uri}`);const D=E[Q][c.secureEndpoint||B?1:0];F=new D(this._options.uri,this._options),this.cache.set(R,F)}return F}destroy(){for(const k of this.cache.values())k.destroy();super.destroy()}},e(de,"u"),de);s(u,"NodeProxyAgent");let a=u;function createProxy(A={}){const k=A.url||process.env.https_proxy||process.env.http_proxy||process.env.HTTPS_PROXY||process.env.HTTP_PROXY;if(!k)return{agent:void 0,dispatcher:void 0};const c=A.noProxy||process.env.no_proxy||process.env.NO_PROXY,B=typeof c=="string"?c.split(","):c,t=new a({uri:k,noProxy:B}),y=new h({uri:k,noProxy:B});return{agent:t,dispatcher:y}}e(createProxy,"createProxy"),s(createProxy,"createProxy");function createFetch(A={}){const k=createProxy(A);return(c,B)=>nodeFetchNative.fetch(c,{...k,...B})}e(createFetch,"createFetch"),s(createFetch,"createFetch");const fetch=createFetch({});exports.createFetch=createFetch,exports.createProxy=createProxy,exports.fetch=fetch;
/***/ }),
@@ -32865,7 +32995,8 @@ var NON_VARIABLE_OPTIONS = [
"headers",
"request",
"query",
"mediaType"
"mediaType",
"operationName"
];
var FORBIDDEN_VARIABLE_OPTIONS = ["query", "method", "url"];
var GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/;
@@ -33000,7 +33131,7 @@ var createTokenAuth = function createTokenAuth2(token) {
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
const version_VERSION = "6.1.4";
const version_VERSION = "6.1.6";
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
@@ -33014,6 +33145,21 @@ const noop = () => {
};
const consoleWarn = console.warn.bind(console);
const consoleError = console.error.bind(console);
function createLogger(logger = {}) {
if (typeof logger.debug !== "function") {
logger.debug = noop;
}
if (typeof logger.info !== "function") {
logger.info = noop;
}
if (typeof logger.warn !== "function") {
logger.warn = consoleWarn;
}
if (typeof logger.error !== "function") {
logger.error = consoleError;
}
return logger;
}
const userAgentTrail = `octokit-core.js/${version_VERSION} ${getUserAgent()}`;
class Octokit {
static VERSION = version_VERSION;
@@ -33081,15 +33227,7 @@ class Octokit {
}
this.request = request.defaults(requestDefaults);
this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
this.log = Object.assign(
{
debug: noop,
info: noop,
warn: consoleWarn,
error: consoleError
},
options.log
);
this.log = createLogger(options.log);
this.hook = hook;
if (!options.authStrategy) {
if (!options.auth) {
@@ -33285,8 +33423,10 @@ var paginatingEndpoints = [
"GET /notifications",
"GET /organizations",
"GET /orgs/{org}/actions/cache/usage-by-repository",
"GET /orgs/{org}/actions/hosted-runners",
"GET /orgs/{org}/actions/permissions/repositories",
"GET /orgs/{org}/actions/runner-groups",
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners",
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories",
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners",
"GET /orgs/{org}/actions/runners",
@@ -33339,8 +33479,10 @@ var paginatingEndpoints = [
"GET /orgs/{org}/repos",
"GET /orgs/{org}/rulesets",
"GET /orgs/{org}/rulesets/rule-suites",
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
"GET /orgs/{org}/secret-scanning/alerts",
"GET /orgs/{org}/security-advisories",
"GET /orgs/{org}/settings/network-configurations",
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
"GET /orgs/{org}/team/{team_slug}/copilot/usage",
"GET /orgs/{org}/teams",
@@ -33437,6 +33579,7 @@ var paginatingEndpoints = [
"GET /repos/{owner}/{repo}/rules/branches/{branch}",
"GET /repos/{owner}/{repo}/rulesets",
"GET /repos/{owner}/{repo}/rulesets/rule-suites",
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history",
"GET /repos/{owner}/{repo}/secret-scanning/alerts",
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
"GET /repos/{owner}/{repo}/security-advisories",
@@ -33548,7 +33691,7 @@ __nccwpck_require__.d(__webpack_exports__, {
});
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
const VERSION = "13.3.1";
const VERSION = "13.5.0";
//# sourceMappingURL=version.js.map
@@ -33579,6 +33722,7 @@ const Endpoints = {
createEnvironmentVariable: [
"POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
],
createHostedRunnerForOrg: ["POST /orgs/{org}/actions/hosted-runners"],
createOrUpdateEnvironmentSecret: [
"PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
],
@@ -33616,6 +33760,9 @@ const Endpoints = {
deleteEnvironmentVariable: [
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
],
deleteHostedRunnerForOrg: [
"DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
],
deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"],
deleteOrgVariable: ["DELETE /orgs/{org}/actions/variables/{name}"],
deleteRepoSecret: [
@@ -33704,6 +33851,24 @@ const Endpoints = {
getGithubActionsPermissionsRepository: [
"GET /repos/{owner}/{repo}/actions/permissions"
],
getHostedRunnerForOrg: [
"GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
],
getHostedRunnersGithubOwnedImagesForOrg: [
"GET /orgs/{org}/actions/hosted-runners/images/github-owned"
],
getHostedRunnersLimitsForOrg: [
"GET /orgs/{org}/actions/hosted-runners/limits"
],
getHostedRunnersMachineSpecsForOrg: [
"GET /orgs/{org}/actions/hosted-runners/machine-sizes"
],
getHostedRunnersPartnerImagesForOrg: [
"GET /orgs/{org}/actions/hosted-runners/images/partner"
],
getHostedRunnersPlatformsForOrg: [
"GET /orgs/{org}/actions/hosted-runners/platforms"
],
getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],
getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"],
getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"],
@@ -33747,6 +33912,10 @@ const Endpoints = {
listEnvironmentVariables: [
"GET /repos/{owner}/{repo}/environments/{environment_name}/variables"
],
listGithubHostedRunnersInGroupForOrg: [
"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"
],
listHostedRunnersForOrg: ["GET /orgs/{org}/actions/hosted-runners"],
listJobsForWorkflowRun: [
"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"
],
@@ -33865,6 +34034,9 @@ const Endpoints = {
updateEnvironmentVariable: [
"PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"
],
updateHostedRunnerForOrg: [
"PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"
],
updateOrgVariable: ["PATCH /orgs/{org}/actions/variables/{name}"],
updateRepoVariable: [
"PATCH /repos/{owner}/{repo}/actions/variables/{name}"
@@ -34382,6 +34554,26 @@ const Endpoints = {
getAllTemplates: ["GET /gitignore/templates"],
getTemplate: ["GET /gitignore/templates/{name}"]
},
hostedCompute: {
createNetworkConfigurationForOrg: [
"POST /orgs/{org}/settings/network-configurations"
],
deleteNetworkConfigurationFromOrg: [
"DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"
],
getNetworkConfigurationForOrg: [
"GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"
],
getNetworkSettingsForOrg: [
"GET /orgs/{org}/settings/network-settings/{network_settings_id}"
],
listNetworkConfigurationsForOrg: [
"GET /orgs/{org}/settings/network-configurations"
],
updateNetworkConfigurationForOrg: [
"PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"
]
},
interactions: {
getRestrictionsForAuthenticatedUser: ["GET /user/interaction-limits"],
getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"],
@@ -34573,6 +34765,7 @@ const Endpoints = {
"PUT /orgs/{org}/outside_collaborators/{username}"
],
createInvitation: ["POST /orgs/{org}/invitations"],
createIssueType: ["POST /orgs/{org}/issue-types"],
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
createOrUpdateCustomPropertiesValuesForRepos: [
"PATCH /orgs/{org}/properties/values"
@@ -34582,6 +34775,7 @@ const Endpoints = {
],
createWebhook: ["POST /orgs/{org}/hooks"],
delete: ["DELETE /orgs/{org}"],
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
enableOrDisableSecurityProductOnAllOrgRepos: [
"POST /orgs/{org}/{security_product}/{enablement}",
@@ -34598,6 +34792,10 @@ const Endpoints = {
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
getOrgRole: ["GET /orgs/{org}/organization-roles/{role_id}"],
getOrgRulesetHistory: ["GET /orgs/{org}/rulesets/{ruleset_id}/history"],
getOrgRulesetVersion: [
"GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"
],
getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"],
getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"],
getWebhookDelivery: [
@@ -34612,6 +34810,7 @@ const Endpoints = {
listForAuthenticatedUser: ["GET /user/orgs"],
listForUser: ["GET /users/{username}/orgs"],
listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"],
listIssueTypes: ["GET /orgs/{org}/issue-types"],
listMembers: ["GET /orgs/{org}/members"],
listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"],
listOrgRoleTeams: ["GET /orgs/{org}/organization-roles/{role_id}/teams"],
@@ -34686,6 +34885,7 @@ const Endpoints = {
],
unblockUser: ["DELETE /orgs/{org}/blocks/{username}"],
update: ["PATCH /orgs/{org}"],
updateIssueType: ["PUT /orgs/{org}/issue-types/{issue_type_id}"],
updateMembershipForAuthenticatedUser: [
"PATCH /user/memberships/orgs/{org}"
],
@@ -34799,35 +34999,181 @@ const Endpoints = {
]
},
projects: {
addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}"],
createCard: ["POST /projects/columns/{column_id}/cards"],
createColumn: ["POST /projects/{project_id}/columns"],
createForAuthenticatedUser: ["POST /user/projects"],
createForOrg: ["POST /orgs/{org}/projects"],
createForRepo: ["POST /repos/{owner}/{repo}/projects"],
delete: ["DELETE /projects/{project_id}"],
deleteCard: ["DELETE /projects/columns/cards/{card_id}"],
deleteColumn: ["DELETE /projects/columns/{column_id}"],
get: ["GET /projects/{project_id}"],
getCard: ["GET /projects/columns/cards/{card_id}"],
getColumn: ["GET /projects/columns/{column_id}"],
addCollaborator: [
"PUT /projects/{project_id}/collaborators/{username}",
{},
{
deprecated: "octokit.rest.projects.addCollaborator() is deprecated, see https://docs.github.com/rest/projects/collaborators#add-project-collaborator"
}
],
createCard: [
"POST /projects/columns/{column_id}/cards",
{},
{
deprecated: "octokit.rest.projects.createCard() is deprecated, see https://docs.github.com/rest/projects/cards#create-a-project-card"
}
],
createColumn: [
"POST /projects/{project_id}/columns",
{},
{
deprecated: "octokit.rest.projects.createColumn() is deprecated, see https://docs.github.com/rest/projects/columns#create-a-project-column"
}
],
createForAuthenticatedUser: [
"POST /user/projects",
{},
{
deprecated: "octokit.rest.projects.createForAuthenticatedUser() is deprecated, see https://docs.github.com/rest/projects/projects#create-a-user-project"
}
],
createForOrg: [
"POST /orgs/{org}/projects",
{},
{
deprecated: "octokit.rest.projects.createForOrg() is deprecated, see https://docs.github.com/rest/projects/projects#create-an-organization-project"
}
],
createForRepo: [
"POST /repos/{owner}/{repo}/projects",
{},
{
deprecated: "octokit.rest.projects.createForRepo() is deprecated, see https://docs.github.com/rest/projects/projects#create-a-repository-project"
}
],
delete: [
"DELETE /projects/{project_id}",
{},
{
deprecated: "octokit.rest.projects.delete() is deprecated, see https://docs.github.com/rest/projects/projects#delete-a-project"
}
],
deleteCard: [
"DELETE /projects/columns/cards/{card_id}",
{},
{
deprecated: "octokit.rest.projects.deleteCard() is deprecated, see https://docs.github.com/rest/projects/cards#delete-a-project-card"
}
],
deleteColumn: [
"DELETE /projects/columns/{column_id}",
{},
{
deprecated: "octokit.rest.projects.deleteColumn() is deprecated, see https://docs.github.com/rest/projects/columns#delete-a-project-column"
}
],
get: [
"GET /projects/{project_id}",
{},
{
deprecated: "octokit.rest.projects.get() is deprecated, see https://docs.github.com/rest/projects/projects#get-a-project"
}
],
getCard: [
"GET /projects/columns/cards/{card_id}",
{},
{
deprecated: "octokit.rest.projects.getCard() is deprecated, see https://docs.github.com/rest/projects/cards#get-a-project-card"
}
],
getColumn: [
"GET /projects/columns/{column_id}",
{},
{
deprecated: "octokit.rest.projects.getColumn() is deprecated, see https://docs.github.com/rest/projects/columns#get-a-project-column"
}
],
getPermissionForUser: [
"GET /projects/{project_id}/collaborators/{username}/permission"
"GET /projects/{project_id}/collaborators/{username}/permission",
{},
{
deprecated: "octokit.rest.projects.getPermissionForUser() is deprecated, see https://docs.github.com/rest/projects/collaborators#get-project-permission-for-a-user"
}
],
listCards: [
"GET /projects/columns/{column_id}/cards",
{},
{
deprecated: "octokit.rest.projects.listCards() is deprecated, see https://docs.github.com/rest/projects/cards#list-project-cards"
}
],
listCollaborators: [
"GET /projects/{project_id}/collaborators",
{},
{
deprecated: "octokit.rest.projects.listCollaborators() is deprecated, see https://docs.github.com/rest/projects/collaborators#list-project-collaborators"
}
],
listColumns: [
"GET /projects/{project_id}/columns",
{},
{
deprecated: "octokit.rest.projects.listColumns() is deprecated, see https://docs.github.com/rest/projects/columns#list-project-columns"
}
],
listForOrg: [
"GET /orgs/{org}/projects",
{},
{
deprecated: "octokit.rest.projects.listForOrg() is deprecated, see https://docs.github.com/rest/projects/projects#list-organization-projects"
}
],
listForRepo: [
"GET /repos/{owner}/{repo}/projects",
{},
{
deprecated: "octokit.rest.projects.listForRepo() is deprecated, see https://docs.github.com/rest/projects/projects#list-repository-projects"
}
],
listForUser: [
"GET /users/{username}/projects",
{},
{
deprecated: "octokit.rest.projects.listForUser() is deprecated, see https://docs.github.com/rest/projects/projects#list-user-projects"
}
],
moveCard: [
"POST /projects/columns/cards/{card_id}/moves",
{},
{
deprecated: "octokit.rest.projects.moveCard() is deprecated, see https://docs.github.com/rest/projects/cards#move-a-project-card"
}
],
moveColumn: [
"POST /projects/columns/{column_id}/moves",
{},
{
deprecated: "octokit.rest.projects.moveColumn() is deprecated, see https://docs.github.com/rest/projects/columns#move-a-project-column"
}
],
listCards: ["GET /projects/columns/{column_id}/cards"],
listCollaborators: ["GET /projects/{project_id}/collaborators"],
listColumns: ["GET /projects/{project_id}/columns"],
listForOrg: ["GET /orgs/{org}/projects"],
listForRepo: ["GET /repos/{owner}/{repo}/projects"],
listForUser: ["GET /users/{username}/projects"],
moveCard: ["POST /projects/columns/cards/{card_id}/moves"],
moveColumn: ["POST /projects/columns/{column_id}/moves"],
removeCollaborator: [
"DELETE /projects/{project_id}/collaborators/{username}"
"DELETE /projects/{project_id}/collaborators/{username}",
{},
{
deprecated: "octokit.rest.projects.removeCollaborator() is deprecated, see https://docs.github.com/rest/projects/collaborators#remove-user-as-a-collaborator"
}
],
update: ["PATCH /projects/{project_id}"],
updateCard: ["PATCH /projects/columns/cards/{card_id}"],
updateColumn: ["PATCH /projects/columns/{column_id}"]
update: [
"PATCH /projects/{project_id}",
{},
{
deprecated: "octokit.rest.projects.update() is deprecated, see https://docs.github.com/rest/projects/projects#update-a-project"
}
],
updateCard: [
"PATCH /projects/columns/cards/{card_id}",
{},
{
deprecated: "octokit.rest.projects.updateCard() is deprecated, see https://docs.github.com/rest/projects/cards#update-an-existing-project-card"
}
],
updateColumn: [
"PATCH /projects/columns/{column_id}",
{},
{
deprecated: "octokit.rest.projects.updateColumn() is deprecated, see https://docs.github.com/rest/projects/columns#update-an-existing-project-column"
}
]
},
pulls: {
checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],
@@ -35200,6 +35546,12 @@ const Endpoints = {
],
getRepoRuleSuites: ["GET /repos/{owner}/{repo}/rulesets/rule-suites"],
getRepoRuleset: ["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],
getRepoRulesetHistory: [
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"
],
getRepoRulesetVersion: [
"GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"
],
getRepoRulesets: ["GET /repos/{owner}/{repo}/rulesets"],
getStatusChecksProtection: [
"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"
@@ -35373,7 +35725,13 @@ const Endpoints = {
search: {
code: ["GET /search/code"],
commits: ["GET /search/commits"],
issuesAndPullRequests: ["GET /search/issues"],
issuesAndPullRequests: [
"GET /search/issues",
{},
{
deprecated: "octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"
}
],
labels: ["GET /search/labels"],
repos: ["GET /search/repositories"],
topics: ["GET /search/topics"],
@@ -35428,13 +35786,35 @@ const Endpoints = {
"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"
],
addOrUpdateProjectPermissionsInOrg: [
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"
"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}",
{},
{
deprecated: "octokit.rest.teams.addOrUpdateProjectPermissionsInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions"
}
],
addOrUpdateProjectPermissionsLegacy: [
"PUT /teams/{team_id}/projects/{project_id}",
{},
{
deprecated: "octokit.rest.teams.addOrUpdateProjectPermissionsLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions-legacy"
}
],
addOrUpdateRepoPermissionsInOrg: [
"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
],
checkPermissionsForProjectInOrg: [
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"
"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}",
{},
{
deprecated: "octokit.rest.teams.checkPermissionsForProjectInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project"
}
],
checkPermissionsForProjectLegacy: [
"GET /teams/{team_id}/projects/{project_id}",
{},
{
deprecated: "octokit.rest.teams.checkPermissionsForProjectLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project-legacy"
}
],
checkPermissionsForRepoInOrg: [
"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
@@ -35472,13 +35852,37 @@ const Endpoints = {
listPendingInvitationsInOrg: [
"GET /orgs/{org}/teams/{team_slug}/invitations"
],
listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects"],
listProjectsInOrg: [
"GET /orgs/{org}/teams/{team_slug}/projects",
{},
{
deprecated: "octokit.rest.teams.listProjectsInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#list-team-projects"
}
],
listProjectsLegacy: [
"GET /teams/{team_id}/projects",
{},
{
deprecated: "octokit.rest.teams.listProjectsLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#list-team-projects-legacy"
}
],
listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"],
removeMembershipForUserInOrg: [
"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"
],
removeProjectInOrg: [
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"
"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}",
{},
{
deprecated: "octokit.rest.teams.removeProjectInOrg() is deprecated, see https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team"
}
],
removeProjectLegacy: [
"DELETE /teams/{team_id}/projects/{project_id}",
{},
{
deprecated: "octokit.rest.teams.removeProjectLegacy() is deprecated, see https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team-legacy"
}
],
removeRepoInOrg: [
"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"
@@ -35793,8 +36197,9 @@ function wrapRequest(state, request, options) {
return state.retryLimiter.schedule(doRequest, state, request, options);
}
async function doRequest(state, request, options) {
const isWrite = options.method !== "GET" && options.method !== "HEAD";
const { pathname } = new URL(options.url, "http://github.test");
const isAuth = isAuthRequest(options.method, pathname);
const isWrite = !isAuth && options.method !== "GET" && options.method !== "HEAD";
const isSearch = options.method === "GET" && pathname.startsWith("/search/");
const isGraphQL = pathname.startsWith("/graphql");
const retryCount = ~~request.retryCount;
@@ -35811,7 +36216,7 @@ async function doRequest(state, request, options) {
if (isSearch) {
await state.search.key(state.id).schedule(jobOptions, noop);
}
const req = state.global.key(state.id).schedule(jobOptions, request, options);
const req = (isAuth ? state.auth : state.global).key(state.id).schedule(jobOptions, request, options);
if (isGraphQL) {
const res = await req;
if (res.data.errors != null && res.data.errors.some((error) => error.type === "RATE_LIMITED")) {
@@ -35824,6 +36229,13 @@ async function doRequest(state, request, options) {
}
return req;
}
function isAuthRequest(method, pathname) {
return method === "PATCH" && // https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-a-scoped-access-token
/^\/applications\/[^/]+\/token\/scoped$/.test(pathname) || method === "POST" && // https://docs.github.com/en/rest/apps/oauth-applications?apiVersion=2022-11-28#reset-a-token
(/^\/applications\/[^/]+\/token$/.test(pathname) || // https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app
/^\/app\/installations\/[^/]+\/access_tokens$/.test(pathname) || // https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
pathname === "/login/oauth/access_token");
}
// pkg/dist-src/generated/triggers-notification-paths.js
var triggers_notification_paths_default = [
@@ -35867,6 +36279,11 @@ var createGroups = function(Bottleneck, common) {
maxConcurrent: 10,
...common
});
groups.auth = new Bottleneck.Group({
id: "octokit-auth",
maxConcurrent: 1,
...common
});
groups.search = new Bottleneck.Group({
id: "octokit-search",
maxConcurrent: 1,
+9 -8
View File
@@ -25,7 +25,7 @@ This document covers terminology, how the action works, general usage guidelines
## Terminology
[Pull requests](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#about-pull-requests) are proposed changes to a repository branch that can be reviewed by a repository's collaborators before being accepted or rejected.
[Pull requests](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#about-pull-requests) are proposed changes to a repository branch that can be reviewed by a repository's collaborators before being accepted or rejected.
A pull request references two branches:
@@ -150,7 +150,7 @@ There are a number of workarounds with different pros and cons.
- Use the default `GITHUB_TOKEN` and allow the action to create pull requests that have no checks enabled. Manually close pull requests and immediately reopen them. This will enable `on: pull_request` workflows to run and be added as checks. To prevent merging of pull requests without checks erroneously, use [branch protection rules](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests).
- Create draft pull requests by setting the `draft: always-true` input, and configure your workflow to trigger `on: ready_for_review`. The workflow will run when users manually click the "Ready for review" button on the draft pull requests. If the pull request is updated by the action, the `always-true` mode ensures that the pull request will be converted back to a draft.
- Create draft pull requests by setting the `draft: always-true` input, and configure your workflow to trigger `ready_for_review` in `on: pull_request`. The workflow will run when users manually click the "Ready for review" button on the draft pull requests. If the pull request is updated by the action, the `always-true` mode ensures that the pull request will be converted back to a draft.
- Use a [Personal Access Token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) created on an account that has write access to the repository that pull requests are being created in. This is the standard workaround and [recommended by GitHub](https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow). It's advisable to use a dedicated [machine account](https://docs.github.com/en/github/site-policy/github-terms-of-service#3-account-requirements) that has collaborator access to the repository, rather than creating a PAT on a personal user account. Also note that because the account that owns the PAT will be the creator of pull requests, that user account will be unable to perform actions such as request changes or approve the pull request.
@@ -197,8 +197,9 @@ Checking out a branch from a different repository from where the workflow is exe
Allowing the action to push with a configured deploy key will trigger `on: push` workflows. This makes it an alternative to using a PAT to trigger checks for pull requests.
> [!NOTE]
> You cannot use deploy keys alone to [create a pull request in a remote repository](#creating-pull-requests-in-a-remote-repository) because then using a PAT would become a requirement.
> - You cannot use deploy keys alone to [create a pull request in a remote repository](#creating-pull-requests-in-a-remote-repository) because then using a PAT would become a requirement.
> This method only makes sense if creating a pull request in the repository where the workflow is running.
> - You cannot use deploy keys with [commit signature verification for bots](#commit-signature-verification-for-bots) (`sign-commits: true`).
How to use SSH (deploy keys) with create-pull-request action:
@@ -271,7 +272,7 @@ The `token` input will then default to the repository's `GITHUB_TOKEN`, which wi
The following is an example of pushing to a fork using GitHub App tokens.
```yaml
- uses: actions/create-github-app-token@v1
- uses: actions/create-github-app-token@v2
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
@@ -318,7 +319,7 @@ GitHub App generated tokens can be configured with fine-grained permissions and
```yaml
steps:
- uses: actions/create-github-app-token@v1
- uses: actions/create-github-app-token@v2
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
@@ -341,7 +342,7 @@ For this case a token must be generated from the GitHub App installation of the
In the following example, a pull request is being created in remote repo `owner/repo`.
```yaml
steps:
- uses: actions/create-github-app-token@v1
- uses: actions/create-github-app-token@v2
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
@@ -373,7 +374,7 @@ The action supports two methods to sign commits, [commit signature verification
The action can sign commits as `github-actions[bot]` when using the repository's default `GITHUB_TOKEN`, or your own bot when using [GitHub App tokens](#authenticating-with-github-app-generated-tokens).
> [!IMPORTANT]
> [!IMPORTANT]
> - When setting `sign-commits: true` the action will ignore the `committer` and `author` inputs.
> - If you attempt to use a [Personal Access Token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) the action will create the pull request, but commits will *not* be signed. Commit signing is only supported with bot generated tokens.
> - The GitHub API has a 40MiB limit when creating git blobs. An error will be raised if there are files in the pull request larger than this. If you hit this limit, use [GPG commit signature verification](#gpg-commit-signature-verification) instead.
@@ -396,7 +397,7 @@ In this example, the `token` input is generated using a GitHub App. This will si
steps:
- uses: actions/checkout@v4
- uses: actions/create-github-app-token@v1
- uses: actions/create-github-app-token@v2
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
+1324 -588
View File
File diff suppressed because it is too large. Load diff
+15 -15
View File
@@ -31,33 +31,33 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@octokit/core": "^6.1.4",
"@octokit/plugin-paginate-rest": "^11.4.2",
"@octokit/plugin-rest-endpoint-methods": "^13.3.1",
"@octokit/plugin-throttling": "^9.4.0",
"node-fetch-native": "^1.6.6",
"@octokit/core": "^6.1.6",
"@octokit/plugin-paginate-rest": "^11.6.0",
"@octokit/plugin-rest-endpoint-methods": "^13.5.0",
"@octokit/plugin-throttling": "^9.6.1",
"node-fetch-native": "^1.6.7",
"p-limit": "^6.2.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/node": "^18.19.76",
"@types/node": "^18.19.130",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vercel/ncc": "^0.38.3",
"@vercel/ncc": "^0.38.4",
"eslint": "^8.57.1",
"eslint-import-resolver-typescript": "^3.8.1",
"eslint-import-resolver-typescript": "^3.10.1",
"eslint-plugin-github": "^4.10.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.2.3",
"eslint-plugin-prettier": "^5.5.4",
"jest": "^29.7.0",
"jest-circus": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"js-yaml": "^4.1.0",
"prettier": "^3.5.1",
"ts-jest": "^29.2.5",
"typescript": "^5.7.3",
"undici": "^6.21.1"
"js-yaml": "^4.1.1",
"prettier": "^3.7.3",
"ts-jest": "^29.4.5",
"typescript": "^5.9.3",
"undici": "^6.22.0"
}
}
+8 -6
View File
@@ -121,12 +121,14 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
`The 'base' and 'branch' for a pull request must be different branches. Unable to continue.`
)
}
// For self-hosted runners the repository state persists between runs.
// This command prunes the stale remote ref when the pull request branch was
// deleted after being merged or closed. Without this the push using
// '--force-with-lease' fails due to "stale info."
// https://github.com/peter-evans/create-pull-request/issues/633
await git.exec(['remote', 'prune', branchRemoteName])
if (utils.isSelfHosted()) {
// For self-hosted runners the repository state persists between runs.
// This command prunes the stale remote ref when the pull request branch was
// deleted after being merged or closed. Without this the push using
// '--force-with-lease' fails due to "stale info."
// https://github.com/peter-evans/create-pull-request/issues/633
await git.exec(['remote', 'prune', branchRemoteName])
}
core.endGroup()
// Apply the branch suffix if set
+54 -14
View File
@@ -2,6 +2,7 @@ import * as exec from '@actions/exec'
import * as io from '@actions/io'
import * as utils from './utils'
import * as path from 'path'
import stream, {Writable} from 'stream'
const tagsRefSpec = '+refs/tags/*:refs/tags/*'
@@ -24,6 +25,7 @@ export type Commit = {
export type ExecOpts = {
allowAllExitCodes?: boolean
encoding?: 'utf8' | 'base64'
suppressGitCmdOutput?: boolean
}
export class GitCommandManager {
@@ -161,17 +163,20 @@ export class GitCommandManager {
async getCommit(ref: string): Promise<Commit> {
const endOfBody = '###EOB###'
const output = await this.exec([
'-c',
'core.quotePath=false',
'show',
'--raw',
'--cc',
'--no-renames',
'--no-abbrev',
`--format=%H%n%T%n%P%n%G?%n%s%n%b%n${endOfBody}`,
ref
])
const output = await this.exec(
[
'-c',
'core.quotePath=false',
'show',
'--raw',
'--cc',
'--no-renames',
'--no-abbrev',
`--format=%H%n%T%n%P%n%G?%n%s%n%b%n${endOfBody}`,
ref
],
{suppressGitCmdOutput: true}
)
const lines = output.stdout.split('\n')
const endOfBodyIndex = lines.lastIndexOf(endOfBody)
const detailLines = lines.slice(0, endOfBodyIndex)
@@ -285,7 +290,10 @@ export class GitCommandManager {
async showFileAtRefBase64(ref: string, path: string): Promise<string> {
const args = ['show', `${ref}:${path}`]
const output = await this.exec(args, {encoding: 'base64'})
const output = await this.exec(args, {
encoding: 'base64',
suppressGitCmdOutput: true
})
return output.stdout.trim()
}
@@ -362,10 +370,19 @@ export class GitCommandManager {
async exec(
args: string[],
{encoding = 'utf8', allowAllExitCodes = false}: ExecOpts = {}
{
encoding = 'utf8',
allowAllExitCodes = false,
suppressGitCmdOutput = false
}: ExecOpts = {}
): Promise<GitOutput> {
const result = new GitOutput()
if (process.env['CPR_SHOW_GIT_CMD_OUTPUT']) {
// debug mode overrides the suppressGitCmdOutput option
suppressGitCmdOutput = false
}
const env = {}
for (const key of Object.keys(process.env)) {
env[key] = process.env[key]
@@ -389,7 +406,9 @@ export class GitCommandManager {
stderr.push(data)
stderrLength += data.length
}
}
},
outStream: outStreamHandler(process.stdout, suppressGitCmdOutput),
errStream: outStreamHandler(process.stderr, suppressGitCmdOutput)
}
result.exitCode = await exec.exec(`"${this.gitPath}"`, args, options)
@@ -404,3 +423,24 @@ class GitOutput {
stderr = ''
exitCode = 0
}
const outStreamHandler = (
outStream: Writable,
suppressGitCmdOutput: boolean
): Writable => {
return new stream.Writable({
write(chunk, _, next) {
if (suppressGitCmdOutput) {
const lines = chunk.toString().trimEnd().split('\n')
for (const line of lines) {
if (line.startsWith('[command]')) {
outStream.write(`${line}\n`)
}
}
} else {
outStream.write(chunk)
}
next()
}
})
}
+50
View File
@@ -22,6 +22,7 @@ export class GitConfigHelper {
private extraheaderConfigPlaceholderValue = 'AUTHORIZATION: basic ***'
private extraheaderConfigValueRegex = '^AUTHORIZATION:'
private persistedExtraheaderConfigValue = ''
private backedUpCredentialFiles: string[] = []
private constructor(git: GitCommandManager) {
this.git = git
@@ -121,11 +122,15 @@ export class GitConfigHelper {
async savePersistedAuth(): Promise<void> {
const serverUrl = new URL(`https://${this.getGitRemote().hostname}`)
this.extraheaderConfigKey = `http.${serverUrl.origin}/.extraheader`
// Backup checkout@v6 credential files if they exist
await this.hideCredentialFiles()
// Save and unset persisted extraheader credential in git config if it exists
this.persistedExtraheaderConfigValue = await this.getAndUnset()
}
async restorePersistedAuth(): Promise<void> {
// Restore checkout@v6 credential files if they were backed up
await this.unhideCredentialFiles()
if (this.persistedExtraheaderConfigValue) {
try {
await this.setExtraheaderConfig(this.persistedExtraheaderConfigValue)
@@ -169,6 +174,51 @@ export class GitConfigHelper {
)
}
private async hideCredentialFiles(): Promise<void> {
// Temporarily hide checkout@v6 credential files to avoid duplicate auth headers
const runnerTemp = process.env['RUNNER_TEMP']
if (!runnerTemp) {
return
}
try {
const files = await fs.promises.readdir(runnerTemp)
for (const file of files) {
if (file.startsWith('git-credentials-') && file.endsWith('.config')) {
const sourcePath = path.join(runnerTemp, file)
const backupPath = `${sourcePath}.bak`
await fs.promises.rename(sourcePath, backupPath)
this.backedUpCredentialFiles.push(backupPath)
core.info(
`Temporarily hiding checkout credential file: ${file} (will be restored after)`
)
}
}
} catch (e) {
// If directory doesn't exist or we can't read it, just continue
core.debug(
`Could not backup credential files: ${utils.getErrorMessage(e)}`
)
}
}
private async unhideCredentialFiles(): Promise<void> {
// Restore checkout@v6 credential files that were backed up
for (const backupPath of this.backedUpCredentialFiles) {
try {
const originalPath = backupPath.replace(/\.bak$/, '')
await fs.promises.rename(backupPath, originalPath)
const fileName = path.basename(originalPath)
core.info(`Restored checkout credential file: ${fileName}`)
} catch (e) {
core.warning(
`Failed to restore credential file ${backupPath}: ${utils.getErrorMessage(e)}`
)
}
}
this.backedUpCredentialFiles = []
}
private async getAndUnset(): Promise<string> {
let configValue = ''
// Save and unset persisted extraheader credential in git config if it exists
+50 -7
View File
@@ -63,6 +63,50 @@ export class GitHubHelper {
}
}
private async getPullNumber(
baseRepository: string,
headBranch: string,
baseBranch: string
): Promise<number> {
const {data: pulls} = await this.octokit.rest.pulls.list({
...this.parseRepository(baseRepository),
state: 'open',
head: headBranch,
base: baseBranch
})
let pullNumber: number | undefined = undefined
if (pulls?.length === 0 || pulls === null || pulls === undefined) {
// This is a fallback due to a bug that affects the list endpoint when called on forks with the same owner as the repository parent.
core.info(
`Pull request not found via list endpoint; attempting fallback mechanism`
)
for await (const response of this.octokit.paginate.iterator(
this.octokit.rest.pulls.list,
{
...this.parseRepository(baseRepository),
state: 'open',
base: baseBranch
}
)) {
const existingPull = response.data.find(
pull => pull.head.label === headBranch
)
if (existingPull !== undefined) {
pullNumber = existingPull.number
break
}
}
} else {
pullNumber = pulls[0].number
}
if (pullNumber === undefined) {
throw new Error(
`Failed to find pull request number for branch ${headBranch}`
)
}
return pullNumber
}
private async createOrUpdate(
inputs: Inputs,
baseRepository: string,
@@ -113,16 +157,15 @@ export class GitHubHelper {
// Update the pull request that exists for this branch and base
core.info(`Fetching existing pull request`)
const {data: pulls} = await this.octokit.rest.pulls.list({
...this.parseRepository(baseRepository),
state: 'open',
head: headBranch,
base: inputs.base
})
const pullNumber = await this.getPullNumber(
baseRepository,
headBranch,
inputs.base
)
core.info(`Attempting update of pull request`)
const {data: pull} = await this.octokit.rest.pulls.update({
...this.parseRepository(baseRepository),
pull_number: pulls[0].number,
pull_number: pullNumber,
title: inputs.title,
body: inputs.body
})
+5
View File
@@ -135,3 +135,8 @@ export function getErrorMessage(error: unknown) {
if (error instanceof Error) return error.message
return String(error)
}
export const isSelfHosted = (): boolean =>
process.env['RUNNER_ENVIRONMENT'] !== 'github-hosted' &&
(process.env['AGENT_ISSELFHOSTED'] === '1' ||
process.env['AGENT_ISSELFHOSTED'] === undefined)