Compare commits

...
126 Commits
Author SHA1 Message Date
CrazyMax f87e5991a6 Merge pull request #624 from crazy-max/skip-pull-with-endpoint
skip BuildKit image pre-pulls for explicit endpoints
2026-09-16 09:47:45 +02:00
CrazyMax e7002743e0 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-16 09:40:54 +02:00
CrazyMax 3061c919c6 skip BuildKit image pre-pulls for explicit endpoints
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-16 09:40:53 +02:00
Paweł Gronowski 594f3bf428 Merge pull request #609 from crazy-max/pull-buildkit-image-before-create
pull BuildKit image before builder creation
2026-09-15 11:28:25 +02:00
CrazyMax bd6e702fc3 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-15 09:26:01 +02:00
CrazyMax 6268c9da9a pull BuildKit image before builder creation
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-15 09:25:29 +02:00
CrazyMax e8235251b8 Merge pull request #621 from docker/dependabot/github_actions/codeql-actions-03ad6eec6c
build(deps): bump the codeql-actions group with 2 updates
2026-09-15 09:01:52 +02:00
dependabot[bot] 533ed8ed09 build(deps): bump the codeql-actions group with 2 updates
Bumps the codeql-actions group with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.37.9 to 4.38.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cdf488f595d80d6e07e03d4674febd5ab45fa938...b96794f015dfd88f77b49b1c93e0fa7110f94c63)

Updates `github/codeql-action/analyze` from 4.37.9 to 4.38.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cdf488f595d80d6e07e03d4674febd5ab45fa938...b96794f015dfd88f77b49b1c93e0fa7110f94c63)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: codeql-actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: codeql-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-15 04:43:56 +00:00
CrazyMax bedaf13569 Merge pull request #620 from crazy-max/shared-error-helpers
use shared error helpers for Buildx and Docker commands
2026-09-14 14:41:58 +02:00
CrazyMax d5079fba84 chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-14 14:28:43 +02:00
CrazyMax 226a61612a use shared error helpers for Buildx and Docker commands
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-14 14:28:42 +02:00
CrazyMax 77ce7f4bab Merge pull request #619 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.100.0
build(deps): bump @docker/actions-toolkit from 0.99.0 to 0.100.0
2026-09-14 14:23:04 +02:00
github-actions[bot] 0dc1dc94f0 [dependabot skip] chore: update generated content 2026-09-14 11:56:45 +00:00
dependabot[bot] 9941930bf6 build(deps): bump @docker/actions-toolkit from 0.99.0 to 0.100.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.99.0 to 0.100.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.99.0...v0.100.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.100.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 11:55:51 +00:00
CrazyMax f840b60a5b Merge pull request #617 from docker/dependabot/npm_and_yarn/js-yaml-5.4.1
build(deps): bump js-yaml from 5.4.1 to 5.4.2
2026-09-14 08:58:49 +02:00
github-actions[bot] d3c78156b5 [dependabot skip] chore: update generated content 2026-09-14 06:55:44 +00:00
dependabot[bot] 842fd7aba7 build(deps): bump js-yaml from 5.4.1 to 5.4.2
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 5.4.1 to 5.4.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/5.4.1...5.4.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 5.4.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 06:54:44 +00:00
CrazyMax 91fda88893 Merge pull request #618 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.99.0
build(deps): bump @docker/actions-toolkit from 0.96.0 to 0.99.0
2026-09-14 08:53:34 +02:00
CrazyMax 0e66b76dff Merge pull request #614 from docker/dependabot/npm_and_yarn/humanfs/node-0.16.8
build(deps): bump @humanfs/node from 0.16.7 to 0.16.8
2026-09-14 08:52:51 +02:00
CrazyMax 9e24513fba Merge pull request #612 from docker/dependabot/github_actions/docker/setup-qemu-action-4.3.0
build(deps): bump docker/setup-qemu-action from 4.2.0 to 4.3.0
2026-09-14 08:52:27 +02:00
CrazyMax 23cd853abe Merge pull request #611 from docker/dependabot/npm_and_yarn/postcss-selector-parser-7.1.5
build(deps): bump postcss-selector-parser from 7.1.1 to 7.1.5
2026-09-14 08:52:16 +02:00
CrazyMax 510b8b46fc Merge pull request #602 from docker/dependabot/github_actions/crazy-max-dot-github-edbced0631
build(deps): bump the crazy-max-dot-github group across 1 directory with 3 updates
2026-09-14 08:52:07 +02:00
CrazyMax df6aa2269a Merge pull request #589 from docker/dependabot/github_actions/codeql-actions-af2beed448
build(deps): bump the codeql-actions group across 1 directory with 2 updates
2026-09-14 08:51:55 +02:00
github-actions[bot] 7f1cb2b5f6 [dependabot skip] chore: update generated content 2026-09-14 04:44:22 +00:00
dependabot[bot] b98bdf1163 build(deps): bump @docker/actions-toolkit from 0.96.0 to 0.99.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.96.0 to 0.99.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.96.0...v0.99.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.99.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-14 04:43:29 +00:00
dependabot[bot] af189076ae build(deps): bump the codeql-actions group across 1 directory with 2 updates
Bumps the codeql-actions group with 2 updates in the / directory: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.36.2 to 4.37.9
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...cdf488f595d80d6e07e03d4674febd5ab45fa938)

Updates `github/codeql-action/analyze` from 4.36.2 to 4.37.9
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/8aad20d150bbac5944a9f9d289da16a4b0d87c1e...cdf488f595d80d6e07e03d4674febd5ab45fa938)

---
updated-dependencies:
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.36.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
- dependency-name: github/codeql-action/init
  dependency-version: 4.36.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: codeql-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-04 04:44:19 +00:00
dependabot[bot] b005abb1e0 build(deps): bump the crazy-max-dot-github group across 1 directory with 3 updates
Bumps the crazy-max-dot-github group with 3 updates in the / directory: [crazy-max/.github/.github/actions/install-k3s](https://github.com/crazy-max/.github), [crazy-max/.github/.github/workflows/pr-assign-author.yml](https://github.com/crazy-max/.github) and [crazy-max/.github/.github/workflows/zizmor.yml](https://github.com/crazy-max/.github).


Updates `crazy-max/.github/.github/actions/install-k3s` from 1.10.1 to 1.11.0
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/46267a6e61cd56aac2fc79943df180152f4c89d6...f91220cba053bd54299ba645a599ee8ed436f222)

Updates `crazy-max/.github/.github/workflows/pr-assign-author.yml` from 1.10.1 to 1.11.0
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/46267a6e61cd56aac2fc79943df180152f4c89d6...f91220cba053bd54299ba645a599ee8ed436f222)

Updates `crazy-max/.github/.github/workflows/zizmor.yml` from 1.10.1 to 1.11.0
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/46267a6e61cd56aac2fc79943df180152f4c89d6...f91220cba053bd54299ba645a599ee8ed436f222)

---
updated-dependencies:
- dependency-name: crazy-max/.github/.github/actions/install-k3s
  dependency-version: 1.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/pr-assign-author.yml
  dependency-version: 1.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/zizmor.yml
  dependency-version: 1.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-04 04:42:21 +00:00
dependabot[bot] 78b0615af3 build(deps): bump @humanfs/node from 0.16.7 to 0.16.8
Bumps [@humanfs/node](https://github.com/humanwhocodes/humanfs/tree/HEAD/packages/node) from 0.16.7 to 0.16.8.
- [Release notes](https://github.com/humanwhocodes/humanfs/releases)
- [Changelog](https://github.com/humanwhocodes/humanfs/blob/main/packages/node/CHANGELOG.md)
- [Commits](https://github.com/humanwhocodes/humanfs/commits/node-v0.16.8/packages/node)

---
updated-dependencies:
- dependency-name: "@humanfs/node"
  dependency-version: 0.16.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 11:52:32 +00:00
CrazyMax 5ac4a31b15 Merge pull request #606 from crazy-max/cloud-driver-oss
Use official Buildx releases for cloud driver
2026-09-03 13:20:05 +02:00
CrazyMax 7b088f724c chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-03 11:04:26 +02:00
CrazyMax e38e8a1e29 Use official Buildx releases for cloud driver
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-09-03 10:35:14 +02:00
dependabot[bot] 20e2701a77 build(deps): bump docker/setup-qemu-action from 4.2.0 to 4.3.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/96fe6ef7f33517b61c61be40b68a1882f3264fb8...1f40c72289eff860ee54a304f1438e3cff362e0a)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-03 04:42:47 +00:00
dependabot[bot] b75cf9098e build(deps): bump postcss-selector-parser from 7.1.1 to 7.1.5
Bumps [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser) from 7.1.1 to 7.1.5.
- [Release notes](https://github.com/postcss/postcss-selector-parser/releases)
- [Changelog](https://github.com/postcss/postcss-selector-parser/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-selector-parser/compare/v7.1.1...7.1.5)

---
updated-dependencies:
- dependency-name: postcss-selector-parser
  dependency-version: 7.1.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-01 22:07:19 +00:00
CrazyMax 1a2e524850 Merge pull request #610 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.96.0
build(deps): bump @docker/actions-toolkit from 0.95.0 to 0.96.0
2026-09-01 13:33:48 +02:00
github-actions[bot] c41f88734b [dependabot skip] chore: update generated content 2026-09-01 11:31:38 +00:00
dependabot[bot] 38f63b05d6 build(deps): bump @docker/actions-toolkit from 0.95.0 to 0.96.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.95.0 to 0.96.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.95.0...v0.96.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.96.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-01 11:30:45 +00:00
CrazyMax 120ea02953 Merge pull request #608 from docker/dependabot/npm_and_yarn/js-yaml-5.4.1
build(deps): bump js-yaml from 5.3.0 to 5.4.1
2026-09-01 13:28:57 +02:00
github-actions[bot] d055e6c81b [dependabot skip] chore: update generated content 2026-08-31 04:44:51 +00:00
dependabot[bot] 077263eb4f build(deps): bump js-yaml from 5.3.0 to 5.4.1
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 5.3.0 to 5.4.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/5.3.0...5.4.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 5.4.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-31 04:43:55 +00:00
CrazyMax 37fe631027 Merge pull request #595 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.94.0
build(deps): bump @docker/actions-toolkit from 0.92.0 to 0.95.0
2026-08-17 14:27:36 +02:00
github-actions[bot] b5c4f91922 [dependabot skip] chore: update generated content 2026-08-17 12:12:52 +00:00
dependabot[bot] 3e93b637c6 build(deps): bump @docker/actions-toolkit from 0.92.0 to 0.95.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.92.0 to 0.95.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.92.0...v0.95.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.94.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-17 12:11:53 +00:00
CrazyMax e527031b32 Merge pull request #600 from docker/dependabot/npm_and_yarn/brace-expansion-1.1.18
build(deps): bump brace-expansion from 1.1.13 to 1.1.18
2026-08-17 14:09:38 +02:00
github-actions[bot] c68814b33c [dependabot skip] chore: update generated content 2026-08-17 12:07:34 +00:00
dependabot[bot] 3f891b01bd build(deps): bump brace-expansion from 1.1.13 to 1.1.18
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.13 to 1.1.18.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.13...v1.1.18)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.18
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-17 12:06:33 +00:00
CrazyMax 787db26fcd Merge pull request #585 from docker/dependabot/npm_and_yarn/js-yaml-5.2.1
build(deps): bump js-yaml from 5.2.0 to 5.3.0
2026-08-17 14:04:03 +02:00
github-actions[bot] f7793687c7 [dependabot skip] chore: update generated content 2026-08-17 11:57:53 +00:00
dependabot[bot] 7d5e604134 build(deps): bump js-yaml from 5.2.0 to 5.3.0
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 5.2.0 to 5.3.0.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/5.2.0...5.3.0)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 5.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-17 11:56:54 +00:00
CrazyMax 292c2fb383 Merge pull request #590 from docker/dependabot/github_actions/actions/setup-node-7.0.0
build(deps): bump actions/setup-node from 6.4.0 to 7.0.0
2026-08-17 13:54:38 +02:00
CrazyMax 165389f45c Merge pull request #594 from docker/dependabot/github_actions/actions/checkout-7.0.1
build(deps): bump actions/checkout from 7.0.0 to 7.0.1
2026-08-17 13:54:17 +02:00
CrazyMax 47814788a6 Merge pull request #598 from docker/dependabot/npm_and_yarn/postcss-8.5.25
build(deps): bump postcss from 8.5.10 to 8.5.25
2026-08-17 13:53:56 +02:00
CrazyMax 8c349abcaa Merge pull request #601 from docker/dependabot/npm_and_yarn/undici-6.28.0
build(deps): bump undici from 6.27.0 to 6.28.0
2026-08-17 13:53:10 +02:00
github-actions[bot] 92e837c4ed [dependabot skip] chore: update generated content 2026-08-05 23:44:46 +00:00
dependabot[bot] 63e71bc2eb build(deps): bump undici from 6.27.0 to 6.28.0
Bumps [undici](https://github.com/nodejs/undici) from 6.27.0 to 6.28.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.27.0...v6.28.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.28.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-05 23:43:47 +00:00
dependabot[bot] d58876a2d7 build(deps): bump postcss from 8.5.10 to 8.5.25
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.10 to 8.5.25.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.10...8.5.25)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.25
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-31 16:06:28 +00:00
dependabot[bot] 37b15858d6 build(deps): bump actions/checkout from 7.0.0 to 7.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 7.0.0 to 7.0.1.
- [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/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-21 04:43:00 +00:00
dependabot[bot] e9af326dda build(deps): bump actions/setup-node from 6.4.0 to 7.0.0
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.4.0 to 7.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e...820762786026740c76f36085b0efc47a31fe5020)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-15 04:42:52 +00:00
CrazyMax 5b9cf3909b Merge pull request #588 from crazy-max/group-codeql-dependabot-updates
chore: group codeql dependabot updates
2026-07-09 13:58:44 +02:00
CrazyMax 732ad0c7e0 chore: group codeql dependabot updates
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-07-09 12:43:17 +02:00
CrazyMax 68e9f6c4df Merge pull request #584 from docker/dependabot/github_actions/docker/build-push-action-7.3.0
build(deps): bump docker/build-push-action from 7.2.0 to 7.3.0
2026-07-03 11:12:21 +02:00
CrazyMax c7eb3a568d Merge pull request #583 from docker/dependabot/github_actions/docker/bake-action-7.3.0
build(deps): bump docker/bake-action from 7.2.0 to 7.3.0
2026-07-03 11:12:00 +02:00
CrazyMax ded50b8f6a Merge pull request #582 from docker/dependabot/github_actions/docker/setup-qemu-action-4.2.0
build(deps): bump docker/setup-qemu-action from 4.1.0 to 4.2.0
2026-07-03 11:11:40 +02:00
CrazyMax 07afd06cce Merge pull request #581 from docker/dependabot/github_actions/docker/bake-action/subaction/matrix-7.3.0
build(deps): bump docker/bake-action/subaction/matrix from 7.2.0 to 7.3.0
2026-07-03 11:11:19 +02:00
dependabot[bot] cbac286239 build(deps): bump docker/build-push-action from 7.2.0 to 7.3.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/f9f3042f7e2789586610d6e8b85c8f03e5195baf...53b7df96c91f9c12dcc8a07bcb9ccacbed38856a)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-03 04:44:48 +00:00
dependabot[bot] 3b570103fa build(deps): bump docker/bake-action from 7.2.0 to 7.3.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/6614cfa25eff9a0b2b2697efb0b6159e7680d584...d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-03 04:44:31 +00:00
dependabot[bot] 55604bd661 build(deps): bump docker/setup-qemu-action from 4.1.0 to 4.2.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/06116385d9baf250c9f4dcb4858b16962ea869c3...96fe6ef7f33517b61c61be40b68a1882f3264fb8)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-03 04:44:25 +00:00
dependabot[bot] be525e565d build(deps): bump docker/bake-action/subaction/matrix
Bumps [docker/bake-action/subaction/matrix](https://github.com/docker/bake-action) from 7.2.0 to 7.3.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/6614cfa25eff9a0b2b2697efb0b6159e7680d584...d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b)

---
updated-dependencies:
- dependency-name: docker/bake-action/subaction/matrix
  dependency-version: 7.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-03 04:44:21 +00:00
CrazyMax bb05f3f551 Merge pull request #580 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.92.0
build(deps): bump @docker/actions-toolkit from 0.91.0 to 0.92.0
2026-07-02 11:21:40 +02:00
github-actions[bot] 321c814cb5 [dependabot skip] chore: update generated content 2026-07-02 09:19:04 +00:00
dependabot[bot] b9a36ef79b build(deps): bump @docker/actions-toolkit from 0.91.0 to 0.92.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.91.0 to 0.92.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.91.0...v0.92.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.92.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 09:18:08 +00:00
CrazyMax ebeab24128 Merge pull request #570 from docker/dependabot/npm_and_yarn/undici-6.27.0
build(deps): bump undici from 6.25.0 to 6.27.0
2026-07-02 11:12:54 +02:00
github-actions[bot] 5c7b8ae78c [dependabot skip] chore: update generated content 2026-07-02 09:11:25 +00:00
dependabot[bot] 037e618cd9 build(deps): bump undici from 6.25.0 to 6.27.0
Bumps [undici](https://github.com/nodejs/undici) from 6.25.0 to 6.27.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.25.0...v6.27.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.27.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 09:10:31 +00:00
CrazyMax 66080e5802 Merge pull request #577 from docker/dependabot/npm_and_yarn/sigstore-4.1.1
build(deps): bump sigstore from 4.1.0 to 4.1.1
2026-07-02 11:08:43 +02:00
CrazyMax 409aef0aa3 Merge pull request #562 from docker/dependabot/npm_and_yarn/js-yaml-4.2.0
build(deps): bump js-yaml from 4.1.1 to 5.2.0
2026-07-02 11:08:14 +02:00
dependabot[bot] 49c6e42949 build(deps): bump sigstore from 4.1.0 to 4.1.1
Bumps [sigstore](https://github.com/sigstore/sigstore-js) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/sigstore/sigstore-js/releases)
- [Commits](https://github.com/sigstore/sigstore-js/compare/sigstore@4.1.0...sigstore@4.1.1)

---
updated-dependencies:
- dependency-name: sigstore
  dependency-version: 4.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 09:06:38 +00:00
github-actions[bot] 2211273e81 [dependabot skip] chore: update generated content 2026-07-02 09:06:38 +00:00
dependabot[bot] 1c203bbd66 build(deps): bump js-yaml from 4.1.1 to 5.2.0
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.1 to 5.2.0.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.1...5.2.0)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 09:05:40 +00:00
CrazyMax bdb9e8c4a3 Merge pull request #576 from docker/dependabot/npm_and_yarn/sigstore/verify-3.1.1
build(deps): bump @sigstore/verify from 3.1.0 to 3.1.1
2026-07-02 11:04:46 +02:00
CrazyMax a1ef928785 Merge pull request #569 from docker/dependabot/npm_and_yarn/vite-7.3.5
build(deps): bump vite from 7.3.2 to 7.3.6
2026-07-02 11:04:22 +02:00
CrazyMax 2b9ccacd29 Merge pull request #573 from docker/dependabot/npm_and_yarn/sigstore/core-3.2.1
build(deps): bump @sigstore/core from 3.1.0 to 3.2.1
2026-07-02 11:03:35 +02:00
CrazyMax 30f516a36d Merge pull request #579 from docker/dependabot/github_actions/codecov/codecov-action-7.0.0
build(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0
2026-07-02 11:02:23 +02:00
CrazyMax 7ed1344edc Merge pull request #578 from docker/dependabot/github_actions/actions/checkout-7.0.0
build(deps): bump actions/checkout from 6.0.3 to 7.0.0
2026-07-02 11:01:57 +02:00
dependabot[bot] 62a375d019 build(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 6.0.1 to 7.0.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/e79a6962e0d4c0c17b229090214935d2e33f8354...fb8b3582c8e4def4969c97caa2f19720cb33a72f)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 09:00:58 +00:00
dependabot[bot] 911fd9be4b build(deps): bump actions/checkout from 6.0.3 to 7.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.3 to 7.0.0.
- [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/df4cb1c069e1874edd31b4311f1884172cec0e10...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 08:59:27 +00:00
CrazyMax 425c29b574 Merge pull request #560 from docker/dependabot/github_actions/docker/setup-qemu-action-4.1.0
build(deps): bump docker/setup-qemu-action from 4.0.0 to 4.1.0
2026-07-02 10:58:28 +02:00
CrazyMax 19a5ebdfd5 Merge pull request #567 from docker/dependabot/github_actions/github/codeql-action-4.36.2
build(deps): bump github/codeql-action from 4.36.0 to 4.36.2
2026-07-02 10:57:53 +02:00
CrazyMax 0727322ec8 Merge pull request #571 from docker/dependabot/github_actions/crazy-max-dot-github-cd60547fee
build(deps): bump the crazy-max-dot-github group across 1 directory with 3 updates
2026-07-02 10:57:30 +02:00
CrazyMax e929e9255c Merge pull request #564 from docker/dependabot/github_actions/actions/checkout-6.0.3
build(deps): bump actions/checkout from 6.0.2 to 6.0.3
2026-07-02 10:57:04 +02:00
dependabot[bot] ebf3b1c616 build(deps): bump the crazy-max-dot-github group across 1 directory with 3 updates
Bumps the crazy-max-dot-github group with 3 updates in the / directory: [crazy-max/.github/.github/actions/install-k3s](https://github.com/crazy-max/.github), [crazy-max/.github/.github/workflows/pr-assign-author.yml](https://github.com/crazy-max/.github) and [crazy-max/.github/.github/workflows/zizmor.yml](https://github.com/crazy-max/.github).


Updates `crazy-max/.github/.github/actions/install-k3s` from 1.8.0 to 1.10.1
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/9ba6e6f9450baf3b1237f8035c1fdc45932510bd...46267a6e61cd56aac2fc79943df180152f4c89d6)

Updates `crazy-max/.github/.github/workflows/pr-assign-author.yml` from 1.8.0 to 1.10.1
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/9ba6e6f9450baf3b1237f8035c1fdc45932510bd...46267a6e61cd56aac2fc79943df180152f4c89d6)

Updates `crazy-max/.github/.github/workflows/zizmor.yml` from 1.8.0 to 1.10.1
- [Release notes](https://github.com/crazy-max/.github/releases)
- [Commits](https://github.com/crazy-max/.github/compare/9ba6e6f9450baf3b1237f8035c1fdc45932510bd...46267a6e61cd56aac2fc79943df180152f4c89d6)

---
updated-dependencies:
- dependency-name: crazy-max/.github/.github/actions/install-k3s
  dependency-version: 1.10.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/pr-assign-author.yml
  dependency-version: 1.10.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
- dependency-name: crazy-max/.github/.github/workflows/zizmor.yml
  dependency-version: 1.10.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: crazy-max-dot-github
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 04:42:29 +00:00
dependabot[bot] 07480ddaf5 build(deps): bump @sigstore/verify from 3.1.0 to 3.1.1
Bumps [@sigstore/verify](https://github.com/sigstore/sigstore-js) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/sigstore/sigstore-js/releases)
- [Commits](https://github.com/sigstore/sigstore-js/compare/sigstore@3.1.0...@sigstore/verify@3.1.1)

---
updated-dependencies:
- dependency-name: "@sigstore/verify"
  dependency-version: 3.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-02 01:21:02 +00:00
CrazyMax 7b0a0dd78a Merge pull request #575 from crazy-max/fix-yarn-preapprove-actions-toolkit
chore: allow actions-toolkit to bypass yarn age gate
2026-07-01 12:50:03 +02:00
CrazyMax a0e446b4dd Merge pull request #574 from crazy-max/dependabot-skip-update-dist
dependabot: skip for update-dist commits
2026-07-01 12:50:00 +02:00
CrazyMax 2bc18585f7 chore: allow actions-toolkit to bypass yarn age gate
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-07-01 11:43:33 +02:00
CrazyMax bf6e25472a dependabot: skip for update-dist commits
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-06-30 11:09:22 +02:00
dependabot[bot] fbfc14c547 build(deps): bump vite from 7.3.2 to 7.3.6
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.2 to 7.3.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 14:18:51 +00:00
github-actions[bot] 49c98a8139 chore: update generated content 2026-06-29 14:17:40 +00:00
dependabot[bot] 03a2247451 build(deps): bump @sigstore/core from 3.1.0 to 3.2.1
Bumps [@sigstore/core](https://github.com/sigstore/sigstore-js) from 3.1.0 to 3.2.1.
- [Release notes](https://github.com/sigstore/sigstore-js/releases)
- [Commits](https://github.com/sigstore/sigstore-js/compare/sigstore@3.1.0...@sigstore/core@3.2.1)

---
updated-dependencies:
- dependency-name: "@sigstore/core"
  dependency-version: 3.2.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-29 14:16:42 +00:00
CrazyMax bed9a68598 Merge pull request #572 from crazy-max/fix-esbuild
preserve names in esbuild bundle
2026-06-29 16:15:09 +02:00
CrazyMax c6e2526453 preserve names in esbuild bundle
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-06-29 15:03:17 +02:00
temenuzhka-thede c887d9748d Merge pull request #568 from docker/sec-cli/npm-ci-20260612-184913
fix: replace npm install with npm ci (20260612-184913)
2026-06-12 14:10:56 -05:00
securityeng-bot[bot] cfdae34ead fix: use lockfile-aware install commands 2026-06-12 18:49:15 +00:00
dependabot[bot] 40445d9e77 build(deps): bump github/codeql-action from 4.36.0 to 4.36.2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.36.0 to 4.36.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/7211b7c8077ea37d8641b6271f6a365a22a5fbfa...8aad20d150bbac5944a9f9d289da16a4b0d87c1e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-08 04:44:10 +00:00
dependabot[bot] 0d5ecf6801 build(deps): bump actions/checkout from 6.0.2 to 6.0.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 6.0.3.
- [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/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-04 04:43:21 +00:00
dependabot[bot] 86a837e8bd build(deps): bump docker/setup-qemu-action from 4.0.0 to 4.1.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/ce360397dd3f832beb865e1373c09c0e9f86d70a...06116385d9baf250c9f4dcb4858b16962ea869c3)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-29 04:56:38 +00:00
CrazyMax 22b48a429f Merge pull request #559 from crazy-max/yarn-update
update yarn to 4.15.0
2026-05-28 18:44:17 +02:00
CrazyMax 5858c5d38b update yarn to 4.15.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-05-28 15:13:38 +02:00
CrazyMax fa8b94d584 Merge pull request #557 from docker/dependabot/npm_and_yarn/docker/actions-toolkit-0.91.0
build(deps): bump @docker/actions-toolkit from 0.90.0 to 0.91.0
2026-05-28 10:42:30 +02:00
github-actions[bot] 76e60acf32 chore: update generated content 2026-05-28 08:29:20 +00:00
dependabot[bot] 716a6ed7ad build(deps): bump @docker/actions-toolkit from 0.90.0 to 0.91.0
Bumps [@docker/actions-toolkit](https://github.com/docker/actions-toolkit) from 0.90.0 to 0.91.0.
- [Release notes](https://github.com/docker/actions-toolkit/releases)
- [Commits](https://github.com/docker/actions-toolkit/compare/v0.90.0...v0.91.0)

---
updated-dependencies:
- dependency-name: "@docker/actions-toolkit"
  dependency-version: 0.91.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 08:28:25 +00:00
CrazyMax 76e58290b2 Merge pull request #551 from docker/dependabot/npm_and_yarn/actions/core-3.0.1
build(deps): bump @actions/core from 3.0.0 to 3.0.1
2026-05-28 10:26:05 +02:00
github-actions[bot] 4c56ab6283 chore: update generated content 2026-05-28 08:24:44 +00:00
dependabot[bot] 7d85158e51 build(deps): bump @actions/core from 3.0.0 to 3.0.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 3.0.0 to 3.0.1.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 08:23:48 +00:00
CrazyMax 8508f00982 Merge pull request #556 from docker/dependabot/npm_and_yarn/tmp-0.2.7
build(deps): bump tmp from 0.2.5 to 0.2.7
2026-05-28 10:21:51 +02:00
CrazyMax b0c3aa1759 Merge pull request #554 from docker/dependabot/github_actions/docker/build-push-action-7.2.0
build(deps): bump docker/build-push-action from 7.1.0 to 7.2.0
2026-05-28 10:21:21 +02:00
CrazyMax 25434de062 Merge pull request #552 from docker/dependabot/github_actions/github/codeql-action-4.36.0
build(deps): bump github/codeql-action from 4.35.5 to 4.36.0
2026-05-28 10:20:57 +02:00
CrazyMax a7757fd670 Merge pull request #555 from docker/sec-cli/ignore-scripts-fix-20260527-193412
ci: add ignore-scripts to Node package manager config (20260527-193412)
2026-05-28 10:20:21 +02:00
CrazyMax e7950c2a5e Merge pull request #558 from docker/dependabot/github_actions/crazy-max/ghaction-dump-context-3.1.0
build(deps): bump crazy-max/ghaction-dump-context from 3.0.0 to 3.1.0
2026-05-28 10:20:05 +02:00
CrazyMax 7fafe247d6 Merge pull request #553 from docker/dependabot/github_actions/docker/bake-action-7.2.0
build(deps): bump docker/bake-action from 7.1.0 to 7.2.0
2026-05-28 10:19:38 +02:00
dependabot[bot] cffcaa17d0 build(deps): bump docker/bake-action from 7.1.0 to 7.2.0
Bumps [docker/bake-action](https://github.com/docker/bake-action) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/docker/bake-action/releases)
- [Commits](https://github.com/docker/bake-action/compare/a66e1c87e2eca0503c343edf1d208c716d54b8a8...6614cfa25eff9a0b2b2697efb0b6159e7680d584)

---
updated-dependencies:
- dependency-name: docker/bake-action
  dependency-version: 7.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 07:59:42 +00:00
dependabot[bot] 9099559035 build(deps): bump crazy-max/ghaction-dump-context from 3.0.0 to 3.1.0
Bumps [crazy-max/ghaction-dump-context](https://github.com/crazy-max/ghaction-dump-context) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/crazy-max/ghaction-dump-context/releases)
- [Commits](https://github.com/crazy-max/ghaction-dump-context/compare/5d2753e7076f4568c7729971e25231f32147e2d8...4d9eeaf15dd59aa4346919ea84a84ccf514b4db8)

---
updated-dependencies:
- dependency-name: crazy-max/ghaction-dump-context
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 04:54:17 +00:00
github-actions[bot] 0772d51c0d chore: update generated content 2026-05-28 03:00:54 +00:00
dependabot[bot] 8b5bc381e6 build(deps): bump tmp from 0.2.5 to 0.2.7
Bumps [tmp](https://github.com/raszi/node-tmp) from 0.2.5 to 0.2.7.
- [Changelog](https://github.com/raszi/node-tmp/blob/master/CHANGELOG.md)
- [Commits](https://github.com/raszi/node-tmp/compare/v0.2.5...v0.2.7)

---
updated-dependencies:
- dependency-name: tmp
  dependency-version: 0.2.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-28 02:59:56 +00:00
securityeng-bot[bot] e43e67c8fb ci: enforce ignore-scripts policy for Node package managers 2026-05-27 20:05:03 +00:00
dependabot[bot] 61caaf58f9 build(deps): bump docker/build-push-action from 7.1.0 to 7.2.0
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/bcafcacb16a39f128d818304e6c9c0c18556b85f...f9f3042f7e2789586610d6e8b85c8f03e5195baf)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-25 05:58:33 +00:00
dependabot[bot] a7ea3685d3 build(deps): bump github/codeql-action from 4.35.5 to 4.36.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 4.35.5 to 4.36.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9e0d7b8d25671d64c341c19c0152d693099fb5ba...7211b7c8077ea37d8641b6271f6a365a22a5fbfa)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-25 05:57:56 +00:00
19 changed files with 687 additions and 1449 deletions

No files matched your search

+3
View File
@@ -10,6 +10,9 @@ updates:
crazy-max-dot-github:
patterns:
- "crazy-max/.github/*"
codeql-actions:
patterns:
- "github/codeql-action/*"
labels:
- "dependencies"
- "bot"
+53 -36
View File
@@ -35,7 +35,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
id: buildx
@@ -54,7 +54,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx 1
uses: ./
@@ -67,7 +67,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Stop docker
run: |
@@ -88,14 +88,14 @@ jobs:
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@5d2753e7076f4568c7729971e25231f32147e2d8 # v3.0.0
uses: crazy-max/ghaction-dump-context@4d9eeaf15dd59aa4346919ea84a84ccf514b4db8 # v3.1.0
debug:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Create Dockerfile
run: |
@@ -105,7 +105,7 @@ jobs:
EOL
-
name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
-
name: Set up Docker Buildx
uses: ./
@@ -113,7 +113,7 @@ jobs:
buildkitd-flags: --debug
-
name: Build
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
platforms: linux/amd64,linux/arm64,linux/ppc64le
@@ -129,7 +129,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
@@ -152,7 +152,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
@@ -165,7 +165,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
@@ -182,6 +182,15 @@ jobs:
endpoint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
endpoint:
- mycontext
- tcp://127.0.0.1:2375
env:
# only the explicit endpoint should provide access to a daemon.
DOCKER_HOST: unix:///tmp/nonexistent-docker.sock
services:
dind:
image: docker:29.3-dind@sha256:4d90f1f6c400315c2dba96d3ec93c01e64198395cbba04f79d12adce4f737029
@@ -198,7 +207,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Create context
run: |
@@ -209,18 +218,26 @@ jobs:
docker --context mycontext info
-
name: Set up Docker Buildx
id: buildx
uses: ./
with:
endpoint: mycontext
endpoint: ${{ matrix.endpoint }}
-
name: Build
env:
DOCKER_CONTEXT: mycontext
BUILDER: ${{ steps.buildx.outputs.name }}
run: |
docker buildx build --builder "$BUILDER" - <<'EOF'
FROM scratch
LABEL test=endpoint
EOF
buildkitd-config:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Create buildkitd conf
run: |
@@ -243,7 +260,7 @@ jobs:
buildkitd-config: /tmp/buildkitd.toml
-
name: Build
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
@@ -252,7 +269,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Create Dockerfile
run: |
@@ -270,7 +287,7 @@ jobs:
mirrors = ["mirror.gcr.io"]
-
name: Build
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
@@ -288,10 +305,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
with:
platforms: ${{ matrix.qemu-platforms }}
-
@@ -317,7 +334,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
@@ -331,7 +348,7 @@ jobs:
EOL
-
name: Build
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
@@ -340,7 +357,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Uninstall docker cli
run: |
@@ -368,7 +385,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Uninstall docker cli
run: |
@@ -390,7 +407,7 @@ jobs:
EOL
-
name: Build
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
@@ -399,7 +416,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Create dummy contexts
run: |
@@ -428,10 +445,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up QEMU
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
uses: docker/setup-qemu-action@1f40c72289eff860ee54a304f1438e3cff362e0a # v4.3.0
-
name: Set up Docker Buildx
uses: ./
@@ -443,7 +460,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Create Docker context
run: |
@@ -466,7 +483,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
@@ -485,10 +502,10 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Install k3s
uses: crazy-max/.github/.github/actions/install-k3s@9ba6e6f9450baf3b1237f8035c1fdc45932510bd # v1.8.0
uses: crazy-max/.github/.github/actions/install-k3s@f91220cba053bd54299ba645a599ee8ed436f222 # v1.11.0
-
name: Set up Docker Buildx
id: buildx
@@ -518,7 +535,7 @@ jobs:
EOL
-
name: Build
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
@@ -533,7 +550,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
@@ -546,7 +563,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
id: buildx
@@ -567,7 +584,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
@@ -586,7 +603,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
id: buildx
+4 -4
View File
@@ -22,7 +22,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Enable corepack
run: |
@@ -30,17 +30,17 @@ jobs:
yarn --version
-
name: Set up Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ env.NODE_VERSION }}
-
name: Initialize CodeQL
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
languages: javascript-typescript
build-mode: none
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
with:
category: "/language:javascript-typescript"
+1 -1
View File
@@ -11,7 +11,7 @@ on:
jobs:
run:
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@9ba6e6f9450baf3b1237f8035c1fdc45932510bd # v1.8.0
uses: crazy-max/.github/.github/workflows/pr-assign-author.yml@f91220cba053bd54299ba645a599ee8ed436f222 # v1.11.0
permissions:
contents: read
pull-requests: write
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Publish
uses: actions/publish-immutable-action@4bc8754ffc40f27910afb20287dbbbb675a4e978 # v0.0.4
+3 -3
View File
@@ -20,19 +20,19 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Set up Docker Buildx
uses: ./
-
name: Test
uses: docker/bake-action@a66e1c87e2eca0503c343edf1d208c716d54b8a8 # v7.1.0
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
source: .
targets: test
-
name: Upload coverage
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
files: ./coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
+3 -3
View File
@@ -30,14 +30,14 @@ jobs:
permission-contents: write
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
token: ${{ steps.docker-read-app.outputs.token }}
-
name: Build
uses: docker/bake-action@a66e1c87e2eca0503c343edf1d208c716d54b8a8 # v7.1.0
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
source: .
targets: build
@@ -50,7 +50,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist
git commit -m "chore: update generated content"
git commit -m "[dependabot skip] chore: update generated content"
git push
)
else
+3 -3
View File
@@ -22,11 +22,11 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
-
name: Generate matrix
id: generate
uses: docker/bake-action/subaction/matrix@a66e1c87e2eca0503c343edf1d208c716d54b8a8 # v7.1.0
uses: docker/bake-action/subaction/matrix@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
target: validate
@@ -41,6 +41,6 @@ jobs:
steps:
-
name: Validate
uses: docker/bake-action@a66e1c87e2eca0503c343edf1d208c716d54b8a8 # v7.1.0
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
with:
targets: ${{ matrix.target }}
+1 -1
View File
@@ -19,7 +19,7 @@ on:
jobs:
zizmor:
uses: crazy-max/.github/.github/workflows/zizmor.yml@9ba6e6f9450baf3b1237f8035c1fdc45932510bd # v1.8.0
uses: crazy-max/.github/.github/workflows/zizmor.yml@f91220cba053bd54299ba645a599ee8ed436f222 # v1.11.0
permissions:
contents: read
security-events: write
+11 -4
View File
@@ -1,10 +1,10 @@
# https://yarnpkg.com/configuration/yarnrc
compressionLevel: mixed
enableGlobalCache: false
enableHardenedMode: true
nodeLinker: node-modules
logFilters:
- code: YN0004
level: discard
- code: YN0013
level: discard
- code: YN0019
@@ -14,4 +14,11 @@ logFilters:
- code: YN0086
level: discard
nodeLinker: node-modules
npmPreapprovedPackages:
- "@docker/actions-toolkit"
compressionLevel: mixed
enableGlobalCache: false
enableHardenedMode: true
enableScripts: false
npmMinimalAgeGate: 2d
+20 -135
View File
@@ -234,7 +234,7 @@ describe('getCreateArgs', () => {
],
[
10,
'v0.10.3',
'v0.37.0',
new Map<string, string>([
['use', 'false'],
['driver', 'cloud'],
@@ -301,6 +301,25 @@ describe('getCreateArgs', () => {
expect(res).toEqual(expected);
}
);
test('rejects cloud driver with unsupported official Buildx', async () => {
setInput('version', 'v0.36.1');
setInput('driver', 'cloud');
setInput('use', 'true');
setInput('cache-binary', 'true');
setInput('cleanup', 'true');
setInput('keep-state', 'false');
const toolkit = new Toolkit();
const versionSpy = vi.spyOn(Buildx.prototype, 'version').mockImplementation(async (): Promise<string> => {
return 'v0.36.1';
});
try {
const inp = await context.getInputs();
await expect(context.getCreateArgs(inp, toolkit)).rejects.toThrow(/requires Buildx v0.37.0 or later/);
} finally {
versionSpy.mockRestore();
}
});
});
describe('getAppendArgs', () => {
@@ -361,140 +380,6 @@ describe('getAppendArgs', () => {
);
});
describe('getVersion', () => {
beforeEach(() => {
process.env = Object.keys(process.env).reduce((object, key) => {
if (!key.startsWith('INPUT_')) {
object[key] = process.env[key];
}
return object;
}, {});
});
// prettier-ignore
test.each([
[
0,
new Map<string, string>([
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
''
],
[
1,
new Map<string, string>([
['version', 'latest'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'latest'
],
[
2,
new Map<string, string>([
['version', 'edge'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'edge'
],
[
3,
new Map<string, string>([
['version', 'v0.19.2'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'v0.19.2'
],
[
4,
new Map<string, string>([
['version', 'latest'],
['driver', 'cloud'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'cloud:latest'
],
[
5,
new Map<string, string>([
['version', 'edge'],
['driver', 'cloud'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'cloud:edge'
],
[
6,
new Map<string, string>([
['driver', 'cloud'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'cloud:latest'
],
[
7,
new Map<string, string>([
['version', 'cloud:v0.11.2-desktop.2'],
['driver', 'cloud'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'cloud:v0.11.2-desktop.2'
],
[
8,
new Map<string, string>([
['version', 'cloud:v0.11.2-desktop.2'],
// defaults
['use', 'true'],
['cache-binary', 'true'],
['cleanup', 'true'],
['keep-state', 'false']
]),
'cloud:v0.11.2-desktop.2'
],
])(
'[%d] given %o as inputs, returns version %o',
async (num: number, inputs: Map<string, string>, expected: string) => {
inputs.forEach((value: string, name: string) => {
setInput(name, value);
});
const inp = await context.getInputs();
expect(context.getVersion(inp)).toEqual(expected);
}
);
});
// See: https://github.com/actions/toolkit/blob/master/packages/core/src/core.ts#L67
function getInputName(name: string): string {
return `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
+1 -1
View File
@@ -17,7 +17,7 @@ FROM base AS deps
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/.yarn/cache \
--mount=type=cache,target=/src/node_modules \
yarn install && mkdir /vendor && cp yarn.lock /vendor
yarn install --immutable && mkdir /vendor && cp yarn.lock /vendor
FROM scratch AS vendor-update
COPY --from=deps /vendor /
Generated Vendored
+144 -216
View File
@@ -1,215 +1,181 @@
var uDe=Object.create;var XD=Object.defineProperty;var hDe=Object.getOwnPropertyDescriptor;var dDe=Object.getOwnPropertyNames;var fDe=Object.getPrototypeOf,pDe=Object.prototype.hasOwnProperty;var ADe=(t,e)=>()=>(t&&(e=t(t=0)),e);var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mK=(t,e)=>{for(var r in e)XD(t,r,{get:e[r],enumerable:!0})},mDe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of dDe(e))!pDe.call(t,i)&&i!==r&&XD(t,i,{get:()=>e[i],enumerable:!(s=hDe(e,i))||s.enumerable});return t};var O=(t,e,r)=>(r=t!=null?uDe(fDe(t)):{},mDe(e||!t||!t.__esModule?XD(r,"default",{value:t,enumerable:!0}):r,t));var hX=A(JA=>{"use strict";var MDt=require("net"),VMe=require("tls"),yk=require("http"),cX=require("https"),$Me=require("events"),LDt=require("assert"),jMe=require("util");JA.httpOverHttp=JMe;JA.httpsOverHttp=YMe;JA.httpOverHttps=WMe;JA.httpsOverHttps=KMe;function JMe(t){var e=new Zl(t);return e.request=yk.request,e}function YMe(t){var e=new Zl(t);return e.request=yk.request,e.createSocket=lX,e.defaultPort=443,e}function WMe(t){var e=new Zl(t);return e.request=cX.request,e}function KMe(t){var e=new Zl(t);return e.request=cX.request,e.createSocket=lX,e.defaultPort=443,e}function Zl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||yk.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(s,i,n,o){for(var a=uX(i,n,o),c=0,l=e.requests.length;c<l;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)})}jMe.inherits(Zl,$Me.EventEmitter);Zl.prototype.addRequest=function(e,r,s,i){var n=this,o=Ek({request:e},n.options,uX(r,s,i));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return}n.createSocket(o,function(a){a.on("free",c),a.on("close",l),a.on("agentRemove",l),e.onSocket(a);function c(){n.emit("free",a,o)}function l(u){n.removeSocket(a),a.removeListener("free",c),a.removeListener("close",l),a.removeListener("agentRemove",l)}})};Zl.prototype.createSocket=function(e,r){var s=this,i={};s.sockets.push(i);var n=Ek({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),Ph("making CONNECT request");var o=s.request(n);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",l),o.once("error",u),o.end();function a(h){h.upgrade=!0}function c(h,d,f){process.nextTick(function(){l(h,d,f)})}function l(h,d,f){if(o.removeAllListeners(),d.removeAllListeners(),h.statusCode!==200){Ph("tunneling socket could not be established, statusCode=%d",h.statusCode),d.destroy();var p=new Error("tunneling socket could not be established, statusCode="+h.statusCode);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}if(f.length>0){Ph("got illegal response body from proxy"),d.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(i);return}return Ph("tunneling connection has established"),s.sockets[s.sockets.indexOf(i)]=d,r(d)}function u(h){o.removeAllListeners(),Ph(`tunneling socket could not be established, cause=%s
`,h.message,h.stack);var d=new Error("tunneling socket could not be established, cause="+h.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(i)}};Zl.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(i){s.request.onSocket(i)})}};function lX(t,e){var r=this;Zl.prototype.createSocket.call(r,t,function(s){var i=t.request.getHeader("host"),n=Ek({},r.options,{socket:s,servername:i?i.replace(/:.*$/,""):t.host}),o=VMe.connect(0,n);r.sockets[r.sockets.indexOf(s)]=o,e(o)})}function uX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function Ek(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var i=Object.keys(s),n=0,o=i.length;n<o;++n){var a=i[n];s[a]!==void 0&&(t[a]=s[a])}}return t}var Ph;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ph=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:Ph=function(){};JA.debug=Ph});var oC=A((UDt,dX)=>{dX.exports=hX()});var sr=A((qDt,fX)=>{fX.exports={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"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Et=A((GDt,LX)=>{"use strict";var pX=Symbol.for("undici.error.UND_ERR"),ir=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[pX]===!0}[pX]=!0},AX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),Ck=class extends ir{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[AX]===!0}[AX]=!0},mX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),Ik=class extends ir{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[mX]===!0}[mX]=!0},gX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),bk=class extends ir{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[gX]===!0}[gX]=!0},yX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),wk=class extends ir{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[yX]===!0}[yX]=!0},EX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),Sk=class extends ir{constructor(e,r,s,i){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=i,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function fFe(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),i="";if(s.length>0)for(let n=s.length;n!==0;n--){let o=s[n-1].trim();if(K2e.has(o)){i=o;break}}i!==""&&(t.referrerPolicy=i)}function pFe(){return"allowed"}function AFe(){return"success"}function mFe(){return"success"}function gFe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function yFe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&AM(t.origin)&&!AM(AC(t))&&(e=null);break;case"same-origin":oB(t,AC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function im(t,e){return t}function EFe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:im(t.domainLookupStartTime,r),domainLookupEndTime:im(t.domainLookupEndTime,r),connectionStartTime:im(t.connectionStartTime,r),connectionEndTime:im(t.connectionEndTime,r),secureConnectionStartTime:im(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function CFe(t){return im(rFe.now(),t)}function IFe(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function ZZ(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function bFe(t){return{referrerPolicy:t.referrerPolicy}}function wFe(t){let e=t.referrerPolicy;wf(e);let r=null;if(t.referrer==="client"){let a=jZ();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let s=pM(r),i=pM(r,!0);s.toString().length>4096&&(s=i);let n=oB(t,s),o=pC(s)&&!pC(t.url);switch(e){case"origin":return i??pM(r,!0);case"unsafe-url":return s;case"same-origin":return n?i:"no-referrer";case"origin-when-cross-origin":return n?s:i;case"strict-origin-when-cross-origin":{let a=AC(t);return oB(s,a)?s:pC(s)&&!pC(a)?"no-referrer":i}default:return o?"no-referrer":i}}function pM(t,e){return wf(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function pC(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}function SFe(t,e){if(nB===void 0)return!0;let r=e7(e);if(r==="no metadata"||r.length===0)return!0;let s=xFe(r),i=NFe(r,s);for(let n of i){let o=n.algo,a=n.hash,c=nB.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),vFe(c,a))return!0}return!1}var BFe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function e7(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let i=BFe.exec(s);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let n=i.groups.algo.toLowerCase();YZ.includes(n)&&e.push(i.groups)}return r===!0?"no metadata":e}function xFe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}function NFe(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}function vFe(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}function RFe(t){}function oB(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function TFe(){let t,e;return{promise:new Promise((s,i)=>{t=s,e=i}),resolve:t,reject:e}}function _Fe(t){return t.controller.state==="aborted"}function QFe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function PFe(t){return nFe[t.toLowerCase()]??t}function OFe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return wf(typeof e=="string"),e}var DFe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function t7(t,e,r=0,s=1){class i{#e;#t; Line truncated
`);function hUe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function dUe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}function fUe(t,e){cB(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),i=[],n={position:0};for(;t[n.position]===13&&t[n.position+1]===10;)n.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(n.position,n.position+s.length).equals(s))n.position+=s.length;else return"failure";if(n.position===t.length-2&&lB(t,lUe,n)||n.position===t.length-4&&lB(t,uUe,n))return i;if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let a=pUe(t,n);if(a==="failure")return"failure";let{name:c,filename:l,contentType:u,encoding:h}=a;n.position+=2;let d;{let p=t.indexOf(s.subarray(2),n.position);if(p===-1)return"failure";d=t.subarray(n.position,p-4),n.position+=d.length,h==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[n.position]!==13||t[n.position+1]!==10)return"failure";n.position+=2;let f;l!==null?(u??="text/plain",hUe(u)||(u=""),f=new aUe([d],l,{type:u})):f=rUe(Buffer.from(d)),cB(f7(c)),cB(typeof f=="string"&&f7(f)||iUe(f)),i.push(nUe(c,f,l))}}function pUe(t,e){let r=null,s=null,i=null,n=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:i,encoding:n};let o=om(a=>a!==10&&a!==13&&a!==58,t,e);if(o=bM(o,!0,!0,a=>a===9||a===32),!sUe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,om(a=>a===32||a===9,t,e),tUe(o)){case"content-disposition":{if(r=s=null,!lB(t,cUe,e)||(e.position+=17,r=m7(t,e),r===null))return"failure";if(lB(t,A7,e)){let a=e.position+A7.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,s=m7(t,e),s===null))return"failure"}break}case"content-type":{let a=om(c=>c!==10&&c!==13,t,e);a=bM(a,!1,!0,c=>c===9||c===32),i=p7(a);break}case"content-transfer-encoding":{let a=om(c=>c!==10&&c!==13,t,e);a=bM(a,!1,!0,c=>c===9||c===32),n=p7(a);break}default:om(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function m7(t,e){cB(t[e.position-1]===34);let r=om(s=>s!==10&&s!==13&&s!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function om(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}function bM(t,e,r,s){let i=0,n=t.length-1;if(e)for(;i<t.length&&s(t[i]);)i++;if(r)for(;n>0&&s(t[n]);)n--;return i===0&&n===t.length-1?t:t.subarray(i,n+1)}function lB(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}g7.exports={multipartFormDataParser:fUe,validateBoundary:dUe}});var lm=A((fkt,v7)=>{"use strict";var yC=it(),{ReadableStreamFrom:AUe,isBlobLike:E7,isReadableStreamLike:mUe,readableStreamClose:gUe,createDeferredPromise:yUe,fullyReadBody:EUe,extractMimeType:CUe,utf8DecodeBytes:b7}=kn(),{FormData:C7}=gC(),{kState:cm}=Oh(),{webidl:IUe}=Ms(),{Blob:bUe}=require("node:buffer"),wM=require("node:assert"),{isErrored:w7,isDisturbed:wUe}=require("node:stream"),{isArrayBuffer:SUe}=require("node:util/types"),{serializeAMimeType:BUe}=sn(),{multipartFormDataParser:xUe}=y7(),SM;try{let t=require("node:crypto");SM=e=>t.randomInt(0,e)}catch{SM=t=>Math.floor(Math.random(t))}var uB=new TextEncoder;function NUe(){}var S7=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,B7;S7&&(B7=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!wUe(e)&&!w7(e)&&e.cancel("Response object has been garbage collected").catch(NUe)}));function x7(t,e=!1){let r=null;t instanceof ReadableStream?r=t:E7(t)?r=t.stream():r=new ReadableStream({async pull(c){let l=typeof i=="string"?uB.encode(i):i;l.byteLength&&c.enqueue(l),queueMicrotask(()=>gUe(c))},start(){},type:"bytes"}),wM(mUe(r));let s=null,i=null,n=null,o=null;if(typeof t=="string")i=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(SUe(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(yC.isFormDataLike(t)){let c=`----formdata-undici-0${`${SM(1e11)}`.padStart(11,"0")}`,l=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),h=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],f=new Uint8Array([13,10]);n=0;let p=!1;for(let[E,y]of t)if(typeof y=="string"){let C=uB.encode(l+`; name="${u(h(E))}"\r
var Dde=Object.create;var FE=Object.defineProperty;var Ode=Object.getOwnPropertyDescriptor;var Mde=Object.getOwnPropertyNames;var Lde=Object.getPrototypeOf,Fde=Object.prototype.hasOwnProperty;var o=(t,e)=>FE(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ude=(t,e)=>{for(var r in e)FE(t,r,{get:e[r],enumerable:!0})},qde=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mde(e))!Fde.call(t,s)&&s!==r&&FE(t,s,{get:()=>e[s],enumerable:!(n=Ode(e,s))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?Dde(Lde(t)):{},qde(e||!t||!t.__esModule?FE(r,"default",{value:t,enumerable:!0}):r,t));var lH=m(Bd=>{"use strict";var aXe=require("net"),cfe=require("tls"),Hx=require("http"),oH=require("https"),lfe=require("events"),cXe=require("assert"),ufe=require("util");Bd.httpOverHttp=dfe;Bd.httpsOverHttp=Afe;Bd.httpOverHttps=pfe;Bd.httpsOverHttps=ffe;function dfe(t){var e=new sa(t);return e.request=Hx.request,e}o(dfe,"httpOverHttp");function Afe(t){var e=new sa(t);return e.request=Hx.request,e.createSocket=aH,e.defaultPort=443,e}o(Afe,"httpsOverHttp");function pfe(t){var e=new sa(t);return e.request=oH.request,e}o(pfe,"httpOverHttps");function ffe(t){var e=new sa(t);return e.request=oH.request,e.createSocket=aH,e.defaultPort=443,e}o(ffe,"httpsOverHttps");function sa(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Hx.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,s,i,a){for(var c=cH(s,i,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(sa,"TunnelingAgent");ufe.inherits(sa,lfe.EventEmitter);sa.prototype.addRequest=o(function(e,r,n,s){var i=this,a=Vx({request:e},i.options,cH(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");sa.prototype.createSocket=o(function(e,r){var n=this,s={};n.sockets.push(s);var i=Vx({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),ic("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){ic("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+A.statusCode);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}if(f.length>0){ic("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(s);return}return ic("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),ic(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),n.removeSocket(s)}o(d,"onError")},"createSocket");sa.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}},"removeSocket");function aH(t,e){var r=this;sa.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=Vx({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),a=cfe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(aH,"createSecureSocket");function cH(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(cH,"toOptions");function Vx(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,a=s.length;i<a;++i){var c=s[i];n[c]!==void 0&&(t[c]=n[c])}}return t}o(Vx,"mergeOptions");var ic;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ic=o(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):ic=o(function(){},"debug");Bd.debug=ic});var kf=m((dXe,uH)=>{uH.exports=lH()});var At=m((AXe,dH)=>{dH.exports={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"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var _e=m((pXe,OH)=>{"use strict";var AH=Symbol.for("undici.error.UND_ERR"),pt=class extends Error{static{o(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[AH]===!0}[AH]=!0},pH=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),zx=class extends pt{static{o(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[pH]===!0}[pH]=!0},fH=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),$x=class extends pt{static{o(this,"HeadersTimeoutError")}constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[fH]===!0}[fH]=!0},hH=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),Jx=class extends pt{static{o(this,"HeadersOverflowError")}constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[hH]===!0}[hH]=!0},mH=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Yx=class extends pt{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT" Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(WV,"isValidHeaderValue");function Tme(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let a=n[i-1].trim();if(fme.has(a)){s=a;break}}s!==""&&(t.referrerPolicy=s)}o(Tme,"setRequestReferrerPolicyOnRedirect");function vme(){return"allowed"}o(vme,"crossOriginResourcePolicyCheck");function _me(){return"success"}o(_me,"corsCheck");function Pme(){return"success"}o(Pme,"TAOCheck");function kme(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(kme,"appendFetchMetadata");function Dme(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&UQ(t.origin)&&!UQ(Vf(t))&&(e=null);break;case"same-origin":Ey(t,Vf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Dme,"appendRequestOriginHeader");function _d(t,e){return t}o(_d,"coarsenTime");function Ome(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:_d(t.domainLookupStartTime,r),domainLookupEndTime:_d(t.domainLookupEndTime,r),connectionStartTime:_d(t.connectionStartTime,r),connectionEndTime:_d(t.connectionEndTime,r),secureConnectionStartTime:_d(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Ome,"clampAndCoarsenConnectionTimingInfo");function Mme(t){return _d(yme.now(),t)}o(Mme,"coarsenedSharedCurrentTime");function Lme(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}o(Lme,"createOpaqueTimingInfo");function jV(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(jV,"makePolicyContainer");function Fme(t){return{referrerPolicy:t.referrerPolicy}}o(Fme,"clonePolicyContainer");function Ume(t){let e=t.referrerPolicy;xl(e);let r=null;if(t.referrer==="client"){let c=VV();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=FQ(r),s=FQ(r,!0);n.toString().length>4096&&(n=s);let i=Ey(t,n),a=Hf(n)&&!Hf(t.url);switch(e){case"origin":return s??FQ(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let c=Vf(t);return Ey(n,c)?n:Hf(n)&&!Hf(c)?"no-referrer":s}default:return a?"no-referrer":s}}o(Ume,"determineRequestsReferrer");function FQ(t,e){return xl(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}o(FQ,"stripURLForReferrer");function Hf(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}o(Hf,"isURLPotentiallyTrustworthy");function qme(t,e){if(gy===void 0)return!0;let r=KV(e);if(r==="no metadata"||r.length===0)return!0;let n=Hme(r),s=Vme(r,n);for(let i of s){let a=i.algo,c=i.hash,l=gy.createHash(a).update(t).digest("base64");if(l[l.length-1]==="="&&(l[l.length-2]==="="?l=l.slice(0,-2):l=l.slice(0,-1)),zme(l,c))return!0}return!1}o(qme,"bytesMatch");var Gme=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KV(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=Gme.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();$V.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}o(KV,"parseMetadata");function Hme(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}o(Hme,"getStrongestMetadata");function Vme(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}o(Vme,"filterMetadataListByAlgorithm");function zme(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(t[r]!==e[r]){if(t[r]==="+"&&e[r]==="-"||t[r]==="/"&&e[r]==="_")continue;return!1}return!0}o(zme,"compareBase64Mixed");function $me(t){}o($me,"tryUpgradeReque Line truncated
`);function Qge(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(Qge,"isAsciiString");function Rge(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}o(Rge,"validateBoundary");function Tge(t,e){Cy(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&Iy(t,Nge,i)||i.position===t.length-4&&Iy(t,xge,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=vge(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let h=t.indexOf(n.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",Qge(d)||(d=""),f=new wge([p],u,{type:d})):f=yge(Buffer.from(p)),Cy(uz(l)),Cy(typeof f=="string"&&uz(f)||Ige(f)),s.push(Bge(l,f,u))}}o(Tge,"multipartFormDataParser");function vge(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let a=kd(c=>c!==10&&c!==13&&c!==58,t,e);if(a=JQ(a,!0,!0,c=>c===9||c===32),!Cge.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,kd(c=>c===32||c===9,t,e),Ege(a)){case"content-disposition":{if(r=n=null,!Iy(t,Sge,e)||(e.position+=17,r=pz(t,e),r===null))return"failure";if(Iy(t,Az,e)){let c=e.position+Az.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=pz(t,e),n===null))return"failure"}break}case"content-type":{let c=kd(l=>l!==10&&l!==13,t,e);c=JQ(c,!1,!0,l=>l===9||l===32),s=dz(c);break}case"content-transfer-encoding":{let c=kd(l=>l!==10&&l!==13,t,e);c=JQ(c,!1,!0,l=>l===9||l===32),i=dz(c);break}default:kd(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(vge,"parseMultipartFormDataHeaders");function pz(t,e){Cy(t[e.position-1]===34);let r=kd(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}o(pz,"parseMultipartFormDataName");function kd(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(kd,"collectASequenceOfBytes");function JQ(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}o(JQ,"removeChars");function Iy(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}o(Iy,"bufferStartsWith");fz.exports={multipartFormDataParser:Tge,validateBoundary:Rge}});var Md=m((ZXe,Sz)=>{"use strict";var Jf=Be(),{ReadableStreamFrom:_ge,isBlobLike:mz,isReadableStreamLike:Pge,readableStreamClose:kge,createDeferredPromise:Dge,fullyReadBody:Oge,extractMimeType:Mge,utf8DecodeBytes:yz}=qn(),{FormData:gz}=$f(),{kState:Od}=oc(),{webidl:Lge}=Ir(),{Blob:Fge}=require("node:buffer"),YQ=require("node:assert"),{isErrored:Cz,isDisturbed:Uge}=require("node:stream"),{isArrayBuffer:qge}=require("node:util/types"),{serializeAMimeType:Gge}=An(),{multipartFormDataParser:Hge}=hz(),WQ;try{let t=require("node:crypto");WQ=o(e=>t.randomInt(0,e),"random")}catch{WQ=o(t=>Math.floor(Math.random(t)),"random")}var By=new TextEncoder;function Vge(){}o(Vge,"noop");var Iz=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Bz;Iz&&(Bz=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Uge(e)&&!Cz(e)&&e.cancel("Response object has been garbage collected").catch(Vge)}));function bz(t,e=!1){let r=null;t instanceof ReadableStream?r=t:mz(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof s=="string"?By.encode(s):s;u.byteLength&&l.enqueue(u),queueMicrotask(()=>kge(l))},start(){},type:"bytes"}),YQ(Pge(r));let n=null,s=null,i=null,a=null;if(typeof t=="string")s=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(qge(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(Jf.isFormDataLike(t)){let l=`----formdata-undici-0${`${WQ(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let h=!1;for(let[y,E]of t)if(typeof E=="string"){let C=By.encode(u+`; name="${d(A(y))}"\r
\r
${h(y)}\r
`);d.push(C),n+=C.byteLength}else{let C=uB.encode(`${l}; name="${u(h(E))}"`+(y.name?`; filename="${u(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
${A(E)}\r
`);p.push(C),i+=C.byteLength}else{let C=By.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(C,y,f),typeof y.size=="number"?n+=C.byteLength+y.size+f.byteLength:p=!0}let m=uB.encode(`--${c}--\r
`);d.push(m),n+=m.byteLength,p&&(n=null),i=t,s=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(E7(t))i=t,n=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(yC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:AUe(t)}if((typeof i=="string"||yC.isBuffer(i))&&(n=Buffer.byteLength(i)),s!=null){let c;r=new ReadableStream({async start(){c=s(t)[Symbol.asyncIterator]()},async pull(l){let{value:u,done:h}=await c.next();if(h)queueMicrotask(()=>{l.close(),l.byobRequest?.respond(0)});else if(!w7(r)){let d=new Uint8Array(u);d.byteLength&&l.enqueue(d)}return l.desiredSize>0},async cancel(l){await c.return()},type:"bytes"})}return[{stream:r,source:i,length:n},o]}function vUe(t,e=!1){return t instanceof ReadableStream&&(wM(!yC.isDisturbed(t),"The body has already been consumed."),wM(!t.locked,"The stream is locked.")),x7(t,e)}function RUe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}function TUe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _Ue(t){return{blob(){return am(this,r=>{let s=I7(this);return s===null?s="":s&&(s=BUe(s)),new bUe([r],{type:s})},t)},arrayBuffer(){return am(this,r=>new Uint8Array(r).buffer,t)},text(){return am(this,b7,t)},json(){return am(this,PUe,t)},formData(){return am(this,r=>{let s=I7(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xUe(r,s);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let n=new C7;return n[cm]=i,n}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),n=new C7;for(let[o,a]of i)n.append(o,a);return n}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return am(this,r=>new Uint8Array(r),t)}}}function QUe(t){Object.assign(t.prototype,_Ue(t))}async function am(t,e,r){if(IUe.brandCheck(t,r),N7(t))throw new TypeError("Body is unusable: Body has already been read");TUe(t[cm]);let s=yUe(),i=o=>s.reject(o),n=o=>{try{s.resolve(e(o))}catch(a){i(a)}};return t[cm].body==null?(n(Buffer.allocUnsafe(0)),s.promise):(await EUe(t[cm].body,n,i),s.promise)}function N7(t){let e=t[cm].body;return e!=null&&(e.stream.locked||yC.isDisturbed(e.stream))}function PUe(t){return JSON.parse(b7(t))}function I7(t){let e=t[cm].headersList,r=CUe(e);return r==="failure"?null:r}v7.exports={extractBody:x7,safelyExtractBody:vUe,cloneBody:RUe,mixinBody:QUe,streamRegistry:B7,hasFinalizationRegistry:S7,bodyUnusable:N7}});var F7=A((pkt,L7)=>{"use strict";var Pe=require("node:assert"),Ge=it(),{channels:R7}=WA(),BM=oM(),{RequestContentLengthMismatchError:Sf,ResponseContentLengthMismatchError:OUe,RequestAbortedError:D7,HeadersTimeoutError:DUe,HeadersOverflowError:kUe,SocketError:mB,InformationalError:um,BodyTimeoutError:MUe,HTTPParserError:LUe,ResponseExceededMaxSizeError:FUe}=Et(),{kUrl:k7,kReset:nn,kClient:RM,kParser:Ar,kBlocking:IC,kRunning:Ys,kPending:UUe,kSize:T7,kWriting:kh,kQueue:Na,kNoRef:EC,kKeepAliveDefaultTimeout:qUe,kHostHeader:GUe,kPendingIdx:HUe,kRunningIdx:No,kError:vo,kPipelining:pB,kSocket:hm,kKeepAliveTimeoutValue:gB,kMaxHeadersSize:xM,kKeepAliveMaxTimeout:zUe,kKeepAliveTimeoutThreshold:VUe,kHeadersTimeout:$Ue,kBodyTimeout:jUe,kStrictContentLength:TM,kMaxRequests:_7,kCounter:JUe,kMaxResponseSize:YUe,kOnError:WUe,kResume:Dh,kHTTPContext:M7}=sr(),pc=BZ(),KUe=Buffer.alloc(0),hB=Buffer[Symbol.species],dB=Ge.addListener,XUe=Ge.removeAllListeners,NM;async function ZUe(){let t=process.env.JEST_WORKER_ID?lM():void 0,e;try{e=await WebAssembly.compile(vZ())}catch{e=await WebAssembly.compile(t||lM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,s,i)=>0,wasm_on_status:(r,s,i)=>{Pe(rs.ptr===r);let n=s-mc+Ac.byteOffset;return rs.onStatus(new hB(Ac.buffer,n,i))||0},wasm_on_message_begin:r=>(Pe(rs.ptr===r),rs.onMessageBegin()||0),wasm_on_header_field:(r,s,i)=>{Pe(rs.ptr===r);let n=s-mc+Ac.byteOffset;return rs.onHeaderField(new hB(Ac.buffer,n,i))||0},wasm_on_header_value:(r,s,i)=>{Pe(rs.ptr===r);let n=s-mc+Ac.byteOffset;return rs.onHeaderValue(new hB(Ac.buffer,n,i))||0},wasm_on_headers_complete:(r,s,i,n)=>(Pe(rs.ptr===r),rs.onHeadersComplete(s,!!i,!!n)||0),wasm_on_body:(r,s,i)=>{Pe(rs.ptr===r);let n=s-mc+Ac.byteOffset;return rs.onBody(new hB(Ac.buffer,n,i))||0},wasm_on_message_complete:r=>(Pe(rs.ptr===r),rs.onMessageComplete()||0)}})}var vM=null,_M=ZUe();_M.catch();var rs=null,Ac=null,fB=0,mc=null,eqe=0,CC=1,dm=2|CC,AB=4|CC,QM=8|eqe,PM=class{constructor(e,r,{exports:s}){Pe(Number.isFinite(e[xM])&&e[xM]>0),this.llhttp=s,this.ptr=this.llhttp.llhttp_alloc(pc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this. Line truncated
`;if(typeof i=="string"?m+=`host: ${i}\r
`:m+=t[GUe],n?m+=`connection: upgrade\r
upgrade: ${n}\r
`:t[pB]&&!f[nn]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(l))for(let E=0;E<l.length;E+=2){let y=l[E+0],C=l[E+1];if(Array.isArray(C))for(let w=0;w<C.length;w++)m+=`${y}: ${C[w]}\r
`;else m+=`${y}: ${C}\r
`}return R7.sendHeaders.hasSubscribers&&R7.sendHeaders.publish({request:e,headers:m,socket:f}),!c||d===0?P7(p,null,t,e,f,u,m,h):Ge.isBuffer(c)?P7(p,c,t,e,f,u,m,h):Ge.isBlobLike(c)?typeof c.stream=="function"?O7(p,c.stream(),t,e,f,u,m,h):oqe(p,c,t,e,f,u,m,h):Ge.isStream(c)?nqe(p,c,t,e,f,u,m,h):Ge.isIterable(c)?O7(p,c,t,e,f,u,m,h):Pe(!1),!0}function nqe(t,e,r,s,i,n,o,a){Pe(n!==0||r[Ys]===0,"stream body cannot be pipelined");let c=!1,l=new yB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o}),u=function(p){if(!c)try{!l.write(p)&&this.pause&&this.pause()}catch(m){Ge.destroy(this,m)}},h=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!c){let p=new D7;queueMicrotask(()=>f(p))}},f=function(p){if(!c){if(c=!0,Pe(i.destroyed||i[kh]&&r[Ys]<=1),i.off("drain",h).off("error",f),e.removeListener("data",u).removeListener("end",f).removeListener("close",d),!p)try{l.end()}catch(m){p=m}l.destroy(p),p&&(p.code!=="UND_ERR_INFO"||p.message!=="reset")?Ge.destroy(e,p):Ge.destroy(e)}};e.on("data",u).on("end",f).on("error",f).on("close",d),e.resume&&e.resume(),i.on("drain",h).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function P7(t,e,r,s,i,n,o,a){try{e?Ge.isBuffer(e)&&(Pe(n===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${o}content-length: ${n}\r
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:h=!0}let g=By.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,h&&(i=null),s=t,n=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(mz(t))s=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(Jf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:_ge(t)}if((typeof s=="string"||Jf.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Cz(r)){let p=new Uint8Array(d);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:s,length:i},a]}o(bz,"extractBody");function zge(t,e=!1){return t instanceof ReadableStream&&(YQ(!Jf.isDisturbed(t),"The body has already been consumed."),YQ(!t.locked,"The stream is locked.")),bz(t,e)}o(zge,"safelyExtractBody");function $ge(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o($ge,"cloneBody");function Jge(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(Jge,"throwIfAborted");function Yge(t){return{blob(){return Dd(this,r=>{let n=Ez(this);return n===null?n="":n&&(n=Gge(n)),new Fge([r],{type:n})},t)},arrayBuffer(){return Dd(this,r=>new Uint8Array(r).buffer,t)},text(){return Dd(this,yz,t)},json(){return Dd(this,jge,t)},formData(){return Dd(this,r=>{let n=Ez(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=Hge(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new gz;return i[Od]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new gz;for(let[a,c]of s)i.append(a,c);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Dd(this,r=>new Uint8Array(r),t)}}}o(Yge,"bodyMixinMethods");function Wge(t){Object.assign(t.prototype,Yge(t))}o(Wge,"mixinBody");async function Dd(t,e,r){if(Lge.brandCheck(t,r),wz(t))throw new TypeError("Body is unusable: Body has already been read");Jge(t[Od]);let n=Dge(),s=o(a=>n.reject(a),"errorSteps"),i=o(a=>{try{n.resolve(e(a))}catch(c){s(c)}},"successSteps");return t[Od].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await Oge(t[Od].body,i,s),n.promise)}o(Dd,"consumeBody");function wz(t){let e=t[Od].body;return e!=null&&(e.stream.locked||Jf.isDisturbed(e.stream))}o(wz,"bodyUnusable");function jge(t){return JSON.parse(yz(t))}o(jge,"parseJSONFromBytes");function Ez(t){let e=t[Od].headersList,r=Mge(e);return r==="failure"?null:r}o(Ez,"bodyMimeType");Sz.exports={extractBody:bz,safelyExtractBody:zge,cloneBody:$ge,mixinBody:Wge,streamRegistry:Bz,hasFinalizationRegistry:Iz,bodyUnusable:wz}});var qz=m((tZe,Uz)=>{"use strict";var X=require("node:assert"),te=Be(),{channels:Nz}=wd(),jQ=vQ(),{RequestContentLengthMismatchError:Ql,ResponseContentLengthMismatchError:xz,RequestAbortedError:Dz,InvalidArgumentError:Kge,HeadersTimeoutError:Xge,HeadersOverflowError:Zge,SocketError:Ld,InformationalError:Fd,BodyTimeoutError:eEe,HTTPParserError:tEe,ResponseExceededMaxSizeError:rEe}=_e(),{kUrl:Oz,kReset:pn,kClient:Ny,kParser:ot,kBlocking:jf,kRunning:$t,kPending:Mz,kSize:Qz,kWriting:ac,kQueue:ai,kNoRef:Yf,kKeepAliveDefaultTimeout:nEe,kHostHeader:sEe,kPendingIdx:iEe,kRunningIdx:ys,kError:zr,kPipelining:xy,kSocket:Tl,kKeepAliveTimeoutValue:Ry,kMaxHeadersSize:KQ,kKeepAliveMaxTimeout:oEe,kKeepAliveTimeoutThreshold:aEe,kHeadersTimeout:cEe,kBodyTimeout:lEe,kStrictContentLength:eR,kMaxRequests:Rz,kCounter:uEe,kMaxResponseSize:dEe,kOnError:Tz,kResume:ua,kHTTPContext:Lz}=At(),Gn=BV(),vz=Buffer.alloc(0),by=Buffer[Symbol.species],wy=te.addListener,AEe=te.removeAllListeners,vl=Symbol("kIdleSocketValidation"),Rl=Symbol("kIdleSocketValidationTimeout"),sR=Symbol("kSocketUsed"),XQ;async function pEe(){let t=process.env.JEST_WORKER_ID?kQ():void 0,e;try{e=await WebAssembly.compile(SV())}catch{e=await WebAssembly.compile(t||kQ())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,s)=>0,"wasm_on_url"),wasm_on_status:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.onStatus(new by(qi.buffer,i,s))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(X(St.ptr===r),St.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.onHeaderField(new by(qi.buffer,i,s))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.onHeaderValue(new by(qi.buffer,i,s))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,s,i)=>(X(St.ptr===r),St.onHeadersComplete(n,!!s,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,s)=>{X(St.ptr===r);let i=n-Gi+qi.byteOffset;return St.o Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[sEe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[xy]&&!f[pn]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${E}: ${C[I]}\r
`;else g+=`${E}: ${C}\r
`}return Nz.sendHeaders.hasSubscribers&&Nz.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?Pz(h,null,t,e,f,d,g,A):te.isBuffer(l)?Pz(h,l,t,e,f,d,g,A):te.isBlobLike(l)?typeof l.stream=="function"?kz(h,l.stream(),t,e,f,d,g,A):IEe(h,l,t,e,f,d,g,A):te.isStream(l)?CEe(h,l,t,e,f,d,g,A):te.isIterable(l)?kz(h,l,t,e,f,d,g,A):X(!1),!0}o(yEe,"writeH1");function CEe(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"stream body cannot be pipelined");let l=!1,u=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){te.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let h=new Dz;queueMicrotask(()=>f(h))}},"onClose"),f=o(function(h){if(!l){if(l=!0,X(s.destroyed||s[ac]&&r[$t]<=1),s.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?te.destroy(e,h):te.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),s.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(CEe,"writeStream");function Pz(t,e,r,n,s,i,a,c){try{e?te.isBuffer(e)&&(X(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),i.write(e),i.uncork(),s.onBodySent(e),!a&&s.reset!==!1&&(i[nn]=!0)):n===0?i.write(`${o}content-length: 0\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(s[pn]=!0)):i===0?s.write(`${a}content-length: 0\r
\r
`,"latin1"):(Pe(n===null,"no body must not have content length"),i.write(`${o}\r
`,"latin1")),s.onRequestSent(),r[Dh]()}catch(c){t(c)}}async function oqe(t,e,r,s,i,n,o,a){Pe(n===e.size,"blob body must have content length");try{if(n!=null&&n!==e.size)throw new Sf;let c=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${o}content-length: ${n}\r
`,"latin1"):(X(i===null,"no body must not have content length"),s.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[ua]()}catch(l){t(l)}}o(Pz,"writeBuffer");async function IEe(t,e,r,n,s,i,a,c){X(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Ql;let l=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${a}content-length: ${i}\r
\r
`,"latin1"),i.write(c),i.uncork(),s.onBodySent(c),s.onRequestSent(),!a&&s.reset!==!1&&(i[nn]=!0),r[Dh]()}catch(c){t(c)}}async function O7(t,e,r,s,i,n,o,a){Pe(n!==0||r[Ys]===0,"iterator body cannot be pipelined");let c=null;function l(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,f)=>{Pe(c===null),i[vo]?f(i[vo]):c=d});i.on("close",l).on("drain",l);let h=new yB({abort:t,socket:i,request:s,contentLength:n,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(i[vo])throw i[vo];h.write(d)||await u()}h.end()}catch(d){h.destroy(d)}finally{i.off("close",l).off("drain",l)}}var yB=class{constructor({abort:e,socket:r,request:s,contentLength:i,client:n,expectsPayload:o,header:a}){this.socket=r,this.request=s,this.contentLength=i,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[kh]=!0}write(e){let{socket:r,request:s,contentLength:i,client:n,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[vo])throw r[vo];if(r.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(i!==null&&o+l>i){if(n[TM])throw new Sf;process.emitWarning(new Sf)}r.cork(),o===0&&(!a&&s.reset!==!1&&(r[nn]=!0),i===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${i}\r
`,"latin1"),s.write(l),s.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(s[pn]=!0),r[ua]()}catch(l){t(l)}}o(IEe,"writeBlob");async function kz(t,e,r,n,s,i,a,c){X(i!==0||r[$t]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{X(l===null),s[zr]?f(s[zr]):l=p}),"waitForDrain");s.on("close",u).on("drain",u);let A=new Ty({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(s[zr])throw s[zr];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{s.off("close",u).off("drain",u)}}o(kz,"writeIterable");var Ty=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ac]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[zr])throw r[zr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(s!==null&&a+u>s){if(i[eR])throw new Ql;process.emitWarning(new Ql)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[pn]=!0),s===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${s}\r
\r
`,"latin1")),i===null&&r.write(`\r
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let u=r.write(e);return r.uncork(),s.onBodySent(e),u||r[Ar].timeout&&r[Ar].timeoutType===dm&&r[Ar].timeout.refresh&&r[Ar].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:s,bytesWritten:i,expectsPayload:n,header:o,request:a}=this;if(a.onRequestSent(),e[kh]=!1,e[vo])throw e[vo];if(!e.destroyed){if(i===0?n?e.write(`${o}content-length: 0\r
`,"latin1")),s===null&&r.write(`\r
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),n.onBodySent(e),d||r[ot].timeout&&r[ot].timeoutType===Ud&&r[ot].timeout.refresh&&r[ot].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[ac]=!1,e[zr])throw e[zr];if(!e.destroyed){if(s===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&i!==r){if(s[TM])throw new Sf;process.emitWarning(new Sf)}e[Ar].timeout&&e[Ar].timeoutType===dm&&e[Ar].timeout.refresh&&e[Ar].timeout.refresh(),s[Dh]()}}destroy(e){let{socket:r,client:s,abort:i}=this;r[kh]=!1,e&&(Pe(s[Ys]<=1,"pipeline should only contain this request"),i(e))}};L7.exports=tqe});var j7=A((Akt,$7)=>{"use strict";var Ro=require("node:assert"),{pipeline:aqe}=require("node:stream"),lt=it(),{RequestContentLengthMismatchError:OM,RequestAbortedError:U7,SocketError:bC,InformationalError:DM}=Et(),{kUrl:EB,kReset:IB,kClient:fm,kRunning:bB,kPending:cqe,kQueue:Mh,kPendingIdx:kM,kRunningIdx:va,kError:Ta,kSocket:fs,kStrictContentLength:lqe,kOnError:MM,kMaxConcurrentStreams:V7,kHTTP2Session:Ra,kResume:Lh,kSize:uqe,kHTTPContext:hqe}=sr(),nu=Symbol("open streams"),q7,G7=!1,CB;try{CB=require("node:http2")}catch{CB={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:dqe,HTTP2_HEADER_METHOD:fqe,HTTP2_HEADER_PATH:pqe,HTTP2_HEADER_SCHEME:Aqe,HTTP2_HEADER_CONTENT_LENGTH:mqe,HTTP2_HEADER_EXPECT:gqe,HTTP2_HEADER_STATUS:yqe}}=CB;function Eqe(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let i of s)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(s));return e}async function Cqe(t,e){t[fs]=e,G7||(G7=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=CB.connect(t[EB],{createConnection:()=>e,peerMaxConcurrentStreams:t[V7]});r[nu]=0,r[fm]=t,r[fs]=e,lt.addListener(r,"error",bqe),lt.addListener(r,"frameError",wqe),lt.addListener(r,"end",Sqe),lt.addListener(r,"goaway",Bqe),lt.addListener(r,"close",function(){let{[fm]:i}=this,{[fs]:n}=i,o=this[fs][Ta]||this[Ta]||new bC("closed",lt.getSocketInfo(n));if(i[Ra]=null,i.destroyed){Ro(i[cqe]===0);let a=i[Mh].splice(i[va]);for(let c=0;c<a.length;c++){let l=a[c];lt.errorRequest(i,l,o)}}}),r.unref(),t[Ra]=r,e[Ra]=r,lt.addListener(e,"error",function(i){Ro(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=i,this[fm][MM](i)}),lt.addListener(e,"end",function(){lt.destroy(this,new bC("other side closed",lt.getSocketInfo(this)))}),lt.addListener(e,"close",function(){let i=this[Ta]||new bC("closed",lt.getSocketInfo(this));t[fs]=null,this[Ra]!=null&&this[Ra].destroy(i),t[kM]=t[va],Ro(t[bB]===0),t.emit("disconnect",t[EB],[t],i),t[Lh]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return Nqe(t,...i)},resume(){Iqe(t)},destroy(i,n){s?queueMicrotask(n):e.destroy(i).on("close",n)},get destroyed(){return e.destroyed},busy(){return!1}}}function Iqe(t){let e=t[fs];e?.destroyed===!1&&(t[uqe]===0&&t[V7]===0?(e.unref(),t[Ra].unref()):(e.ref(),t[Ra].ref()))}function bqe(t){Ro(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[fs][Ta]=t,this[fm][MM](t)}function wqe(t,e,r){if(r===0){let s=new DM(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[fs][Ta]=s,this[fm][MM](s)}}function Sqe(){let t=new bC("other side closed",lt.getSocketInfo(this[fs]));this.destroy(t),lt.destroy(this[fs],t)}function Bqe(t){let e=this[Ta]||new bC(`HTTP/2: "GOAWAY" frame received with code ${t}`,lt.getSocketInfo(this)),r=this[fm];if(r[fs]=null,r[hqe]=null,this[Ra]!=null&&(this[Ra].destroy(e),this[Ra]=null),lt.destroy(this[fs],e),r[va]<r[Mh].length){let s=r[Mh][r[va]];r[Mh][r[va]++]=null,lt.errorRequest(r,s,e),r[kM]=r[va]}Ro(r[bB]===0),r.emit("disconnect",r[EB],[r],e),r[Lh]()}function xqe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function Nqe(t,e){let r=t[Ra],{method:s,path:i,host:n,upgrade:o,expectContinue:a,signal:c,headers:l}=e,{body:u}=e;if(o)return lt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let h={};for(let B=0;B<l.length;B+=2){let N=l[B+0],P=l[B+1];if(Array.isArray(P))for(let Q=0;Q<P.length;Q++)h[N]?h[N]+=`,${P[Q]}`:h[N]=P[Q];else h[N]=P}let d,{hostname:f,port:p}=t[EB];h[dqe]=n||`${f}${p?`:${p}`:""}`,h[fqe]=s;let m=B=>{e.aborted||e.completed||(B=B||new U7,lt.errorRequest(t,e,B),d!=null&&lt.destroy(d,B),lt.destroy(u,B),t[Mh][t[va]++]=null,t[Lh]())};try{e.onConnect(m)}catch(B){lt.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(h,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[nu],t[Mh][t[va]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[nu],t[Mh][t[va]++]=null}),d.once("close",()=>{r[nu]-=1,r[nu]===0&&r.unref()}),!0;h[pqe]=i,h[Aqe]="https";let E=s==="PUT"||s==="POST"||s==="PATCH";u&&typeof u.read=="function"&&u.read(0);let y=lt.bodyLength(u);if(lt.isFormDataLike(u)){q7??=lm().extractBody;let[B,N]=q7(u);h["content-type"]=N,u=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),xqe(s)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[lqe])return lt.errorRequest(t,e,new OM),!1;process.emitWarning(new OM)}y!=null&&(Ro(u,"no body must not have content length"),h[mqe]=`${y}`),r.ref();let C=s==="GET"||s==="HEAD"||u===null;return a?(h[gqe]="100-continue",d=r.request(h,{endStream:C,signal:c}),d.once(" Line truncated
`,this[Zqe]=c??3e5,this[Xqe]=i??3e5,this[eGe]=C??!0,this[tGe]=B,this[qM]=P,this[Uh]=null,this[oGe]=k>-1?k:-1,this[cGe]=L??100,this[_r]=null,this[_a]=[],this[au]=0,this[Qa]=0,this[xC]=$=>HM(this,$),this[aGe]=$=>nee(this,$)}get pipelining(){return this[xB]}set pipelining(e){this[xB]=e,this[xC](!0)}get[RC](){return this[_a].length-this[Qa]}get[vC](){return this[Qa]-this[au]}get[NC](){return this[_a].length-this[au]}get[Vqe](){return!!this[_r]&&!this[Am]&&!this[_r].destroyed}get[UM](){return!!(this[_r]?.busy(null)||this[NC]>=(iee(this)||1)||this[RC]>0)}[zqe](e){oee(this),this.once("connect",e)}[nGe](e,r){let s=e.origin||this[yc].origin,i=new Lqe(s,e,r);return this[_a].push(i),this[xf]||(Bf.bodyLength(i.body)==null&&Bf.isIterable(i.body)?(this[xf]=1,queueMicrotask(()=>HM(this))):this[xC](!0)),this[xf]&&this[qh]!==2&&this[UM]&&(this[qh]=2),this[qh]<2}async[sGe](){return new Promise(e=>{this[NC]?this[Uh]=e:e(null)})}async[iGe](e){return new Promise(r=>{let s=this[_a].splice(this[Qa]);for(let n=0;n<s.length;n++){let o=s[n];Bf.errorRequest(this,o,e)}let i=()=>{this[Uh]&&(this[Uh](),this[Uh]=null),r(null)};this[_r]?(this[_r].destroy(e,i),this[_r]=null):queueMicrotask(i),this[xC]()})}},hGe=BB();function nee(t,e){if(t[vC]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ou(t[Qa]===t[au]);let r=t[_a].splice(t[au]);for(let s=0;s<r.length;s++){let i=r[s];Bf.errorRequest(t,i,e)}ou(t[NC]===0)}}async function oee(t){ou(!t[Am]),ou(!t[_r]);let{host:e,hostname:r,protocol:s,port:i}=t[yc];if(r[0]==="["){let n=r.indexOf("]");ou(n!==-1);let o=r.substring(1,n);ou(see.isIP(o)),r=o}t[Am]=!0,pm.beforeConnect.hasSubscribers&&pm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[_r]?.version,servername:t[Fh],localAddress:t[BC]},connector:t[SC]});try{let n=await new Promise((o,a)=>{t[SC]({host:e,hostname:r,protocol:s,port:i,servername:t[Fh],localAddress:t[BC]},(c,l)=>{c?a(c):o(l)})});if(t.destroyed){Bf.destroy(n.on("error",tee),new qqe);return}ou(n);try{t[_r]=n.alpnProtocol==="h2"?await uGe(t,n):await lGe(t,n)}catch(o){throw n.destroy().on("error",tee),o}t[Am]=!1,n[rGe]=0,n[qM]=t[qM],n[Hqe]=t,n[jqe]=null,pm.connected.hasSubscribers&&pm.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[_r]?.version,servername:t[Fh],localAddress:t[BC]},connector:t[SC],socket:n}),t.emit("connect",t[yc],[t])}catch(n){if(t.destroyed)return;if(t[Am]=!1,pm.connectError.hasSubscribers&&pm.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:i,version:t[_r]?.version,servername:t[Fh],localAddress:t[BC]},connector:t[SC],error:n}),n.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ou(t[vC]===0);t[RC]>0&&t[_a][t[Qa]].servername===t[Fh];){let o=t[_a][t[Qa]++];Bf.errorRequest(t,o,n)}else nee(t,n);t.emit("connectionError",t[yc],[t],n)}t[xC]()}function ree(t){t[qh]=0,t.emit("drain",t[yc],[t])}function HM(t,e){t[xf]!==2&&(t[xf]=2,dGe(t,e),t[xf]=0,t[au]>256&&(t[_a].splice(0,t[au]),t[Qa]-=t[au],t[au]=0))}function dGe(t,e){for(;;){if(t.destroyed){ou(t[RC]===0);return}if(t[Uh]&&!t[NC]){t[Uh](),t[Uh]=null;return}if(t[_r]&&t[_r].resume(),t[UM])t[qh]=2;else if(t[qh]===2){e?(t[qh]=1,queueMicrotask(()=>ree(t))):ree(t);continue}if(t[RC]===0||t[vC]>=(iee(t)||1))return;let r=t[_a][t[Qa]];if(t[yc].protocol==="https:"&&t[Fh]!==r.servername){if(t[vC]>0)return;t[Fh]=r.servername,t[_r]?.destroy(new Uqe("servername changed"),()=>{t[_r]=null,HM(t)})}if(t[Am])return;if(!t[_r]){oee(t);return}if(t[_r].destroyed||t[_r].busy(r))return;!r.aborted&&t[_r].write(r)?t[Qa]++:t[_a].splice(t[Qa],1)}}aee.exports=GM});var zM=A((Ckt,cee)=>{"use strict";var NB=class{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};cee.exports=class{constructor(){this.head=this.tail=new NB}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new NB),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var uee=A((Ikt,lee)=>{var{kFree:fGe,kConnected:pGe,kPending:AGe,kQueued:mGe,kRunning:gGe,kSize:yGe}=sr(),Nf=Symbol("pool"),VM=class{constructor(e){this[Nf]=e}get connected(){return this[Nf][pGe]}get free(){return this[Nf][fGe]}get pending(){return this[Nf][AGe]}get queued(){return this[Nf][mGe]}get running(){return this[Nf][gGe]}get size(){return this[Nf][yGe]}};lee.exports=VM});var KM=A((bkt,Cee)=>{"use strict";var EGe=em(),CGe=zM(),{kConnected:$M,kSize:hee,kRunning:dee,kPending:fee,kQueued:TC,kBusy:IGe,kFree:bGe,kUrl:wGe,kClose:SGe,kDestroy:BGe,kDispatch:xGe}=sr(),NGe=uee(),on=Symbol("clients"),bi=Symbol("needDrain"),_C=Symbol("queue"),jM=Symbol("closed resolve"),JM=Symbol("onDrain"),pee=Symbol("onConnect"),Aee=Symbol("onDisconnect"),mee=Symbol("onConnec Line truncated
${s.count} ${s.noun} ${s.is} pending:
`,"latin1"),r!==null&&s!==r){if(n[eR])throw new Ql;process.emitWarning(new Ql)}e[ot].timeout&&e[ot].timeoutType===Ud&&e[ot].timeout.refresh&&e[ot].timeout.refresh(),n[ua]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[ac]=!1,e&&(X(n[$t]<=1,"pipeline should only contain this request"),s(e))}};Uz.exports=hEe});var Wz=m((nZe,Yz)=>{"use strict";var Cs=require("node:assert"),{pipeline:BEe}=require("node:stream"),Ne=Be(),{RequestContentLengthMismatchError:iR,RequestAbortedError:Gz,SocketError:Kf,InformationalError:oR}=_e(),{kUrl:vy,kReset:Py,kClient:qd,kRunning:ky,kPending:bEe,kQueue:cc,kPendingIdx:aR,kRunningIdx:ci,kError:ui,kSocket:dr,kStrictContentLength:wEe,kOnError:cR,kMaxConcurrentStreams:Jz,kHTTP2Session:li,kResume:lc,kSize:SEe,kHTTPContext:NEe}=At(),da=Symbol("open streams"),Hz,Vz=!1,_y;try{_y=require("node:http2")}catch{_y={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xEe,HTTP2_HEADER_METHOD:QEe,HTTP2_HEADER_PATH:REe,HTTP2_HEADER_SCHEME:TEe,HTTP2_HEADER_CONTENT_LENGTH:vEe,HTTP2_HEADER_EXPECT:_Ee,HTTP2_HEADER_STATUS:PEe}}=_y;function kEe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}o(kEe,"parseH2Headers");async function DEe(t,e){t[dr]=e,Vz||(Vz=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=_y.connect(t[vy],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Jz]});r[da]=0,r[qd]=t,r[dr]=e,Ne.addListener(r,"error",MEe),Ne.addListener(r,"frameError",LEe),Ne.addListener(r,"end",FEe),Ne.addListener(r,"goaway",UEe),Ne.addListener(r,"close",function(){let{[qd]:s}=this,{[dr]:i}=s,a=this[dr][ui]||this[ui]||new Kf("closed",Ne.getSocketInfo(i));if(s[li]=null,s.destroyed){Cs(s[bEe]===0);let c=s[cc].splice(s[ci]);for(let l=0;l<c.length;l++){let u=c[l];Ne.errorRequest(s,u,a)}}}),r.unref(),t[li]=r,e[li]=r,Ne.addListener(e,"error",function(s){Cs(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ui]=s,this[qd][cR](s)}),Ne.addListener(e,"end",function(){Ne.destroy(this,new Kf("other side closed",Ne.getSocketInfo(this)))}),Ne.addListener(e,"close",function(){let s=this[ui]||new Kf("closed",Ne.getSocketInfo(this));t[dr]=null,this[li]!=null&&this[li].destroy(s),t[aR]=t[ci],Cs(t[ky]===0),t.emit("disconnect",t[vy],[t],s),t[lc]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return GEe(t,...s)},resume(){OEe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(DEe,"connectH2");function OEe(t){let e=t[dr];e?.destroyed===!1&&(t[SEe]===0&&t[Jz]===0?(e.unref(),t[li].unref()):(e.ref(),t[li].ref()))}o(OEe,"resumeH2");function MEe(t){Cs(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[dr][ui]=t,this[qd][cR](t)}o(MEe,"onHttp2SessionError");function LEe(t,e,r){if(r===0){let n=new oR(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[dr][ui]=n,this[qd][cR](n)}}o(LEe,"onHttp2FrameError");function FEe(){let t=new Kf("other side closed",Ne.getSocketInfo(this[dr]));this.destroy(t),Ne.destroy(this[dr],t)}o(FEe,"onHttp2SessionEnd");function UEe(t){let e=this[ui]||new Kf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ne.getSocketInfo(this)),r=this[qd];if(r[dr]=null,r[NEe]=null,this[li]!=null&&(this[li].destroy(e),this[li]=null),Ne.destroy(this[dr],e),r[ci]<r[cc].length){let n=r[cc][r[ci]];r[cc][r[ci]++]=null,Ne.errorRequest(r,n,e),r[aR]=r[ci]}Cs(r[ky]===0),r.emit("disconnect",r[vy],[r],e),r[lc]()}o(UEe,"onHTTP2GoAway");function qEe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(qEe,"shouldSendContentLength");function GEe(t,e){let r=t[li],{method:n,path:s,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Ne.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let b=0;b<u.length;b+=2){let N=u[b+0],Q=u[b+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:h}=t[vy];A[xEe]=i||`${f}${h?`:${h}`:""}`,A[QEe]=n;let g=o(b=>{e.aborted||e.completed||(b=b||new Gz,Ne.errorRequest(t,e,b),p!=null&&Ne.destroy(p,b),Ne.destroy(d,b),t[cc][t[ci]++]=null,t[lc]())},"abort");try{e.onConnect(g)}catch(b){Ne.errorRequest(t,e,b)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[da],t[cc][t[ci]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[da],t[cc][t[ci]++]=null}),p.once("close",()=>{r[da]-=1,r[da]===0&&r.unref()}),!0;A[REe]=s,A[TEe]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Ne.bodyLength(d);if(Ne.isFormDataLike(d)){Hz??=Md().extractBody;let[b,N]=Hz(d);A["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),qEe(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[wEe])return Ne.errorRequest(t,e,n Line truncated
`,this[fye]=l??3e5,this[pye]=s??3e5,this[hye]=C??!0,this[mye]=b,this[AR]=Q,this[dc]=null,this[Iye]=ce>-1?ce:-1,this[bye]=Ye??100,this[Ot]=null,this[di]=[],this[pa]=0,this[Ai]=0,this[th]=de=>fR(this,de),this[Bye]=de=>a$(this,de)}get pipelining(){return this[Ly]}set pipelining(e){this[Ly]=e,this[th](!0)}get[sh](){return this[di].length-this[Ai]}get[nh](){return this[Ai]-this[pa]}get[rh](){return this[di].length-this[pa]}get[oye](){return!!this[Ot]&&!this[Hd]&&!this[Ot].destroyed}get[dR](){return!!(this[Ot]?.busy(null)||this[rh]>=(o$(this)||1)||this[sh]>0)}[iye](e){c$(this),this.once("connect",e)}[Cye](e,r){let n=e.origin||this[Vi].origin,s=new ZEe(n,e,r);return this[di].push(s),this[Pl]||(_l.bodyLength(s.body)==null&&_l.isIterable(s.body)?(this[Pl]=1,queueMicrotask(()=>fR(this))):this[th](!0)),this[Pl]&&this[Ac]!==2&&this[dR]&&(this[Ac]=2),this[Ac]<2}async[Eye](){return new Promise(e=>{this[rh]?this[dc]=e:e(null)})}async[yye](e){return new Promise(r=>{let n=this[di].splice(this[Ai]);for(let i=0;i<n.length;i++){let a=n[i];_l.errorRequest(this,a,e)}let s=o(()=>{this[dc]&&(this[dc](),this[dc]=null),r(null)},"callback");this[Ot]?(this[Ot].destroy(e,s),this[Ot]=null):queueMicrotask(s),this[th]()})}},Nye=My();function a$(t,e){if(t[nh]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Aa(t[Ai]===t[pa]);let r=t[di].splice(t[pa]);for(let n=0;n<r.length;n++){let s=r[n];_l.errorRequest(t,s,e)}Aa(t[rh]===0)}}o(a$,"onError");async function c$(t){Aa(!t[Hd]),Aa(!t[Ot]);let{host:e,hostname:r,protocol:n,port:s}=t[Vi];if(r[0]==="["){let i=r.indexOf("]");Aa(i!==-1);let a=r.substring(1,i);Aa(i$.isIP(a)),r=a}t[Hd]=!0,Gd.beforeConnect.hasSubscribers&&Gd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[eh]},connector:t[Zf]});try{let i=await new Promise((a,c)=>{t[Zf]({host:e,hostname:r,protocol:n,port:s,servername:t[uc],localAddress:t[eh]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){_l.destroy(i.on("error",n$),new rye);return}Aa(i);try{t[Ot]=i.alpnProtocol==="h2"?await Sye(t,i):await wye(t,i)}catch(a){throw i.destroy().on("error",n$),a}t[Hd]=!1,i[gye]=0,i[AR]=t[AR],i[sye]=t,i[cye]=null,Gd.connected.hasSubscribers&&Gd.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[eh]},connector:t[Zf],socket:i}),t.emit("connect",t[Vi],[t])}catch(i){if(t.destroyed)return;if(t[Hd]=!1,Gd.connectError.hasSubscribers&&Gd.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Ot]?.version,servername:t[uc],localAddress:t[eh]},connector:t[Zf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Aa(t[nh]===0);t[sh]>0&&t[di][t[Ai]].servername===t[uc];){let a=t[di][t[Ai]++];_l.errorRequest(t,a,i)}else a$(t,i);t.emit("connectionError",t[Vi],[t],i)}t[th]()}o(c$,"connect");function s$(t){t[Ac]=0,t.emit("drain",t[Vi],[t])}o(s$,"emitDrain");function fR(t,e){t[Pl]!==2&&(t[Pl]=2,xye(t,e),t[Pl]=0,t[pa]>256&&(t[di].splice(0,t[pa]),t[Ai]-=t[pa],t[pa]=0))}o(fR,"resume");function xye(t,e){for(;;){if(t.destroyed){Aa(t[sh]===0);return}if(t[dc]&&!t[rh]){t[dc](),t[dc]=null;return}if(t[Ot]&&t[Ot].resume(),t[dR])t[Ac]=2;else if(t[Ac]===2){e?(t[Ac]=1,queueMicrotask(()=>s$(t))):s$(t);continue}if(t[sh]===0||t[nh]>=(o$(t)||1))return;let r=t[di][t[Ai]];if(t[Vi].protocol==="https:"&&t[uc]!==r.servername){if(t[nh]>0)return;t[uc]=r.servername,t[Ot]?.destroy(new tye("servername changed"),()=>{t[Ot]=null,fR(t)})}if(t[Hd])return;if(!t[Ot]){c$(t);return}if(t[Ot].destroyed||t[Ot].busy(r))return;!r.aborted&&t[Ot].write(r)?t[Ai]++:t[di].splice(t[Ai],1)}}o(xye,"_resume");l$.exports=pR});var hR=m((AZe,u$)=>{"use strict";var Fy=class{static{o(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};u$.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Fy}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Fy),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var A$=m((fZe,d$)=>{var{kFree:Qye,kConnected:Rye,kPending:Tye,kQueued:vye,kRunning:_ye,kSize:Pye}=At(),kl=Symbol("pool"),mR=class{static{o(this,"PoolStats")}constructor(e){this[kl]=e}get connected(){return this[kl][Rye]}get free(){return this[kl][Qye]}get pending(){return this[kl][Tye]}get queued(){return this[kl][vye]}get running(){return this[kl][_ye]}get size(){return this[kl][Pye]}};d$.exports=mR});var BR=m((mZe,B$)=>{"use strict";var kye=Qd(),Dye=hR(),{kConnected:gR,kSize:p$,kRunning:f$,kPending:h$,kQueued:ih,kBusy:Oye,kFree:Mye,kUrl:Lye,kClose:Fye,kDestroy:Uye,kDispatch:qye}=At(),Gye=A$(),fn=Symbol("cl Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};xre.exports=KL});var VB=A((Wkt,_re)=>{"use strict";var vre=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Z4e}=Et(),e8e=ym();Tre()===void 0&&Rre(new e8e);function Rre(t){if(!t||typeof t.dispatch!="function")throw new Z4e("Argument agent must implement Agent");Object.defineProperty(globalThis,vre,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Tre(){return globalThis[vre]}_re.exports={setGlobalDispatcher:Rre,getGlobalDispatcher:Tre}});var $B=A((Xkt,Qre)=>{"use strict";Qre.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var Ore=A((Zkt,Pre)=>{"use strict";var t8e=SB();Pre.exports=t=>{let e=t?.maxRedirections;return r=>function(i,n){let{maxRedirections:o=e,...a}=i;if(!o)return r(i,n);let c=new t8e(r,o,i,n);return r(a,c)}}});var kre=A((eMt,Dre)=>{"use strict";var r8e=DB();Dre.exports=t=>e=>function(s,i){return e(s,new r8e({...s,retryOptions:{...t,...s.retryOptions}},{handler:i,dispatch:e}))}});var Lre=A((tMt,Mre)=>{"use strict";var s8e=it(),{InvalidArgumentError:i8e,RequestAbortedError:n8e}=Et(),o8e=$B(),XL=class extends o8e{#e=1024*1024;#t=null;#s=!1;#r=!1;#i=0;#n=null;#u=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new i8e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#u=r}onConnect(e){this.#t=e,this.#u.onConnect(this.#l.bind(this))}#l(e){this.#r=!0,this.#n=e}onHeaders(e,r,s,i){let o=s8e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new n8e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#u.onHeaders(e,r,s,i)}onError(e){this.#s||(e=this.#n??e,this.#u.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#s=!0,this.#r?this.#u.onError(this.#n):this.#u.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#u.onError(this.reason);return}this.#u.onComplete(e)}}};function a8e({maxSize:t}={maxSize:1024*1024}){return e=>function(s,i){let{dumpMaxSize:n=t}=s,o=new XL({maxSize:n},i);return e(s,o)}}Mre.exports=a8e});var qre=A((rMt,Ure)=>{"use strict";var{isIP:c8e}=require("node:net"),{lookup:l8e}=require("node:dns"),u8e=$B(),{InvalidArgumentError:vm,InformationalError:h8e}=Et(),Fre=Math.pow(2,31)-1,ZL=class{#e=0;#t=0;#s=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let i=this.#s.get(e.hostname);if(i==null&&this.full){s(null,e.origin);return}let n={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(i==null)this.lookup(e,n,(o,a)=>{if(o||a==null||a.length===0){s(o??new h8e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#s.get(e.hostname),l=this.pick(e,c,n.affinity),u;typeof l.port=="number"?u=`:${l.port}`:e.port!==""?u=`:${e.port}`:u="",s(null,`${e.protocol}//${l.family===6?`[${l.address}]`:l.address}${u}`)});else{let o=this.pick(e,i,n.affinity);if(o==null){this.#s.delete(e.hostname),this.runLookup(e,r,s);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",s(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,s){l8e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,n)=>{if(i)return s(i);let o=new Map;for(let a of n)o.set(`${a.address}:${a.family}`,a);s(null,o.values())})}#i(e,r,s){let i=null,{records:n,offset:o}=r,a;if(this.dualStack?(s==null&&(o==null||o===Fre?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),n[s]!=null&&n[s].ips.length>0?a=n[s]:a=n[s===4?6:4]):a=n[s],a==null||a.ips.length===0)return i;a.offset==null||a.offset===Fre?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return i=a.ips[c]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(a.ips.splice(c,1),this.pick(e,r,s)):i}setRecords(e,r){let s=Date.now(),i={records:{4:null,6:null}};for(let n of r){n.timestamp=s,typeof n.ttl=="number"?n.ttl=Math.min(n.ttl,this.#e):n.ttl=this.#e;let o=i.records[n.family]??{ips:[]};o.ips.push(n),i.records[n.family]=o}this.#s.set(e.hostname,i)}getHandler(e,r){return new e2(this,e,r)}},e2=class extends u8e{#e=null;#t=null;#s=null;#r=null;#i=null;constructor(e,{origin:r,handler:s,dispatch:i},n){super(s),this.#i=r,this.#r=s,this.#t={...n},this.#e=e,this.#s=i}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,( Line truncated
${n}`;break;case"retry":Cne(n)&&(r[i]=n);break;case"id":Ine(n)&&(r[i]=n);break;case"event":n.length>0&&(r[i]=n);break}}processEvent(e){e.retry&&Cne(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Ine(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};bne.exports={EventSourceStream:U2}});var _ne=A((PMt,Tne)=>{"use strict";var{pipeline:C5e}=require("node:stream"),{fetching:I5e}=zC(),{makeRequest:b5e}=_m(),{webidl:du}=Ms(),{EventSourceStream:w5e}=wne(),{parseMIMEType:S5e}=sn(),{createFastMessageEvent:B5e}=Mm(),{isNetworkError:Sne}=GC(),{delay:x5e}=L2(),{kEnumerableProperty:Gf}=it(),{environmentSettingsObject:Bne}=kn(),xne=!1,Nne=3e3,sI=0,vne=1,iI=2,N5e="anonymous",v5e="use-credentials",Gm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#s=!1;#r=sI;#i=null;#n=null;#u;#l;constructor(e,r={}){super(),du.util.markAsUncloneable(this);let s="EventSource constructor";du.argumentLengthCheck(arguments,1,s),xne||(xne=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=du.converters.USVString(e,s,"url"),r=du.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#u=r.dispatcher,this.#l={lastEventId:"",reconnectionTime:Nne};let i=Bne,n;try{n=new URL(e,i.settingsObject.baseUrl),this.#l.origin=n.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=n.href;let o=N5e;r.withCredentials&&(o=v5e,this.#s=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Bne.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=b5e(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#a(){if(this.#r===iI)return;this.#r=sI;let e={request:this.#i,dispatcher:this.#u},r=s=>{Sne(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#f()};e.processResponseEndOfBody=r,e.processResponse=s=>{if(Sne(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#f();return}let i=s.headersList.get("content-type",!0),n=i!==null?S5e(i):"failure",o=n!=="failure"&&n.essence==="text/event-stream";if(s.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=vne,this.dispatchEvent(new Event("open")),this.#l.origin=s.urlList[s.urlList.length-1].origin;let a=new w5e({eventSourceSettings:this.#l,push:c=>{this.dispatchEvent(B5e(c.type,c.options))}});C5e(s.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#n=I5e(e)}async#f(){this.#r!==iI&&(this.#r=sI,this.dispatchEvent(new Event("error")),await x5e(this.#l.reconnectionTime),this.#r===sI&&(this.#l.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#l.lastEventId,!0),this.#a()))}close(){du.brandCheck(this,t),this.#r!==iI&&(this.#r=iI,this.#n.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Rne={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:sI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:vne,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:iI,writable:!1}};Object.defineProperties(Gm,Rne);Object.defineProperties(Gm.prototype,Rne);Object.defineProperties(Gm.prototype,{close:Gf,onerror:Gf,onmessage:Gf,onopen:Gf,readyState:Gf,url:Gf,withCredentials:Gf});du.converters.EventSourceInitDict=du.dictionaryConverter([{key:"withCredentials",converter:du.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:du.converters.any}]);Tne.exports={EventSource:Gm,defaultReconnectionTime:Nne}});var zm=A((OMt,Me)=>{"use strict";var R5e=mm(),Qne=cC(),T5e=gm(),_5e=Ree(),Q5e=ym(),P5e=uL(),O5e=Zee(),D5e=nte(),Pne=Et(),Px=it(),{InvalidArgumentError:Qx}=Pne,Hm=Vte(),k5e=uC(),M5e=VL(),L5e=Nre(),F5e=JL(),U5e=QL(),q5e=DB(),{getGlobalDispatcher:One,setGlobalDispatcher:G5e}=VB(),H5e=$B(),z5e=SB(),V5e=BB();Object.assign(Qne.prototype,Hm);Me.exports.Dispatcher=Qne;Me.exports.Client=R5e;Me.exports.Pool=T5e;Me.exports.BalancedPool=_5e;Me.exports.Agent=Q5e;Me.exports.ProxyAgent=P5e;Me.exports.EnvHttpProxyAgent=O5e;Me.e Line truncated
%s`,N,N,C,s);var P=C.type==="*"?FF:C.type==="?"?LF:"\\"+C.type;i=!0,s=s.slice(0,C.reStart)+P+"\\("+N}p(),n&&(s+="\\\\");var Q=!1;switch(s.charAt(0)){case"[":case".":case"(":Q=!0}for(var k=a.length-1;k>-1;k--){var G=a[k],ee=s.slice(0,G.reStart),L=s.slice(G.reStart,G.reEnd-8),F=s.slice(G.reEnd-8,G.reEnd),q=s.slice(G.reEnd);F+=q;var $=ee.split("(").length-1,se=q;for(m=0;m<$;m++)se=se.replace(/\)[+*?]?/,"");q=se;var Qe="";q===""&&e!==cN&&(Qe="$");var we=ee+L+q+Qe+F;s=we}if(s!==""&&i&&(s="(?=.)"+s),Q&&(s=d+s),e===cN)return[s,i];if(!i)return uYe(t);var le=r.nocase?"i":"";try{var ct=new RegExp("^"+s+"$",le)}catch{return new RegExp("$.")}return ct._glob=t,ct._src=s,ct}$n.makeRe=function(t,e){return new Jr(t,e||{}).makeRe()};Jr.prototype.makeRe=lYe;function lYe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?FF:e.dot?tYe:rYe,s=e.nocase?"i":"",i=t.map(function(n){return n.map(function(o){return o===jf?r:typeof o=="string"?hYe(o):o._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}$n.match=function(t,e,r){r=r||{};var s=new Jr(e,r);return t=t.filter(function(i){return s.match(i)}),s.options.nonull&&!t.length&&t.push(e),t};Jr.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var s=this.options;BI.sep!=="/"&&(e=e.split(BI.sep).join("/")),e=e.split(Pce),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var n,o;for(o=e.length-1;o>=0&&(n=e[o],!n);o--);for(o=0;o<i.length;o++){var a=i[o],c=e;s.matchBase&&a.length===1&&(c=[n]);var l=this.matchOne(c,a,r);if(l)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate};Jr.prototype.matchOne=function(t,e,r){return e.indexOf(jf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Jr.prototype._matchGlobstar=function(t,e,r,s,i){var n,o=-1;for(n=i;n<e.length;n++)if(e[n]===jf){o=n;break}var a=-1;for(n=e.length-1;n>=0;n--)if(e[n]===jf){a=n;break}var c=e.slice(i,o),l=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var h=t.slice(s,s+c.length);if(!this._matchOne(h,c,r,0,0))return!1;s+=c.length}var d=0;if(u.length){if(u.length+s>t.length)return!1;var f=t.length-u.length;if(this._matchOne(t,u,r,f,0))d=u.length;else{if(t[t.length-1]!==""||s+u.length===t.length||(f--,!this._matchOne(t,u,r,f,0)))return!1;d=u.length+1}}if(!l.length){var p=!!d;for(n=s;n<t.length-d;n++){var m=String(t[n]);if(p=!0,m==="."||m===".."||!this.options.dot&&m.charAt(0)===".")return!1}return r||p}for(var E=[[[],0]],y=E[0],C=0,w=[0],B=0;B<l.length;B++){var N=l[B];N===jf?(w.push(C),y=[[],0],E.push(y)):(y[0].push(N),C++)}for(var P=E.length-1,Q=t.length-d,k=0;k<E.length;k++)E[k][1]=Q-(w[P--]+E[k][0].length);return!!this._matchGlobStarBodySections(t,E,s,0,r,0,!!d)};Jr.prototype._matchGlobStarBodySections=function(t,e,r,s,i,n,o){var a=e[s];if(!a){for(var c=r;c<t.length;c++){o=!0;var l=t[c];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1}return o}for(var u=a[0],h=a[1];r<=h;){var d=this._matchOne(t.slice(0,r+u.length),u,i,r,0);if(d&&n<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+u.length,s+1,i,n+1,o);if(f!==!1)return f}var l=t[r];if(l==="."||l===".."||!this.options.dot&&l.charAt(0)===".")return!1;r++}return i||null};Jr.prototype._matchOne=function(t,e,r,s,i){var n,o,a,c;for(n=s,o=i,a=t.length,c=e.length;n<a&&o<c;n++,o++){this.debug("matchOne loop");var l=e[o],u=t[n];if(this.debug(e,l,u),l===!1||l===jf)return!1;var h;if(typeof l=="string"?(h=u===l,this.debug("string match",l,u,h)):(h=u.match(l),this.debug("pattern match",l,u,h)),!h)return!1}if(n===a&&o===c)return!0;if(n===a)return r;if(o===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function uYe(t){return t.replace(/\\(.)/g,"$1")}function hYe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var vI=A((sFt,Uce)=>{"use strict";var EYe="2.0.0",CYe=Number.MAX_SAFE_INTEGER||9007199254740991,IYe=16,bYe=250,wYe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Uce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:IYe,MAX_SAFE_BUILD_LENGTH:bYe,MAX_SAFE_INTEGER:CYe,RELEASE_TYPES:wYe,SEMVER_SPEC_VERSION:EYe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var RI=A((iFt,qce)=>{"use strict";var SYe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};qce.exports=SYe});var rg=A((Rc,Gce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:qF,MAX_SAFE_BUILD_LENGTH:BYe,MAX_LENGTH:xYe}=vI(),NYe=RI();Rc=Gce.exports={};var vYe=Rc.re=[],RYe=Rc.safeRe=[],fe=Rc.src=[],TYe=Rc.safeSrc=[],pe=Rc.t={},_Ye=0,GF="[a-zA-Z0-9-]",QYe=[["\\s",1],["\\d",xYe],[GF,BYe]],PYe=t=>{for(let[e,r]of QYe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join( Line truncated
`.trim())}};RY.exports=BT});var nC=m((f7e,kY)=>{"use strict";var vY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:fBe}=_e(),hBe=$d();PY()===void 0&&_Y(new hBe);function _Y(t){if(!t||typeof t.dispatch!="function")throw new fBe("Argument agent must implement Agent");Object.defineProperty(globalThis,vY,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(_Y,"setGlobalDispatcher");function PY(){return globalThis[vY]}o(PY,"getGlobalDispatcher");kY.exports={setGlobalDispatcher:_Y,getGlobalDispatcher:PY}});var sC=m((g7e,DY)=>{"use strict";DY.exports=class{static{o(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var MY=m((y7e,OY)=>{"use strict";var mBe=Oy();OY.exports=t=>{let e=t?.maxRedirections;return r=>o(function(s,i){let{maxRedirections:a=e,...c}=s;if(!a)return r(s,i);let l=new mBe(r,a,s,i);return r(c,l)},"redirectInterceptor")}});var FY=m((I7e,LY)=>{"use strict";var gBe=Jy();LY.exports=t=>e=>o(function(n,s){return e(n,new gBe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))},"retryInterceptor")});var qY=m((b7e,UY)=>{"use strict";var EBe=Be(),{InvalidArgumentError:yBe,RequestAbortedError:CBe}=_e(),IBe=sC(),bT=class extends IBe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new yBe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let a=EBe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new CBe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function BBe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,s){let{dumpMaxSize:i=t}=n,a=new bT({maxSize:i},s);return e(n,a)},"Intercept")}o(BBe,"createDumpInterceptor");UY.exports=BBe});var VY=m((S7e,HY)=>{"use strict";var{isIP:bBe}=require("node:net"),{lookup:wBe}=require("node:dns"),SBe=sC(),{InvalidArgumentError:nA,InformationalError:NBe}=_e(),GY=Math.pow(2,31)-1,wT=class{static{o(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){n(a??new NBe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,s,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){wBe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#s(e,r,n){let s=null,{records:i,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===GY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?c=i[n]:c=i[n===4?6:4]):c=i[n],c==null||c.ips.length===0)return s;c.offset==null||c.offset===GY?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return s=c.ips[l]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=s.records[i.family]??{ips:[]};a.ips.push(i),s.records[i.family]=a}this.#n.set(e.hostname,s)}getHandler(e,r){return new ST(this,e,r)}},ST=class extends SBe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${i}`;break;case"retry":Bj(i)&&(r[s]=i);break;case"id":bj(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Bj(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&bj(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};wj.exports={EventSourceStream:fv}});var Pj=m((Tet,_j)=>{"use strict";var{pipeline:kSe}=require("node:stream"),{fetching:DSe}=Eh(),{makeRequest:OSe}=oA(),{webidl:Ea}=Ir(),{EventSourceStream:MSe}=Sj(),{parseMIMEType:LSe}=An(),{createFastMessageEvent:FSe}=AA(),{isNetworkError:Nj}=mh(),{delay:USe}=Av(),{kEnumerableProperty:Wl}=Be(),{environmentSettingsObject:xj}=qn(),Qj=!1,Rj=3e3,_h=0,Tj=1,Ph=2,qSe="anonymous",GSe="use-credentials",gA=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=_h;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Ea.util.markAsUncloneable(this);let n="EventSource constructor";Ea.argumentLengthCheck(arguments,1,n),Qj||(Qj=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ea.converters.USVString(e,n,"url"),r=Ea.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Rj};let s=xj,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=qSe;r.withCredentials&&(a=GSe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=xj.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#s=OSe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#l(){if(this.#r===Ph)return;this.#r=_h;let e={request:this.#s,dispatcher:this.#a},r=o(n=>{Nj(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Nj(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?LSe(s):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Tj,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let c=new MSe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(FSe(l.type,l.options))},"push")});kSe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=DSe(e)}async#c(){this.#r!==Ph&&(this.#r=_h,this.dispatchEvent(new Event("error")),await USe(this.#o.reconnectionTime),this.#r===_h&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){Ea.brandCheck(this,t),this.#r!==Ph&&(this.#r=Ph,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},vj={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:_h,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Tj,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Ph,writable:!1}};Object.defineProperties(gA,vj);Object.defineProperties(gA.prototype,vj);Object.defineProperties(gA.prototype,{close:Wl,onerror:Wl,onmessage:Wl,onopen:Wl,readyState:Wl,url:Wl,withCredentials:Wl});Ea.converters.EventSourceInitDict=Ea.dictionaryConverter([{key:"withCredentials",converter:Ea.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Ea.converters.any}]);_j.exports={EventSource:gA,defaultReconnectionTime:Rj}});var yA=m((_et,ne)=>{"use strict";var HSe=Vd(),kj=Mf(),VSe=zd(),zSe=v$(),$Se=$d(),JSe=DR(),YSe=tJ(),WSe=cJ(),Dj=_e(),zC=Be(),{InvalidArgumentError:VC}=Dj,EA=YJ(),jSe=Ff(),KSe=mT(),XSe=TY(),ZSe=yT(),eNe=nT(),tNe=Jy(),{getGlobalDispatcher:Oj,setGlobalDispatcher:rNe}=nC(),nNe=sC(),sNe=Oy(),iNe=My();Object.assign(kj.prototype,EA);ne.exports.Dispatcher=kj;ne.exports.Client=HSe;ne.exports.Pool=VSe;ne.exports.BalancedPool=zSe;ne.exports.Agent=$Se;ne.exports. Line truncated
%s`,N,N,C,n);var Q=C.type==="*"?E_:C.type==="?"?g_:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Q+"\\("+N}h(),i&&(n+="\\\\");var D=!1;switch(n.charAt(0)){case"[":case".":case"(":D=!0}for(var ce=c.length-1;ce>-1;ce--){var Me=c[ce],qe=n.slice(0,Me.reStart),Ye=n.slice(Me.reStart,Me.reEnd-8),Ce=n.slice(Me.reEnd-8,Me.reEnd),tt=n.slice(Me.reEnd);Ce+=tt;var de=qe.split("(").length-1,Gr=tt;for(g=0;g<de;g++)Gr=Gr.replace(/\)[+*?]?/,"");tt=Gr;var $="";tt===""&&e!==fI&&($="$");var Ge=qe+Ye+tt+$+Ce;n=Ge}if(n!==""&&s&&(n="(?=.)"+n),D&&(n=p+n),e===fI)return[n,s];if(!s)return STe(t);var Oi=r.nocase?"i":"";try{var nc=new RegExp("^"+n+"$",Oi)}catch{return new RegExp("$.")}return nc._glob=t,nc._src=n,nc}o(bTe,"parse");Zn.makeRe=function(t,e){return new Wt(t,e||{}).makeRe()};Wt.prototype.makeRe=wTe;function wTe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?E_:e.dot?mTe:gTe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(a){return a===tu?r:typeof a=="string"?NTe(a):a._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}o(wTe,"makeRe");Zn.match=function(t,e,r){r=r||{};var n=new Wt(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};Wt.prototype.match=o(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;nm.sep!=="/"&&(e=e.split(nm.sep).join("/")),e=e.split(U8),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<s.length;a++){var c=s[a],l=e;n.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");Wt.prototype.matchOne=function(t,e,r){return e.indexOf(tu)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Wt.prototype._matchGlobstar=function(t,e,r,n,s){var i,a=-1;for(i=s;i<e.length;i++)if(e[i]===tu){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===tu){c=i;break}var l=e.slice(s,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var A=t.slice(n,n+l.length);if(!this._matchOne(A,l,r,0,0))return!1;n+=l.length}var p=0;if(d.length){if(d.length+n>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))p=d.length;else{if(t[t.length-1]!==""||n+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(i=n;i<t.length-p;i++){var g=String(t[i]);if(h=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||h}for(var y=[[[],0]],E=y[0],C=0,I=[0],b=0;b<u.length;b++){var N=u[b];N===tu?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,ce=0;ce<y.length;ce++)y[ce][1]=D-(I[Q--]+y[ce][0].length);return!!this._matchGlobStarBodySections(t,y,n,0,r,0,!!p)};Wt.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,a){var c=e[n];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],A=c[1];r<=A;){var p=this._matchOne(t.slice(0,r+d.length),d,s,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,n+1,s,i+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return s||null};Wt.prototype._matchOne=function(t,e,r,n,s){var i,a,c,l;for(i=n,a=s,c=t.length,l=e.length;i<c&&a<l;i++,a++){this.debug("matchOne loop");var u=e[a],d=t[i];if(this.debug(e,u,d),u===!1||u===tu)return!1;var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(i===c&&a===l)return!0;if(i===c)return r;if(a===l)return i===c-1&&t[i]==="";throw new Error("wtf?")};function STe(t){return t.replace(/\\(.)/g,"$1")}o(STe,"globUnescape");function NTe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(NTe,"regExpEscape")});var RA=m((lit,J8)=>{"use strict";var kTe="2.0.0",DTe=Number.MAX_SAFE_INTEGER||9007199254740991,OTe=16,MTe=250,LTe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];J8.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:OTe,MAX_SAFE_BUILD_LENGTH:MTe,MAX_SAFE_INTEGER:DTe,RELEASE_TYPES:LTe,SEMVER_SPEC_VERSION:kTe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var om=m((uit,Y8)=>{"use strict";var FTe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Y8.exports=FTe});var TA=m((Zi,W8)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:C_,MAX_SAFE_BUILD_LENGTH:UTe,MAX_LENGTH:qTe}=RA(),GTe=om();Zi=W8.exports={};var HTe=Zi.re=[],VTe=Zi.safeRe=[],L=Zi.src=[],zTe=Zi.safeSrc=[],F=Zi.t={},$Te=0,I_="[a-zA-Z0-9-]",JTe=[["\\s",1],["\\d", Line truncated
`).join(`
`+n),t.push(i+"m+"+WN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sXe()+e+" "+t[0]}function sXe(){return Us.inspectOpts.hideDate?"":new Date().toISOString()+" "}function iXe(...t){return process.stderr.write(YN.format(...t)+`
`)}function nXe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function oXe(){return process.env.DEBUG}function aXe(t){t.inspectOpts={};let e=Object.keys(Us.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Us.inspectOpts[e[r]]}WN.exports=NU()(Us);var{formatters:bhe}=WN.exports;bhe.o=function(t){return this.inspectOpts.colors=this.useColors,YN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};bhe.O=function(t){return this.inspectOpts.colors=this.useColors,YN.inspect(t,this.inspectOpts)}});var ip=A((Cqt,_U)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_U.exports=ghe():_U.exports=whe()});var xhe=A(hn=>{"use strict";var cXe=hn&&hn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),lXe=hn&&hn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),She=hn&&hn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&cXe(e,t,r);return lXe(e,t),e};Object.defineProperty(hn,"__esModule",{value:!0});hn.req=hn.json=hn.toBuffer=void 0;var uXe=She(require("http")),hXe=She(require("https"));async function Bhe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}hn.toBuffer=Bhe;async function dXe(t){let r=(await Bhe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}hn.json=dXe;function fXe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?hXe:uXe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}hn.req=fXe});var The=A(Wn=>{"use strict";var vhe=Wn&&Wn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),pXe=Wn&&Wn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rhe=Wn&&Wn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vhe(e,t,r);return pXe(e,t),e},AXe=Wn&&Wn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vhe(e,t,r)};Object.defineProperty(Wn,"__esModule",{value:!0});Wn.Agent=void 0;var mXe=Rhe(require("net")),Nhe=Rhe(require("http")),gXe=require("https");AXe(xhe(),Wn);var Qc=Symbol("AgentBaseInternalState"),QU=class extends Nhe.Agent{constructor(e){super(e),this[Qc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new mXe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?gXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof Nhe.Agent)try{return a.addRequest(e,i)}catch(c){return s(c)}this[Qc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[Qc].currentSocket;if(this[Qc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Qc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Qc]&&(this[Qc].defaultPort=e)}get protocol(){return this[Qc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Qc]&&(this[Qc].protocol=e)}};Wn.Agent=QU});var _he=A(hg=>{"use strict";var yXe=hg&&hg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hg,"__esModule",{value:!0});hg.parseProxyResponse=void 0;var EXe=yXe(ip()),KN=(0,EXe.default)("https-proxy-agent:parse-proxy-response");function CXe(t){return new Promise((e,r)=>{let s=0,i=[];function n(){let u=t.read();u?l(u):t.once("readable",n)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",n)}function a(){o(),KN("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),KN("onerror %o",u),r(u)}function l(u){i.push(u),s+=u.length;let h=Buffer.concat(i,s),d=h.indexOf(`\r
`+i),t.push(s+"m+"+sB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Mke()+e+" "+t[0]}o(Oke,"formatArgs");function Mke(){return Sr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Mke,"getDate");function Lke(...t){return process.stderr.write(nB.format(...t)+`
`)}o(Lke,"log");function Fke(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Fke,"save");function Uke(){return process.env.DEBUG}o(Uke,"load");function qke(t){t.inspectOpts={};let e=Object.keys(Sr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Sr.inspectOpts[e[r]]}o(qke,"init");sB.exports=uP()(Sr);var{formatters:_K}=sB.exports;_K.o=function(t){return this.inspectOpts.colors=this.useColors,nB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};_K.O=function(t){return this.inspectOpts.colors=this.useColors,nB.inspect(t,this.inspectOpts)}});var iB=m((tlt,fP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fP.exports=xK():fP.exports=PK()});var OK=m(Cn=>{"use strict";var Gke=Cn&&Cn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Hke=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),kK=Cn&&Cn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Gke(e,t,r);return Hke(e,t),e};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.req=Cn.json=Cn.toBuffer=void 0;var Vke=kK(require("http")),zke=kK(require("https"));async function DK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(DK,"toBuffer");Cn.toBuffer=DK;async function $ke(t){let r=(await DK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o($ke,"json");Cn.json=$ke;function Jke(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?zke:Vke).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(Jke,"req");Cn.req=Jke});var UK=m(ns=>{"use strict";var LK=ns&&ns.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Yke=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FK=ns&&ns.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&LK(e,t,r);return Yke(e,t),e},Wke=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&LK(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var jke=FK(require("net")),MK=FK(require("http")),Kke=require("https");Wke(OK(),ns);var no=Symbol("AgentBaseInternalState"),hP=class extends MK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[no]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new jke.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Kke.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof MK.Agent)try{return c.addRequest(e,s)}catch(l){return n(l)}this[no].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[no].currentSocket;if(this[no].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[no].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[no]&&(this[no].defaultPort=e)}get protocol(){return this[no].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[no]&&(this[no].protocol=e)}};ns.Agent=hP});var qK=m(UA=>{"use strict";var Xke=UA&&UA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(UA,"__esModule",{value:!0});UA.parseProxyResponse=void 0;var Zke=Xke(iB()),oB=(0,Zke.default)("https-proxy-agent:parse-proxy-response");function eDe(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let d=t.read();d?u(d):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),oB("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),oB("onerror %o",d),r(d)}o(l,"onerror");function u(d){s.push(d),n+=d.length;let A=Buffer.concat(s,n),p=A.indexOf(`\r
\r
`);if(d===-1){KN("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,B).toLowerCase(),P=w.slice(B+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}KN("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}hg.parseProxyResponse=CXe});var Mhe=A(zo=>{"use strict";var IXe=zo&&zo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),bXe=zo&&zo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dhe=zo&&zo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&IXe(e,t,r);return bXe(e,t),e},khe=zo&&zo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zo,"__esModule",{value:!0});zo.HttpsProxyAgent=void 0;var XN=Dhe(require("net")),Qhe=Dhe(require("tls")),wXe=khe(require("assert")),SXe=khe(ip()),BXe=The(),xXe=require("url"),NXe=_he(),HI=(0,SXe.default)("https-proxy-agent"),Phe=t=>t.servername===void 0&&t.host&&!XN.isIP(t.host)?{...t,servername:t.host}:t,ZN=class extends BXe.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new xXe.URL(e):e,this.proxyHeaders=r?.headers??{},HI("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ohe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;s.protocol==="https:"?(HI("Creating `tls.Socket`: %o",this.connectOpts),i=Qhe.connect(Phe(this.connectOpts))):(HI("Creating `net.Socket`: %o",this.connectOpts),i=XN.connect(this.connectOpts));let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=XN.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}: ${n[d]}\r
`;let c=(0,NXe.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200)return e.once("socket",vXe),r.secureEndpoint?(HI("Upgrading socket connection to TLS"),Qhe.connect({...Ohe(Phe(r),"host","path","port"),socket:i})):i;i.destroy();let h=new XN.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{HI("Replaying proxy buffer for failed request"),(0,wXe.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};ZN.protocols=["http","https"];zo.HttpsProxyAgent=ZN;function vXe(t){t.resume()}function Ohe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var Uhe=A(dn=>{"use strict";var RXe=dn&&dn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),TXe=dn&&dn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Lhe=dn&&dn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&RXe(e,t,r);return TXe(e,t),e};Object.defineProperty(dn,"__esModule",{value:!0});dn.req=dn.json=dn.toBuffer=void 0;var _Xe=Lhe(require("http")),QXe=Lhe(require("https"));async function Fhe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}dn.toBuffer=Fhe;async function PXe(t){let r=(await Fhe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let i=s;throw i.message+=` (input: ${r})`,i}}dn.json=PXe;function OXe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?QXe:_Xe).request(t,e),i=new Promise((n,o)=>{s.once("response",n).once("error",o).end()});return s.then=i.then.bind(i),s}dn.req=OXe});var zI=A(Kn=>{"use strict";var Ghe=Kn&&Kn.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),DXe=Kn&&Kn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hhe=Kn&&Kn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ghe(e,t,r);return DXe(e,t),e},kXe=Kn&&Kn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ghe(e,t,r)};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.Agent=void 0;var MXe=Hhe(require("net")),qhe=Hhe(require("http")),LXe=require("https");kXe(Uhe(),Kn);var Pc=Symbol("AgentBaseInternalState"),PU=class extends qhe.Agent{constructor(e){super(e),this[Pc]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(s=>s.indexOf("(https.js:")!==-1||s.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new MXe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],i=s.indexOf(r);i!==-1&&(s.splice(i,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?LXe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},n=this.getName(i),o=this.incrementSockets(n);Promise.resolve().then(()=>this.connect(e,i)).then(a=>{if(this.decrementSockets(n,o),a instanceof qhe.Agent)return a.addRequest(e,i);this[Pc].currentSocket=a,super.createSocket(e,r,s)},a=>{this.decrementSockets(n,o),s(a)})}createConnection(){let e=this[Pc].currentSocket;if(this[Pc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Pc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Pc]&&(this[Pc].defaultPort=e)}get protocol(){return this[Pc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Pc]&&(this[Pc].protocol=e)}};Kn.Agent=PU});var OU=A(Vo=>{"use strict";var FXe=Vo&&Vo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),UXe=Vo&&Vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vhe=Vo&&Vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&FXe(e,t,r);return UXe(e,t),e},qXe=Vo&&Vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vo,"__esModule",{value:!0});Vo.HttpProxyAgent=void 0;var GXe=Vhe(require("net")),HXe=Vhe(require("tls")),zXe=qXe(ip()),VXe=require("events"),$Xe=zI(),zhe=require("url"),dg=(0,zXe.default)("http-proxy-agent"),ev=class extends $Xe.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new zhe.URL(e):e,this.proxyHeaders=r?.headers??{},dg("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?jXe(r,"headers"):null,host:s,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,i=r.secureEndpoint?"https:":"http:",n=e.getHeader("host")||"localhost",o=`${i}//${n}`,a=new zhe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let l=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(l).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let l of Object.keys(c)){let u=c[l];u&&e.setHeader(l,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,i;dg("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(dg("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,i=s.indexOf(`\r
`);if(p===-1){oB("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
`),h=f.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){if(!I)continue;let b=I.indexOf(":");if(b===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,b).toLowerCase(),Q=I.slice(b+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,Q]:Array.isArray(D)?D.push(Q):C[N]=Q}oB("got proxy server response: %o %o",h,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(eDe,"parseProxyResponse");UA.parseProxyResponse=eDe});var JK=m(ks=>{"use strict";var tDe=ks&&ks.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),rDe=ks&&ks.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zK=ks&&ks.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&tDe(e,t,r);return rDe(e,t),e},$K=ks&&ks.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ks,"__esModule",{value:!0});ks.HttpsProxyAgent=void 0;var aB=zK(require("net")),GK=zK(require("tls")),nDe=$K(require("assert")),sDe=$K(iB()),iDe=UK(),oDe=require("url"),aDe=qK(),Im=(0,sDe.default)("https-proxy-agent"),HK=o(t=>t.servername===void 0&&t.host&&!aB.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),cB=class extends iDe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new oDe.URL(e):e,this.proxyHeaders=r?.headers??{},Im("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?VK(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(Im("Creating `tls.Socket`: %o",this.connectOpts),s=GK.connect(HK(this.connectOpts))):(Im("Creating `net.Socket`: %o",this.connectOpts),s=aB.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=aB.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
`;let l=(0,aDe.parseProxyResponse)(s);s.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",cDe),r.secureEndpoint?(Im("Upgrading socket connection to TLS"),GK.connect({...VK(HK(r),"host","path","port"),socket:s})):s;s.destroy();let A=new aB.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Im("Replaying proxy buffer for failed request"),(0,nDe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};cB.protocols=["http","https"];ks.HttpsProxyAgent=cB;function cDe(t){t.resume()}o(cDe,"resume");function VK(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(VK,"omit")});var jK=m(In=>{"use strict";var lDe=In&&In.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),uDe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YK=In&&In.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&lDe(e,t,r);return uDe(e,t),e};Object.defineProperty(In,"__esModule",{value:!0});In.req=In.json=In.toBuffer=void 0;var dDe=YK(require("http")),ADe=YK(require("https"));async function WK(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(WK,"toBuffer");In.toBuffer=WK;async function pDe(t){let r=(await WK(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}o(pDe,"json");In.json=pDe;function fDe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ADe:dDe).request(t,e),s=new Promise((i,a)=>{n.once("response",i).once("error",a).end()});return n.then=s.then.bind(s),n}o(fDe,"req");In.req=fDe});var eX=m(ss=>{"use strict";var XK=ss&&ss.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hDe=ss&&ss.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZK=ss&&ss.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&XK(e,t,r);return hDe(e,t),e},mDe=ss&&ss.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&XK(e,t,r)};Object.defineProperty(ss,"__esModule",{value:!0});ss.Agent=void 0;var gDe=ZK(require("net")),KK=ZK(require("http")),EDe=require("https");mDe(jK(),ss);var so=Symbol("AgentBaseInternalState"),mP=class extends KK.Agent{static{o(this,"Agent")}constructor(e){super(e),this[so]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new gDe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?EDe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),c instanceof KK.Agent)return c.addRequest(e,s);this[so].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[so].currentSocket;if(this[so].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[so].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[so]&&(this[so].defaultPort=e)}get protocol(){return this[so].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[so]&&(this[so].protocol=e)}};ss.Agent=mP});var nX=m(Ds=>{"use strict";var yDe=Ds&&Ds.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),CDe=Ds&&Ds.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rX=Ds&&Ds.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&yDe(e,t,r);return CDe(e,t),e},IDe=Ds&&Ds.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.HttpProxyAgent=void 0;var BDe=rX(require("net")),bDe=rX(require("tls")),wDe=IDe(iB()),SDe=require("events"),NDe=eX(),tX=require("url"),qA=(0,wDe.default)("http-proxy-agent"),lB=class extends NDe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new tX.URL(e):e,this.proxyHeaders=r?.headers??{},qA("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?xDe(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new tX.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;qA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(qA("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(i),dg("Output buffer: %o",e.outputData[0].data));let n;return this.proxy.protocol==="https:"?(dg("Creating `tls.Socket`: %o",this.connectOpts),n=HXe.connect(this.connectOpts)):(dg("Creating `net.Socket`: %o",this.connectOpts),n=GXe.connect(this.connectOpts)),await(0,VXe.once)(n,"connect"),n}};ev.protocols=["http","https"];Vo.HttpProxyAgent=ev;function jXe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var fde=A(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});pv.state=void 0;pv.state={instrumenterImplementation:void 0}});var Tde=A(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});Ev.state=void 0;Ev.state={operationRequestMap:new WeakMap}});var cAe=A(Tg=>{"use strict";Object.defineProperty(Tg,"__esModule",{value:!0});var Ast=require("os"),mst=require("util");function gst(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var yst=gst(mst);function Est(t,...e){process.stderr.write(`${yst.default.format(t,...e)}${Ast.EOL}`)}var Xpe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,eAe,d8=[],f8=[],LR=[];Xpe&&p8(Xpe);var tAe=Object.assign(t=>rAe(t),{enable:p8,enabled:A8,disable:Cst,log:Est});function p8(t){eAe=t,d8=[],f8=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?f8.push(new RegExp(`^${s.substr(1)}$`)):d8.push(new RegExp(`^${s}$`));for(let s of LR)s.enabled=A8(s.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of f8)if(e.test(t))return!1;for(let e of d8)if(e.test(t))return!0;return!1}function Cst(){let t=eAe||"";return p8(""),t}function rAe(t){let e=Object.assign(r,{enabled:A8(t),destroy:Ist,log:tAe.log,namespace:t,extend:bst});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return LR.push(e),e}function Ist(){let t=LR.indexOf(this);return t>=0?(LR.splice(t,1),!0):!1}function bst(t){let e=rAe(`${this.namespace}:${t}`);return e.log=this.log,e}var _0=tAe,sAe=new Set,kR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,FR,UR=_0("azure");UR.log=(...t)=>{_0.log(...t)};var m8=["verbose","info","warning","error"];kR&&(aAe(kR)?iAe(kR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${kR}'; logging is not enabled. Acceptable values: ${m8.join(", ")}.`));function iAe(t){if(t&&!aAe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${m8.join(",")}`);FR=t;let e=[];for(let r of sAe)oAe(r)&&e.push(r.namespace);_0.enable(e.join(","))}function wst(){return FR}var Zpe={verbose:400,info:300,warning:200,error:100};function Sst(t){let e=UR.extend(t);return nAe(UR,e),{error:MR(e,"error"),warning:MR(e,"warning"),info:MR(e,"info"),verbose:MR(e,"verbose")}}function nAe(t,e){e.log=(...r)=>{t.log(...r)}}function MR(t,e){let r=Object.assign(t.extend(e),{level:e});if(nAe(t,r),oAe(r)){let s=_0.disable();_0.enable(s+","+r.namespace)}return sAe.add(r),r}function oAe(t){return!!(FR&&Zpe[t.level]<=Zpe[FR])}function aAe(t){return m8.includes(t)}Tg.AzureLogger=UR;Tg.createClientLogger=Sst;Tg.getLogLevel=wst;Tg.setLogLevel=iAe});var E8=A(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var _g=new WeakMap,qR=new WeakMap,Q0=class t{constructor(){this.onabort=null,_g.set(this,[]),qR.set(this,!1)}get aborted(){if(!qR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return qR.get(this)}static get none(){return new t}addEventListener(e,r){if(!_g.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");_g.get(this).push(r)}removeEventListener(e,r){if(!_g.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=_g.get(this),i=s.indexOf(r);i>-1&&s.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function lAe(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=_g.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),qR.set(t,!0)}var g8=class extends Error{constructor(e){super(e),this.name="AbortError"}},y8=class{constructor(e){if(this._signal=new Q0,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){lAe(this._signal)}static timeout(e){let r=new Q0,s=setTimeout(lAe,e,r);return typeof s.unref=="function"&&s.unref(),r}};P0.AbortController=y8;P0.AbortError=g8;P0.AbortSignal=Q0});var pAe=A(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Bst=E8(),w8=require("crypto"),C8,xst=typeof process<"u"&&!!process.version&&!!(!((C8=process.versions)===null||C8===void 0)&&C8.node);function uAe(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new Bst.AbortError(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a(); Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),qA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(qA("Creating `tls.Socket`: %o",this.connectOpts),i=bDe.connect(this.connectOpts)):(qA("Creating `net.Socket`: %o",this.connectOpts),i=BDe.connect(this.connectOpts)),await(0,SDe.once)(i,"connect"),i}};lB.protocols=["http","https"];Ds.HttpProxyAgent=lB;function xDe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(xDe,"omit")});var SX=m(bB=>{"use strict";Object.defineProperty(bB,"__esModule",{value:!0});bB.state=void 0;bB.state={instrumenterImplementation:void 0}});var GX=m(QB=>{"use strict";Object.defineProperty(QB,"__esModule",{value:!0});QB.state=void 0;QB.state={operationRequestMap:new WeakMap}});var Cee=m(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});var JFe=require("os"),YFe=require("util");function WFe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(WFe,"_interopDefaultLegacy");var jFe=WFe(YFe);function KFe(t,...e){process.stderr.write(`${jFe.default.format(t,...e)}${JFe.EOL}`)}o(KFe,"log");var uee=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Aee,YM=[],WM=[],Jb=[];uee&&jM(uee);var pee=Object.assign(t=>fee(t),{enable:jM,enabled:KM,disable:XFe,log:KFe});function jM(t){Aee=t,YM=[],WM=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?WM.push(new RegExp(`^${n.substr(1)}$`)):YM.push(new RegExp(`^${n}$`));for(let n of Jb)n.enabled=KM(n.namespace)}o(jM,"enable");function KM(t){if(t.endsWith("*"))return!0;for(let e of WM)if(e.test(t))return!1;for(let e of YM)if(e.test(t))return!0;return!1}o(KM,"enabled");function XFe(){let t=Aee||"";return jM(""),t}o(XFe,"disable");function fee(t){let e=Object.assign(r,{enabled:KM(t),destroy:ZFe,log:pee.log,namespace:t,extend:eUe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),Jb.push(e),e}o(fee,"createDebugger");function ZFe(){let t=Jb.indexOf(this);return t>=0?(Jb.splice(t,1),!0):!1}o(ZFe,"destroy");function eUe(t){let e=fee(`${this.namespace}:${t}`);return e.log=this.log,e}o(eUe,"extend");var cg=pee,hee=new Set,zb=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Yb,Wb=cg("azure");Wb.log=(...t)=>{cg.log(...t)};var XM=["verbose","info","warning","error"];zb&&(yee(zb)?mee(zb):console.error(`AZURE_LOG_LEVEL set to unknown log level '${zb}'; logging is not enabled. Acceptable values: ${XM.join(", ")}.`));function mee(t){if(t&&!yee(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${XM.join(",")}`);Yb=t;let e=[];for(let r of hee)Eee(r)&&e.push(r.namespace);cg.enable(e.join(","))}o(mee,"setLogLevel");function tUe(){return Yb}o(tUe,"getLogLevel");var dee={verbose:400,info:300,warning:200,error:100};function rUe(t){let e=Wb.extend(t);return gee(Wb,e),{error:$b(e,"error"),warning:$b(e,"warning"),info:$b(e,"info"),verbose:$b(e,"verbose")}}o(rUe,"createClientLogger");function gee(t,e){e.log=(...r)=>{t.log(...r)}}o(gee,"patchLogMethod");function $b(t,e){let r=Object.assign(t.extend(e),{level:e});if(gee(t,r),Eee(r)){let n=cg.disable();cg.enable(n+","+r.namespace)}return hee.add(r),r}o($b,"createLogger");function Eee(t){return!!(Yb&&dee[t.level]<=dee[Yb])}o(Eee,"shouldEnable");function yee(t){return XM.includes(t)}o(yee,"isAzureLogLevel");ip.AzureLogger=Wb;ip.createClientLogger=rUe;ip.getLogLevel=tUe;ip.setLogLevel=mee});var tL=m(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var op=new WeakMap,jb=new WeakMap,lg=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,op.set(this,[]),jb.set(this,!1)}get aborted(){if(!jb.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return jb.get(this)}static get none(){return new t}addEventListener(e,r){if(!op.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");op.get(this).push(r)}removeEventListener(e,r){if(!op.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=op.get(this),s=n.indexOf(r);s>-1&&n.splice(s,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function Iee(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=op.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),jb.set(t,!0)}o(Iee,"abortSignal");var ZM=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},eL=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new lg,!!e){Array.isArray(e)||(e=arguments);for(let r of e)r.aborted?this.abort():r.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Iee(this._signal)}static timeout(e){let r=new lg,n=setTimeout(Iee,e,r);return typeof n.unref=="function"&&n.unref(),r}};ug.AbortController=eL;ug.AbortError=ZM;ug.AbortSignal=lg});var Nee=m(nn=>{"use strict";Object.definePro Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${u}
Polling status: ${yAe.includes(u)?"Stopped":"Running"}`),u==="succeeded"){let h=o(l,r);if(h!==void 0)return{response:await e(h).catch(mAe({state:r,stateProxy:s,isOperationError:a})),status:u}}return{response:l,status:u}}async function bAe(t){let{poll:e,state:r,stateProxy:s,options:i,getOperationStatus:n,getResourceLocation:o,getOperationLocation:a,isOperationError:c,withOperationLocation:l,getPollingInterval:u,processResult:h,getError:d,updateState:f,setDelay:p,isDone:m,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:w}=await qst({poll:e,getOperationStatus:n,state:r,stateProxy:s,operationLocation:y,getResourceLocation:o,isOperationError:c,options:i});if(CAe({status:w,response:C,state:r,stateProxy:s,isDone:m,processResult:h,getError:d,setErrorAsResult:E}),!yAe.includes(w)){let B=u?.(C);B&&p(B);let N=a?.(C,r);if(N!==void 0){let P=y!==N;r.config.operationLocation=N,l?.(N,P)}else l?.(y,!1)}f?.(r,C)}}function wAe(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}function SAe(t){return t.headers.location}function BAe(t){return t.headers["operation-location"]}function xAe(t){return t.headers["azure-asyncoperation"]}function Gst(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(i){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}function NAe(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:i}=t,n=BAe(e),o=xAe(e),a=wAe({operationLocation:n,azureAsyncOperation:o}),c=SAe(e),l=r?.toLocaleUpperCase();return a!==void 0?{mode:"OperationLocation",operationLocation:a,resourceLocation:Gst({requestMethod:l,location:c,requestPath:s,resourceLocationConfig:i})}:c!==void 0?{mode:"ResourceLocation",operationLocation:c}:l==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}function vAe(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return N8(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return bp.verbose(`LRO: unrecognized operation status: ${e}`),e}}function Hst(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return vAe({status:r,statusCode:t.statusCode})}function zst(t){var e,r;let{properties:s,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},n=(r=s?.provisioningState)!==null&&r!==void 0?r:i;return vAe({status:n,statusCode:t.statusCode})}function N8(t){return t===202?"running":t<300?"succeeded":"failed"}function RAe({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Vst(new Date(e)):r*1e3}}function TAe(t){let e=t.flatResponse.error;if(!e){bp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){bp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}function Vst(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}function _Ae(t){let{response:e,state:r,operationLocation:s}=t;function i(){var o;switch((o=r.config.metadata)===null||o===void 0?void 0:o.mode){case void 0:return N8(e.rawResponse.statusCode);case"Body":return v8(e,r);default:return"running"}}let n=i();return n==="running"&&s===void 0?"succeeded":n}async function $st(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:i,setErrorAsResult:n}=t;return IAe({init:async()=>{let o=await i.sendInitialRequest(),a=NAe({rawResponse:o.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:r});return Object.assign({response:o,operationLocation:a?.operationLocation,resourceLocation:a?.resourceLocation},a?.mode?{metadata:{mode:a.mode}}:{})},stateProxy:e,processResult:s?({flatResponse:o},a)=>s(o,a):({flatResponse:o})=>o,getOperationStatus:_Ae,setErrorAsResult:n})}function QAe({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return wAe({operationLocation:BAe(t),azureAsyncOperation:xAe(t)});case"ResourceLocation":return SAe(t);default:return}}function v8({rawResponse:t},e){var r;let s=(r=e.config.metadata)===null||r===void 0?void 0:r.mode;switch(s){case"OperationLocation":return Hst(t);case"ResourceLocation":return N8(t.statusCode);case"Body":return zst(t);default:throw new Error(`Internal error: Unexpected operation mode: ${s}`)}}function PAe({flatResponse:t},e){if(typeof t=="object"){let r=t.resourceLocation;r!==void 0&&(e.config.resourceLocation=r)}return e.cLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:o=n,i=1;break;case 1:r[s++]=o<<2|(n&48)>>4,o=n,i=2;break;case 2:r[s++]=(o&15)<<4|(n&60)>>2,o=n,i=3;break;case 3:r[s++]=(o&3)<<6|n,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,s)}Mg.base64decode=Rit;function Tit(t){let e="",r=0,s,i=0;for(let n=0;n<t.length;n++)switch(s=t[n],r){case 0:e+=_u[s>>2],i=(s&3)<<4,r=1;break;case 1:e+=_u[i|s>>4],i=(s&15)<<2,r=2;break;case 2:e+=_u[i|s>>6],e+=_u[s&63],r=0;break}return r&&(e+=_u[i],e+="=",r==1&&(e+="=")),e}Mg.base64encode=Tit});var cme=A(oT=>{"use strict";Object.defineProperty(oT,"__esModule",{value:!0});oT.utf8read=void 0;var L8=t=>String.fromCharCode.apply(String,t);function _it(t){if(t.length<1)return"";let e=0,r=[],s=[],i=0,n,o=t.length;for(;e<o;)n=t[e++],n<128?s[i++]=n:n>191&&n<224?s[i++]=(n&31)<<6|t[e++]&63:n>239&&n<365?(n=((n&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,s[i++]=55296+(n>>10),s[i++]=56320+(n&1023)):s[i++]=(n&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(L8(s)),i=0);return r.length?(i&&r.push(L8(s.slice(0,i))),r.join("")):L8(s.slice(0,i))}oT.utf8read=_it});var q0=A(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.WireType=nl.mergeBinaryOptions=nl.UnknownFieldHandler=void 0;var Qit;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,i,n,o)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:i,wireType:n,data:o})},t.onWrite=(r,s,i)=>{for(let{no:n,wireType:o,data:a}of t.list(s))i.tag(n,o).raw(a)},t.list=(r,s)=>{if(e(r)){let i=r[t.symbol];return s?i.filter(n=>n.no==s):i}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Qit=nl.UnknownFieldHandler||(nl.UnknownFieldHandler={}));function Pit(t,e){return Object.assign(Object.assign({},t),e)}nl.mergeBinaryOptions=Pit;var Oit;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(Oit=nl.WireType||(nl.WireType={}))});var cT=A(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.varint32read=En.varint32write=En.int64toString=En.int64fromString=En.varint64write=En.varint64read=void 0;function Dit(){let t=0,e=0;for(let s=0;s<28;s+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<s,(i&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let s=3;s<=31;s+=7){let i=this.buf[this.pos++];if(e|=(i&127)<<s,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}En.varint64read=Dit;function kit(t,e,r){for(let n=0;n<28;n=n+7){let o=t>>>n,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!a)return}let s=t>>>28&15|(e&7)<<4,i=e>>3!=0;if(r.push((i?s|128:s)&255),!!i){for(let n=3;n<31;n=n+7){let o=e>>>n,a=!!(o>>>7),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}En.varint64write=kit;var aT=65536*65536;function Mit(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,i=0;function n(o,a){let c=Number(t.slice(o,a));i*=r,s=s*r+c,s>=aT&&(i=i+(s/aT|0),s=s%aT)}return n(-24,-18),n(-18,-12),n(-12,-6),n(-6),[e,s,i]}En.int64fromString=Mit;function Lit(t,e){if(e>>>0<=2097151)return""+(aT*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,n=r+s*6777216+i*6710656,o=s+i*8147497,a=i*2,c=1e7;n>=c&&(o+=Math.floor(n/c),n%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function l(u,h){let d=u?String(u):"";return h?"0000000".slice(d.length)+d:d}return l(a,0)+l(o,a)+l(n,1)}En.int64toString=Lit;function Fit(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}En.varint32write=Fit;function Uit(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}En.varint32read=Uit});var bd=A(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.PbLong=Id.PbULong=Id.detectBi=void 0;var G0=cT(),Ut;function lme(){let t=new DataView(new ArrayBuffer(8));Ut=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}Id.detectBi=lme;lme();function ume(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var hme=/^-?[0-9]+$/,uT=4294967296,lT=2147483648,hT=c Line truncated
`)}};DT.RpcError=hz});var fz=A(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0});MT.mergeRpcOptions=void 0;var qme=kr();function cot(t,e){if(!e)return t;let r={};kT(t,r),kT(e,r);for(let s of Object.keys(e)){let i=e[s];switch(s){case"jsonOptions":r.jsonOptions=qme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=qme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},kT(t.meta,r.meta),kT(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}MT.mergeRpcOptions=cot;function kT(t,e){if(!t)return;let r=e;for(let[s,i]of Object.entries(t))i instanceof Date?r[s]=new Date(i.getTime()):Array.isArray(i)?r[s]=i.concat():r[s]=i}});var Az=A(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.Deferred=Np.DeferredState=void 0;var cl;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(cl=Np.DeferredState||(Np.DeferredState={}));var pz=class{constructor(e=!0){this._state=cl.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==cl.PENDING)throw new Error(`cannot resolve ${cl[this.state].toLowerCase()}`);this._resolve(e),this._state=cl.RESOLVED}reject(e){if(this.state!==cl.PENDING)throw new Error(`cannot reject ${cl[this.state].toLowerCase()}`);this._reject(e),this._state=cl.REJECTED}resolvePending(e){this._state===cl.PENDING&&this.resolve(e)}rejectPending(e){this._state===cl.PENDING&&this.reject(e)}};Np.Deferred=pz});var gz=A(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.RpcOutputStreamController=void 0;var Gme=Az(),vp=kr(),mz=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){vp.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){vp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){vp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){vp.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;vp.assert(e,"bad state"),vp.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new Gme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;vp.assert(s.state==Gme.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};LT.RpcOutputStreamController=mz});var Ez=A(zg=>{"use strict";var lot=zg&&zg.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(zg,"__esModule",{value:!0});zg.UnaryCall=void 0;var yz=class{constructor(e,r,s,i,n,o,a){this.method=e,this.requestHeaders=r,this.request=s,this.headers=i,this.response=n,this.status=o,this.trailers=a}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return lot(this,void 0,void 0,function*(){let[e,r,s,i]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:s,trailers:i}})}};zg.UnaryCall=yz});var Iz=A(Vg=>{"use strict";var uot=Vg&&Vg.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};Object.defineProperty(Vg,"__esModule",{value:!0});Vg.ServerStreamingCall=void 0;var Cz=class{constructor(e Line truncated
Operation status: ${d}
Polling status: ${Tee.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(Qee({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(yUe,"pollOperationHelper");async function kee(t){let{poll:e,state:r,stateProxy:n,options:s,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:h,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await yUe({poll:e,getOperationStatus:i,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:l,options:s});if(_ee({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!Tee.includes(I)){let b=d?.(C);b&&h(b);let N=c?.(C,r);if(N!==void 0){let Q=E!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(E,!1)}f?.(r,C)}}o(kee,"pollOperation");function Dee(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(Dee,"getOperationLocationPollingUrl");function Oee(t){return t.headers.location}o(Oee,"getLocationHeader");function Mee(t){return t.headers["operation-location"]}o(Mee,"getOperationLocationHeader");function Lee(t){return t.headers["azure-asyncoperation"]}o(Lee,"getAzureAsyncOperationHeader");function CUe(t){let{location:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t;switch(r){case"PUT":return n;case"DELETE":return;default:switch(s){case"azure-async-operation":return;case"original-uri":return n;default:return e}}}o(CUe,"findResourceLocation");function Fee(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:s}=t,i=Mee(e),a=Lee(e),c=Dee({operationLocation:i,azureAsyncOperation:a}),l=Oee(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:CUe({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:s})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(Fee,"inferLroMode");function Uee(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return lL(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return Qu.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(Uee,"transformStatus");function IUe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return Uee({status:r,statusCode:t.statusCode})}o(IUe,"getStatus");function BUe(t){var e,r;let{properties:n,provisioningState:s}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=n?.provisioningState)!==null&&r!==void 0?r:s;return Uee({status:i,statusCode:t.statusCode})}o(BUe,"getProvisioningState");function lL(t){return t===202?"running":t<300?"succeeded":"failed"}o(lL,"toOperationStatus");function qee({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?bUe(new Date(e)):r*1e3}}o(qee,"parseRetryAfter");function Gee(t){let e=t.flatResponse.error;if(!e){Qu.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Qu.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}o(Gee,"getErrorFromResponse");function bUe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(bUe,"calculatePollingIntervalFromDate");function Hee(t){let{response:e,state:r,operationLocation:n}=t;function s(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return lL(e.rawResponse.statusCode);case"Body":return uL(e,r);default:return"running"}}o(s,"helper");let i=s();return i==="running"&&n===void 0?"succeeded":i}o(Hee,"getStatusFromInitialResponse");async function wUe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:s,setErrorAsResult:i}=t;return Pee({init:o(async()=>{let a=await s.sendInitialRequest(),c=Fee({rawResponse:a.rawResponse,requestPath:s.requestPath,requestMethod:s.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Hee,setErrorAsResult:i})}o(wUe,"initHttpOperation");function Vee({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return Dee({opeLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:a=i,s=1;break;case 1:r[n++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[n++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[n++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(a2e,"base64decode");Ap.base64decode=a2e;function c2e(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ua[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ua[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ua[s|n>>6],e+=Ua[n&63],r=0;break}return r&&(e+=Ua[s],e+="=",r==1&&(e+="=")),e}o(c2e,"base64encode");Ap.base64encode=c2e});var bte=m(hw=>{"use strict";Object.defineProperty(hw,"__esModule",{value:!0});hw.utf8read=void 0;var IL=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function l2e(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(IL(n)),s=0);return r.length?(s&&r.push(IL(n.slice(0,s))),r.join("")):IL(n.slice(0,s))}o(l2e,"utf8read");hw.utf8read=l2e});var Eg=m(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.WireType=vo.mergeBinaryOptions=vo.UnknownFieldHandler=void 0;var u2e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:a})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:a,data:c}of t.list(n))s.tag(i,a).raw(c)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(u2e=vo.UnknownFieldHandler||(vo.UnknownFieldHandler={}));function d2e(t,e){return Object.assign(Object.assign({},t),e)}o(d2e,"mergeBinaryOptions");vo.mergeBinaryOptions=d2e;var A2e;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(A2e=vo.WireType||(vo.WireType={}))});var gw=m(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.varint32read=Qn.varint32write=Qn.int64toString=Qn.int64fromString=Qn.varint64write=Qn.varint64read=void 0;function p2e(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(p2e,"varint64read");Qn.varint64read=p2e;function f2e(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),l=(c?a|128:a)&255;if(r.push(l),!c)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let a=e>>>i,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(f2e,"varint64write");Qn.varint64write=f2e;var mw=65536*65536;function h2e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(a,c){let l=Number(t.slice(a,c));s*=r,n=n*r+l,n>=mw&&(s=s+(n/mw|0),n=n%mw)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}o(h2e,"int64fromString");Qn.int64fromString=h2e;function m2e(t,e){if(e>>>0<=2097151)return""+(mw*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,a=n+s*8147497,c=s*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(m2e,"int64toString");Qn.int64toString=m2e;function g2e(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}o(g2e,"varint32write");Qn.varint32write=g2e;function E2e(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}o(E2e,"varint32read");Qn.varint32read=E2e});var $c=m(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.PbLong=zc.PbULong=zc.detectBi=void 0;var yg=gw(),Ze;function wte(){let t=new DataView(new ArrayBuffer(8));Ze=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};Vw.RpcError=YL});var jL=m($w=>{"use strict";Object.defineProperty($w,"__esModule",{value:!0});$w.mergeRpcOptions=void 0;var rre=Gt();function Uqe(t,e){if(!e)return t;let r={};zw(t,r),zw(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=rre.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=rre.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},zw(t.meta,r.meta),zw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}o(Uqe,"mergeRpcOptions");$w.mergeRpcOptions=Uqe;function zw(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}o(zw,"copy")});var XL=m(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.Deferred=Pu.DeferredState=void 0;var ko;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(ko=Pu.DeferredState||(Pu.DeferredState={}));var KL=class{static{o(this,"Deferred")}constructor(e=!0){this._state=ko.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==ko.PENDING)throw new Error(`cannot resolve ${ko[this.state].toLowerCase()}`);this._resolve(e),this._state=ko.RESOLVED}reject(e){if(this.state!==ko.PENDING)throw new Error(`cannot reject ${ko[this.state].toLowerCase()}`);this._reject(e),this._state=ko.REJECTED}resolvePending(e){this._state===ko.PENDING&&this.resolve(e)}rejectPending(e){this._state===ko.PENDING&&this.reject(e)}};Pu.Deferred=KL});var e1=m(Jw=>{"use strict";Object.defineProperty(Jw,"__esModule",{value:!0});Jw.RpcOutputStreamController=void 0;var nre=XL(),ku=Gt(),ZL=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){ku.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){ku.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){ku.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){ku.assert(!this.closed,"stream is closed"),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;ku.assert(e,"bad state"),ku.assert(!e.p,"iterator contract broken");let r=e.q.shift();return r?"value"in r?Promise.resolve(r):Promise.reject(r):(e.p=new nre.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;ku.assert(n.state==nre.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};Jw.RpcOutputStreamController=ZL});var r1=m(yp=>{"use strict";var qqe=yp&&yp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(yp,"__esModule",{value:!0});yp.UnaryCall=void 0;var t1=class{static{o(this,"UnaryCall")}constructor(e,r,n,s,i,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return qqe(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};yp.UnaryCall=t1});var s1=m(Cp=>{"use strict";var Gqe=Cp&&Cp.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function Line truncated
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function hht(){Object.keys(E_).forEach(function(t){delete E_[t]})}});var I_=A(dl=>{"use strict";dl.__esModule=!0;dl.HandlebarsEnvironment=FV;function $Ee(t){return t&&t.__esModule?t:{default:t}}var Pp=Mi(),dht=co(),MV=$Ee(dht),fht=PV(),pht=GEe(),Aht=DV(),C_=$Ee(Aht),mht=kV(),ght="4.7.9";dl.VERSION=ght;var yht=8;dl.COMPILER_REVISION=yht;var Eht=7;dl.LAST_COMPATIBLE_COMPILER_REVISION=Eht;var Cht={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};dl.REVISION_CHANGES=Cht;var LV="[object Object]";function FV(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},fht.registerDefaultHelpers(this),pht.registerDefaultDecorators(this)}FV.prototype={constructor:FV,logger:C_.default,log:C_.default.log,registerHelper:function(e,r){if(Pp.toString.call(e)===LV){if(r)throw new MV.default("Arg not supported with multiple helpers");Pp.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Pp.toString.call(e)===LV)Pp.extend(this.partials,e);else{if(typeof r>"u")throw new MV.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Pp.toString.call(e)===LV){if(r)throw new MV.default("Arg not supported with multiple decorators");Pp.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){mht.resetLoggedProperties()}};var Iht=C_.default.log;dl.log=Iht;dl.createFrame=Pp.createFrame;dl.logger=C_.default});var JEe=A((b_,jEe)=>{"use strict";b_.__esModule=!0;function UV(t){this.string=t}UV.prototype.toString=UV.prototype.toHTML=function(){return""+this.string};b_.default=UV;jEe.exports=b_.default});var YEe=A(qV=>{"use strict";qV.__esModule=!0;qV.wrapHelper=bht;function bht(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var tCe=A(xd=>{"use strict";xd.__esModule=!0;xd.checkRevision=vht;xd.template=Rht;xd.wrapProgram=w_;xd.resolvePartial=Tht;xd.invokePartial=_ht;xd.noop=ZEe;function wht(t){return t&&t.__esModule?t:{default:t}}function Sht(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Bht=Mi(),iy=Sht(Bht),xht=co(),Ou=wht(xht),Du=I_(),WEe=PV(),Nht=YEe(),KEe=kV();function vht(t){var e=t&&t[0]||1,r=Du.COMPILER_REVISION;if(!(e>=Du.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Du.COMPILER_REVISION))if(e<Du.LAST_COMPATIBLE_COMPILER_REVISION){var s=Du.REVISION_CHANGES[r],i=Du.REVISION_CHANGES[e];throw new Ou.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+i+").")}else throw new Ou.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function Rht(t,e){if(!e)throw new Ou.default("No environment passed to template");if(!t||!t.main)throw new Ou.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(o,a,c){c.hash&&(a=iy.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),o=e.VM.resolvePartial.call(this,o,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,o,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(o,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var u=l.split(`
`),h=0,d=u.length;h<d&&!(!u[h]&&h+1===d);h++)u[h]=c.indent+u[h];l=u.join(`
`)}return l}else throw new Ou.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var i={strict:function(a,c,l){if(!a||!(c in a))throw new Ou.default('"'+c+'" not defined in '+a,{loc:l});return i.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||KEe.resultIsAllowed(l,i.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,u=0;u<l;u++){var h=a[u]&&i.lookupProperty(a[u],c);if(h!=null)return h}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:iy.escapeExpression,invokePartial:s,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,u,h){var d=this.programs[a],f=this.fn(a);return c||h||u||l?d=w_(this,a,f,c,l,u,h):d||(d=this.programs[a]=w_(this,a,f)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=iy.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function n(o){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;n._setup(a),!a.partial&&t.useData&&(c=Qht(o,c));var l=void 0,u=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=o!=a.depths[0]?[o].concat(a.depths):a.depths:l=[o]);function h(d){return""+t.main(i,d,i.helpers,i.partials,c,u,l)}return h=eCe(t.main,h,i,a.depths||[],c,u),h(o,a)}return n.isTop=!0,n._setup=function(o){if(o.partial)i.protoAccessControl=o.protoAccessControl,i.helpers=o.helpers,i.partials=o.partials,i.decorators=o.decorators,i.hooks=o.hooks;else{var a={};XEe(a,e.helpers,i),XEe(a,o.helpers,i),i.helpers=a,t.usePartial&&(i.partials=i.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=iy.extend({},e.decorators,o.decorators)),i.hooks={},i.protoAccessControl=KEe.createProtoAccessControl(o);var c=o.allowCallsToHelperMissing||r;WEe.moveHelperToHooks(i,"helperMissing",c),WEe.moveHelperToHooks(i,"blockHelperMissing",c)}},n._child=function(o,a,c,l){if(t.useBlockParams&&!c)throw new Ou.default("must pass block params");if(t.useDepths&&!l)throw new Ou.default("must pass parent depths");return w_(i,o,t[o],a,0,c,l)},n}function w_(t,e,r,s,i,n,o){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=o;return o&&c!=o[0]&&!(c===t.nullContext&&o[0]===null)&&(u=[c].concat(o)),r(t,c,t.helpers,t.partials,l.data||s,n&&[l.blockParams].concat(n),u)}return a=eCe(r,a,t,o,s,n),a.program=e,a.depth=o?o.length:0,a.blockParams=i||0,a}function Tht(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=S_(r.partials,t)):r.name==="@partial-block"?t=S_(r.data,"partial-block"):t=S_(r.partials,r.name),t}function _ht(t,e,r){var s=S_(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==ZEe&&(function(){r.data=Du.createFrame(r.data);var n=r.fn;i=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Du.createFrame(c.data),c.data["partial-block"]=s,n(a,c)},n.partials&&(r.partials=iy.extend({},r.partials,n.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Ou.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function ZEe(){return""}function S_(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function Qht(t,e){return(!e||!("root"in e))&&(e=e?Du.createFrame(e):{},e.root=t),e}function eCe(t,e,r,s,i,n){if(t.decorator){var o={};e=t.decorator(e,o,r,s&&s[0],i,n,s),iy.extend(e,o)}return e}function XEe(t,e,r){e&&Object.keys(e).forEach(function(s){var i=e[s];t[s]=Pht(i,r)})}function Pht(t,e){var r=e.lookupProperty;return Nht.wrapHelper(t,function(s){return s.lookupProperty=r,s})}});var GV=A((B_,rCe)=>{"use strict";B_.__esModule=!0;B_.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};rCe.exports=B_.default});var aCe=A((x_,oCe)=>{"use strict";x_.__esModule=!0;function zV(t){return t&&t.__esModule?t:{default:t}}function VV(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Oht=I_(),sCe=VV(Oht),Dht=JEe(),kht=zV(Dht),Mht=co(),Lht=zV(Mht),Fht=Mi(),HV=VV(Fht),Uht=tCe(),iCe=VV(Uht),qht=GV(),Ght=zV(qht);function nCe(){var t=new sCe.HandlebarsEnvironment;return HV.extend(t,sCe),t.SafeString=kht.default,t.Exception=Lht.default,t.Utils=HV,t.escapeExpression=HV.escapeExpression,t.VM=iCe,t.template=function(e){return iCe.template(e,t)},t}var hb=nCe();hb.create=nCe;Ght.default(hb);hb.default=hb;x_.default=hb;oCe.exports=x_.default});var $V=A((N_,lCe)=>{"use strict";N_.__esModule=!0;var cCe={helpers:{helperExpression:function(e){return e.type===" Line truncated
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(J$e,"logUnexpecedPropertyAccessOnce");function Y$e(){Object.keys(R0).forEach(function(t){delete R0[t]})}o(Y$e,"resetLoggedProperties")});var v0=m(Lo=>{"use strict";Lo.__esModule=!0;Lo.HandlebarsEnvironment=wF;function hie(t){return t&&t.__esModule?t:{default:t}}o(hie,"_interopRequireDefault");var qu=an(),W$e=fs(),BF=hie(W$e),j$e=EF(),K$e=die(),X$e=CF(),T0=hie(X$e),Z$e=IF(),eJe="4.7.9";Lo.VERSION=eJe;var tJe=8;Lo.COMPILER_REVISION=tJe;var rJe=7;Lo.LAST_COMPATIBLE_COMPILER_REVISION=rJe;var nJe={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};Lo.REVISION_CHANGES=nJe;var bF="[object Object]";function wF(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},j$e.registerDefaultHelpers(this),K$e.registerDefaultDecorators(this)}o(wF,"HandlebarsEnvironment");wF.prototype={constructor:wF,logger:T0.default,log:T0.default.log,registerHelper:o(function(e,r){if(qu.toString.call(e)===bF){if(r)throw new BF.default("Arg not supported with multiple helpers");qu.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:o(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:o(function(e,r){if(qu.toString.call(e)===bF)qu.extend(this.partials,e);else{if(typeof r>"u")throw new BF.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:o(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:o(function(e,r){if(qu.toString.call(e)===bF){if(r)throw new BF.default("Arg not supported with multiple decorators");qu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Z$e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var sJe=T0.default.log;Lo.log=sJe;Lo.createFrame=qu.createFrame;Lo.logger=T0.default});var gie=m((_0,mie)=>{"use strict";_0.__esModule=!0;function SF(t){this.string=t}o(SF,"SafeString");SF.prototype.toString=SF.prototype.toHTML=function(){return""+this.string};_0.default=SF;mie.exports=_0.default});var Eie=m(NF=>{"use strict";NF.__esModule=!0;NF.wrapHelper=iJe;function iJe(t,e){if(typeof t!="function")return t;var r=o(function(){var s=arguments[arguments.length-1];return arguments[arguments.length-1]=e(s),t.apply(this,arguments)},"wrapper");return r}o(iJe,"wrapHelper")});var wie=m(jc=>{"use strict";jc.__esModule=!0;jc.checkRevision=dJe;jc.template=AJe;jc.wrapProgram=P0;jc.resolvePartial=pJe;jc.invokePartial=fJe;jc.noop=Bie;function oJe(t){return t&&t.__esModule?t:{default:t}}o(oJe,"_interopRequireDefault");function aJe(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(aJe,"_interopRequireWildcard");var cJe=an(),_p=aJe(cJe),lJe=fs(),Ha=oJe(lJe),Va=v0(),yie=EF(),uJe=Eie(),Cie=IF();function dJe(t){var e=t&&t[0]||1,r=Va.COMPILER_REVISION;if(!(e>=Va.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Va.COMPILER_REVISION))if(e<Va.LAST_COMPATIBLE_COMPILER_REVISION){var n=Va.REVISION_CHANGES[r],s=Va.REVISION_CHANGES[e];throw new Ha.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+s+").")}else throw new Ha.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}o(dJe,"checkRevision");function AJe(t,e){if(!e)throw new Ha.default("No environment passed to template");if(!t||!t.main)throw new Ha.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,l){l.hash&&(c=_p.extend({},c,l.hash),l.ids&&(l.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,l),l.hooks=this.hooks,l.protoAccessControl=this.protoAccessControl;var u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
`),A=0,p=d.length;A<p&&!(!d[A]&&A+1===p);A++)d[A]=l.indent+d[A];u=d.join(`
`)}return u}else throw new Ha.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var s={strict:o(function(c,l,u){if(!c||!(l in c))throw new Ha.default('"'+l+'" not defined in '+c,{loc:u});return s.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||Cie.resultIsAllowed(u,s.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&s.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:_p.escapeExpression,invokePartial:n,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=P0(this,c,f,l,u,d,A):p||(p=this.programs[c]=P0(this,c,f)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=_p.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function i(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;i._setup(c),!c.partial&&t.useData&&(l=hJe(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function A(p){return""+t.main(s,p,s.helpers,s.partials,l,d,u)}return o(A,"main"),A=bie(t.main,A,s,c.depths||[],l,d),A(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)s.protoAccessControl=a.protoAccessControl,s.helpers=a.helpers,s.partials=a.partials,s.decorators=a.decorators,s.hooks=a.hooks;else{var c={};Iie(c,e.helpers,s),Iie(c,a.helpers,s),s.helpers=c,t.usePartial&&(s.partials=s.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(s.decorators=_p.extend({},e.decorators,a.decorators)),s.hooks={},s.protoAccessControl=Cie.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;yie.moveHelperToHooks(s,"helperMissing",l),yie.moveHelperToHooks(s,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Ha.default("must pass block params");if(t.useDepths&&!u)throw new Ha.default("must pass parent depths");return P0(s,a,t[a],c,0,l,u)},i}o(AJe,"template");function P0(t,e,r,n,s,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=bie(r,c,t,a,n,i),c.program=e,c.depth=a?a.length:0,c.blockParams=s||0,c}o(P0,"wrapProgram");function pJe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=k0(r.partials,t)):r.name==="@partial-block"?t=k0(r.data,"partial-block"):t=k0(r.partials,r.name),t}o(pJe,"resolvePartial");function fJe(t,e,r){var n=k0(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var s=void 0;if(r.fn&&r.fn!==Bie&&(function(){r.data=Va.createFrame(r.data);var i=r.fn;s=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Va.createFrame(l.data),l.data["partial-block"]=n,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=_p.extend({},r.partials,i.partials))})(),t===void 0&&s&&(t=s),t===void 0)throw new Ha.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(fJe,"invokePartial");function Bie(){return""}o(Bie,"noop");function k0(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(k0,"lookupOwnProperty");function hJe(t,e){return(!e||!("root"in e))&&(e=e?Va.createFrame(e):{},e.root=t),e}o(hJe,"initData");function bie(t,e,r,n,s,i){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],s,i,n),_p.extend(e,a)}return e}o(bie,"executeDecorators");function Iie(t,e,r){e&&Object.keys(e).forEach(function(n){var s=e[n];t[n]=mJe(s,r)})}o(Iie,"addHelpers");function mJe(t,e){var r=e.lookupProperty;return uJe.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(mJe,"passLookupPropertyOption")});var xF=m((D0,Sie)=>{"use strict";D0.__esModule=!0;D0.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};Sie.exports=D0.default});var Tie=m((O0,Rie)=>{"use strict";O0.__esModule=!0;function RF(t){return t&&t.__esModule?t:{default:t}}o(RF,"_interopRequireDefault");function TF(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}o(TF,"_interopRequireWildcard");var gJe=v0(),Nie=TF(gJe),EJe=gie(),yJe=RF(EJe),CJe=fs(),IJe=RF(CJe),BJe=an(),QF=TF(BJe),bJe=wie Line truncated
`+this.lexer.showPosition()+`
Expecting `+$.join(", ")+", got '"+(this.terminals_[B]||B)+"'":se="Parse error on line "+(h+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(se,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:$})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+B);switch(Q[0]){case 1:o.push(B),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),o.push(Q[1]),B=null,N?(B=N,N=null):(d=this.lexer.yyleng,u=this.lexer.yytext,h=this.lexer.yylineno,E=this.lexer.yylloc,f>0&&f--);break;case 2:if(F=this.productions_[Q[1]][1],ee.$=a[a.length-F],ee._$={first_line:c[c.length-(F||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(F||1)].first_column,last_column:c[c.length-1].last_column},y&&(ee._$.range=[c[c.length-(F||1)].range[0],c[c.length-1].range[1]]),G=this.performAction.call(ee,u,d,h,this.yy,Q[1],a,c),typeof G<"u")return G;F&&(o=o.slice(0,-1*F*2),a=a.slice(0,-1*F),c=c.slice(0,-1*F)),o.push(this.productions_[Q[1]][0]),a.push(ee.$),c.push(ee._$),q=l[o[o.length-2]][o[o.length-1]],o.push(q);break;case 3:return!0}}return!0}},e=(function(){var s={EOF:1,parseError:function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},setInput:function(n){return this._input=n,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var o=n.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var o=n.length,a=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o-1),this.offset-=o;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-o]),this},more:function(){return this._more=!0,this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),o=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
`+o+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,o,a,c,l,u;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),d=0;d<h.length&&(a=this._input.match(this.rules[h[d]]),!(a&&(!o||a[0].length>o[0].length)&&(o=a,c=d,!this.options.flex)));d++);return o?(u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,h[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var n=this.next();return typeof n<"u"?n:this.lex()},begin:function(n){this.conditionStack.push(n)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(n){this.begin(n)}};return s.options={},s.performAction=function(n,o,a,c){function l(h,d){return o.yytext=o.yytext.substring(h,o.yyleng-d+h)}var u=c;switch(a){case 0:if(o.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):o.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),o.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(o.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return o.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return o.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return o.yytext=o.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},s.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},s})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();v_.default=Hht;uCe.exports=v_.default});var Q_=A((__,pCe)=>{"use strict";__.__esModule=!0;function zht(t){return t&&t.__esModule?t:{default:t}}var Vht=co(),jV=zht(Vht);function R_(){this.parents=[]}R_.prototype={constructor:R_,mutating:!1,acceptKey:function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!R_.prototype[s.type])throw new jV.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new jV.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},accept:function(e){if(e){if(!this[e.type])throw new jV.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:T_,Decorator:T_,BlockStatement:dCe,DecoratorBlock:dCe,PartialStatement:fCe,PartialBlockStatement:function(e){fCe.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:T_,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function T_(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function Line truncated
`])}),e},each:function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Mp(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Mp?e:(e=A3(e,this,r),new Mp(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,s=[];Object.keys(e).forEach(function(n){var o=A3(e[n],r);o!=="undefined"&&s.push([r.quotedString(n),":",o])});var i=this.generateList(s);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var r=this.empty(),s=0,i=e.length;s<i;s++)s&&r.add(","),r.add(A3(e[s],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};U_.default=YCe;WCe.exports=U_.default});var rIe=A((q_,tIe)=>{"use strict";q_.__esModule=!0;function eIe(t){return t&&t.__esModule?t:{default:t}}var XCe=I_(),Gdt=co(),g3=eIe(Gdt),Hdt=Mi(),zdt=KCe(),ZCe=eIe(zdt);function uy(t){this.value=t}function hy(){}hy.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=XCe.COMPILER_REVISION,r=XCe.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,s){return Hdt.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,s,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!s,this.context=s||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var n=e.opcodes,o=void 0,a=void 0,c=void 0,l=void 0;for(c=0,l=n.length;c<l;c++)o=n[c],this.source.currentLocation=o.loc,a=a||o.loc,this[o.opcode].apply(this,o.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new g3.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
Expecting `+de.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Gr="Parse error on line "+(A+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Gr,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:de})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+b);switch(D[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(D[1]),b=null,N?(b=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(Ce=this.productions_[D[1]][1],qe.$=c[c.length-Ce],qe._$={first_line:l[l.length-(Ce||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Ce||1)].first_column,last_column:l[l.length-1].last_column},E&&(qe._$.range=[l[l.length-(Ce||1)].range[0],l[l.length-1].range[1]]),Me=this.performAction.call(qe,d,p,A,this.yy,D[1],c,l),typeof Me<"u")return Me;Ce&&(a=a.slice(0,-1*Ce*2),c=c.slice(0,-1*Ce),l=l.slice(0,-1*Ce)),a.push(this.productions_[D[1]][0]),c.push(qe.$),l.push(qe._$),tt=u[a[a.length-2]][a[a.length-1]],a.push(tt);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:o(function(i){return this._input=i,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===l.length?this.yylloc.first_column:0)+l[l.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],i=this.performAction.call(this,this.yy,this,A[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var i=this.next();return typeof i<"u"?i:this.lex()},"lex"),begin:o(function(i){this.conditionStack.push(i)},"begin"),popState:o(function(){return this.conditionStack.pop()},"popState"),_currentRules:o(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:o(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:o(function(i){this.begin(i)},"begin")};return n.options={},n.performAction=o(function(i,a,c,l){function u(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(u(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();L0.default=NJe;Pie.exports=L0.default});var G0=m((q0,Mie)=>{"use strict";q0.__esModule=!0;function xJe(t){return t&&t.__esModule?t:{default:t}}o(xJe,"_interopRequireDefault");var QJe=fs(),_F=xJe(QJe);function F0(){this.parents=[]}o(F0,"Visitor");F0.prototype={constructor:F0,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!F0.prototype[n.type])throw new _F.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new _F.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new _F.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},"accept"),Program:o(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:U0,Decorator:U0,BlockStatement:Die,DecoratorBlock:Die,PartialStatement:Oie,PartialBlockStatement:o(function(e){Oie.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:U0,PathExpression:o(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new zu(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:o(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof zu?e:(e=eU(e,this,r),new zu(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:o(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,n=[];Object.keys(e).forEach(function(i){var a=eU(e[i],r);a!=="undefined"&&n.push([r.quotedString(i),":",a])});var s=this.generateList(n);return s.prepend("{"),s.add("}"),s},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,s=e.length;n<s;n++)n&&r.add(","),r.add(eU(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};j0.default=Eoe;yoe.exports=j0.default});var Soe=m((K0,woe)=>{"use strict";K0.__esModule=!0;function boe(t){return t&&t.__esModule?t:{default:t}}o(boe,"_interopRequireDefault");var Ioe=v0(),SYe=fs(),rU=boe(SYe),NYe=an(),xYe=Coe(),Boe=boe(xYe);function Lp(t){this.value=t}o(Lp,"Literal");function Fp(){}o(Fp,"JavaScriptCompiler");Fp.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=Ioe.COMPILER_REVISION,r=Ioe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return NYe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:o(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:o(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:o(function(e,r,n,s){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!s,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new rU.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),s?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(i);if(this.isChild)return u;var h={compiler:this.compilerInfo(),main:u};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,f=d.programs,p=d.decorators;for(c=0,l=f.length;c<l;c++)h[c]=f[c],p[c]&&(h[c+"_d"]=p[c],h.useDecorators=!0);return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),i?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),r.srcName?(h=h.toStringWithSourceMap({file:r.destName}),h.map=h.map&&h.map.toString()):h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new ZCe.default(this.options.srcName),this.decorators=new ZCe.default(this.options.srcName)},createFunctionContext:function(e){var r=this,s="",i=this.stackVars.concat(this.registers.list);i.length>0&&(s+=", "+i.join(", "));var n=0;Object.keys(this.aliases).forEach(function(c){var l=r.aliases[c];l.children&&l.referenceCount>1&&(s+=", alias"+ ++n+"="+c,l.children[0]="alias"+n)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(s);return e?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),`) {
`,a,"}"])},mergeSource:function(e){var r=this.environment.isSimple,s=!this.forceBuffer,i=void 0,n=void 0,o=void 0,a=void 0;return this.source.each(function(c){c.appendToBuffer?(o?c.prepend(" + "):o=c,a=c):(o&&(n?o.prepend("buffer += "):i=!0,a.add(";"),o=a=void 0),n=!0,r||(s=!1))}),s?o?(o.prepend("return "),a.add(";")):n||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(s);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,h=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],h[l]&&(A[l+"_d"]=h[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),s?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new Boe.default(this.options.srcName),this.decorators=new Boe.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",s=this.stackVars.concat(this.registers.list);s.length>0&&(n+=", "+s.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,s=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):s=!0,c.add(";"),a=c=void 0),i=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(s?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(s?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},blockValue:function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var i=this.popStack();s.splice(1,0,i),this.push(this.source.functionCall(r,"call",s))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",this.source.functionCall(e,"call",r),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,r,s,i){var n=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[n++])):this.pushContext(),this.resolvePath("context",e,n,r,s)},lookupBlockParam:function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(e,r,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},resolvePath:function(e,r,s,i,n){var o=this;if(this.options.strict||this.options.assumeObjects){this.push(Vdt(this.options.strict&&n,this,r,s,e));return}for(var a=r.length,c=function(u){o.replaceStack(function(h){var d=o.nameLookup(h,r[u],e);return i?[" && ",d]:[" != null ? ",d," : ",h]})},l=s;l<a;l++)c(l)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,r){var s=this.nameLookup("decorators",r,"decorator"),i=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",i])," || fn;"])},invokeHelper:function(e,r,s){var i=this.popStack(),n=this.setupHelper(e,r),o=[];s&&o.push(n.name),o.push(i),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],c=this.source.functionCall(a,"call",n.callParams);this.push(c)},itemsSeparatedBy:function(e,r){var s=[];s.push(e[0]);for(var i=1;i<e.length;i++)s.push(r,e[i]);return s},invokeKnownHelper:function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},invokeAmbiguous:function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var i=this.setupHelper(0,e,r),n=this.lastHelper=this.nameLookup("helpers",e,"helper"),o=["(","(helper = ",n," || ",s,")"];this.options.strict||(o[0]="(helper = ",o.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",o,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",i.callParams)," : helper))"])},invokePartial:function(e,r,s){var i=[],n=this.setupParams(r,1,i);e&&(r=this.popStack(),delete n.name),s&&(n.indent=JSON.stringify(s)),n.helpers="helpers",n.partials="partials",n.decorators="container.decorators",e?i.unshift(r):i.unshift(this.nameLookup("partials",r,"partial")),this.options.compat&&(n.depths="depths"),n=this.objectLiteral(n),i.push(n),this.push(this.source.functionCall("container.invokePartial","",i))},assignToHash Line truncated
`,e};Sr.prototype.Program=function(t){var e="",r=t.body,s=void 0,i=void 0;if(t.blockParams){var n="BLOCK PARAMS: [";for(s=0,i=t.blockParams.length;s<i;s++)n+=" "+t.blockParams[s];n+=" ]",e+=this.pad(n)}for(s=0,i=r.length;s<i;s++)e+=this.accept(r[s]);return this.padding--,e};Sr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Sr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Sr.prototype.BlockStatement=Sr.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Sr.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Sr.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Sr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Sr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Sr.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,i=0,n=e.length;i<n;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};Sr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Sr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Sr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Sr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Sr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Sr.prototype.NullLiteral=function(){return"NULL"};Sr.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};Sr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var uIe=A((UZt,lIe)=>{var z_=nIe().default,cIe=oIe();z_.PrintVisitor=cIe.PrintVisitor;z_.print=cIe.print;lIe.exports=z_;function aIe(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=z_.compile(s)}typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=aIe,require.extensions[".hbs"]=aIe)});var bIe=A(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.getProxyUrl=pft;J_.checkBypass=IIe;function pft(t){let e=t.protocol==="https:";if(IIe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new j_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new j_(`http://${r}`)}else return}function IIe(t){if(!t.hostname)return!1;let e=t.hostname;if(Aft(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function Aft(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var j_=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var SIe=A(lr=>{"use strict";var mft=lr&&lr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),gft=lr&&lr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),X_=lr&&lr.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&mft(r,e,s[i]);return gft(r,e),r}})(),Lr=lr&&lr.__awaiter||function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(fu Line truncated
`).forEach(r=>{r.match(xAt)||r.match(NAt)||(e+=r)}),Buffer.from(e,"base64")}function RAt(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}});var QQ=A(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.SHA2_HASH_ALGOS=Md.RSA_SIGNATURE_ALGOS=Md.ECDSA_SIGNATURE_ALGOS=void 0;Md.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};Md.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};Md.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var m5=A(PQ=>{"use strict";Object.defineProperty(PQ,"__esModule",{value:!0});PQ.RFC3161TimestampVerificationError=void 0;var A5=class extends Error{};PQ.RFC3161TimestampVerificationError=A5});var abe=A(yl=>{"use strict";var TAt=yl&&yl.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),_At=yl&&yl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),QAt=yl&&yl.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&TAt(r,e,s[i]);return _At(r,e),r}})();Object.defineProperty(yl,"__esModule",{value:!0});yl.TSTInfo=void 0;var obe=QAt(by()),PAt=QQ(),OAt=m5(),g5=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return PAt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=obe.digest(this.messageImprintHashAlgorithm,e);if(!obe.bufferEqual(r,this.messageImprintHashedMessage))throw new OAt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};yl.TSTInfo=g5});var lbe=A(El=>{"use strict";var DAt=El&&El.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),kAt=El&&El.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MAt=El&&El.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&DAt(r,e,s[i]);return kAt(r,e),r}})();Object.defineProperty(El,"__esModule",{value:!0});El.RFC3161Timestamp=void 0;var LAt=RQ(),y5=MAt(by()),cbe=QQ(),Pb=m5(),FAt=abe(),UAt="1.2.840.113549.1.7.2",qAt="1.2.840.113549.1.9.16.1.4",GAt="1.2.840.113549.1.9.4",E5=class t{root;constructor(e){this.root=e}static parse(e){let r=LAt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return cbe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return cbe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new FAt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Pb.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==UAt)throw new Pb.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==qAt)throw new Pb.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=y5.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!y5.bufferEqual(e,r))throw new Pb.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0 Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var wwe=A(bwe=>{"use strict";var aj=Yu().Buffer;bwe._dbcs=Ku;var Vs=-1,Iwe=-2,ha=-10,Yi=-1e3,ky=new Array(256),Xb=-1;for(y1=0;y1<256;y1++)ky[y1]=Vs;var y1;function Ku(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=ky.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var i=this.decodeTables.length;this.decodeTables.push(ky.slice(0));var n=this.decodeTables.length;this.decodeTables.push(ky.slice(0));for(var o=this.decodeTables[0],s=129;s<=254;s++)for(var a=this.decodeTables[Yi-o[s]],c=48;c<=57;c++){if(a[c]===Vs)a[c]=Yi-i;else if(a[c]>Yi)throw new Error("gb18030 decode tables conflict at byte 2");for(var l=this.decodeTables[Yi-a[c]],u=129;u<=254;u++){if(l[u]===Vs)l[u]=Yi-n;else{if(l[u]===Yi-n)continue;if(l[u]>Yi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var h=this.decodeTables[Yi-l[u]],d=48;d<=57;d++)h[d]===Vs&&(h[d]=Iwe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var f={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},rh=class{get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let i=this.source.match(s?eEt:Zyt);if(!i||s&&!_j.includes(i[1])||!RSe.includes(i[1]))return;this.algorithm=i[1],this.digest=i[2];let n=i[3];n&&(this.options=n.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=mo(e,r);if(!s)return!1;if(s.isIntegrity){let i=s.pickAlgorithm(r,[this.algorithm]);if(!i)return!1;let n=s[i].find(o=>o.digest===this.digest);return n||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(_j.includes(this.algorithm)&&this.digest.match(Xyt)&&this.options.every(r=>r.match(tEt)))?"":`${this.algorithm}-${this.digest}${ow(this.options)}`}};function vSe(t,e,r,s){let i=t!=="",n=!1,o="",a=s.length-1;for(let l=0;l<a;l++){let u=rh.prototype.toString.call(s[l],r);u&&(n=!0,o+=u,o+=e)}let c=rh.prototype.toString.call(s[a],r);return c&&(n=!0,o+=c),i&&n?t+e+o:t+o}var oA=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let i of _j)this[i]&&(s=vSe(s,r,e,this[i]))}else for(let i of Object.keys(this))s=vSe(s,r,e,this[i]);return s}concat(e,r){let s=typeof e=="string"?e:iw(e,r);return mo(`${this.toString(r)} ${s}`,r)}hexDigest(){return mo(this,{single:!0}).hexDigest()}merge(e,r){let s=mo(e,r);for(let i in s)if(this[i]){if(!this[i].find(n=>s[i].find(o=>n.digest===o.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[i]=s[i]}match(e,r){let s=mo(e,r);if(!s)return!1;let i=s.pickAlgorithm(r,Object.keys(this));return!!i&&this[i].find(n=>s[i].find(o=>n.digest===o.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||cEt,i=Object.keys(this);return r?.length&&(i=i.filter(n=>r.includes(n))),i.length?i.reduce((n,o)=>s(n,o)||n):null}};Rl.exports.parse=mo;function mo(t,e){if(!t)return null;if(typeof t=="string")return Tj(t,e);if(t.algorithm&&t.digest){let r=new oA;return r[t.algorithm]=[t],Tj(iw(r,e),e)}else return Tj(iw(t,e),e)}function Tj(t,e){if(e?.single)return new rh(t,e);let r=t.trim().split(/\s+/).reduce((s,i)=>{let n=new rh(i,e);if(n.algorithm&&n.digest){let o=n.algorithm;Object.keys(s).includes(o)||(s[o]=[]),s[o].push(n)}return s},new oA);return r.isEmpty()?null:r}Rl.exports.stringify=iw;function iw(t,e){return t.algorithm&&t.digest?rh.prototype.toString.call(t,e):typeof t=="string"?iw(mo(t,e),e):oA.prototype.toString.call(t,e)}Rl.exports.fromHex=rEt;function rEt(t,e,r){let s=ow(r?.options);return mo(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}Rl.exports.fromData=sEt;function sEt(t,e){let r=e?.algorithms||[...Pj],s=ow(e?.options);return r.reduce((i,n)=>{let o=nw.createHash(n).update(t).digest("base64"),a=new rh(`${n}-${o}${s}`,e);if(a.algorithm&&a.digest){let c=a.algorithm;i[c]||(i[c]=[]),i[c].push(a)}return i},new oA)}Rl.exports.fromStream=iEt;function iEt(t,e){let r=Oj(e);return new Promise((s,i)=>{t.pipe(r),t.on("error",i),r.on("error",i);let n;r.on("integrity",o=>{n=o}),r.on("end",()=>s(n)),r.resume()})}Rl.exports.checkData=nEt;function nEt(t,e,r){if(e=mo(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),i=nw.createHash(s).update(t).digest("base64"),n=mo({algorithm:s,digest:i}),o=n.match(e,r);if(r=r||{},o||!r.error)return o;if(typeof r.size=="number"&&t.length!==r.size){let a=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw a.code="EBADSIZE",a.found=t.length,a.expected=r.size,a.sri=e,a}else{let a=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${n}. (${t.length} bytes)`);throw a.code="EINTEGRITY",a.found=n,a.expected=e,a.algorithm=s,a.sri=e,a}}Rl.exports.checkStream=oEt;function oEt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=mo(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=Oj(r);return new Promise((i,n)=>{t.pipe(s),t.on("error",n),s.on("error",n);let o;s.on("verified",a=>{o=a}),s.on("end",()=>i(o)),s.resume()})}Rl.exports.integrityStream=Oj;function Oj(t=Object.create(null)){return new Qj(t)}Rl.exports.create=aEt;function aEt(t){let e=t?.algorithms||[...Pj],r=ow(t?.options),s=e.map(nw.createHash);return{update:function(i,n){return s.forEach(o=>o.update(i,n)),this},digest:function(){return e.reduce((n,o)=>{let a=s.shift().digest("base64"),c=new rh(`${o}-${a}${r}`,t);return n[c.algorithm]||(n[c.algorithm]=[]),n[c.algorithm].push(c),n},new oA)}}}function cEt(t,e){return NSe.indexOf(t.toLowerCase())>=NSe.indexOf(e.toLowerCase())?t:e}});var kj=A((xrr,OSe)=>{var TSe=wj(),_Se=Rj(),lEt=Tl(),QSe={shared:!1,ignoreCargoCult:!0},uEt={status:200,headers:{}},Fy=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},PSe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},Dj=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=Fy(r),this.response=PSe(s),this.options=i,this.policy=new TSe(this.request,this.response,QSe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new TSe(Fy(e),uEt,QSe).storable()}satisfies(e){let r=Fy(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new _Se(this.request),i=new _Se(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?lEt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Fy(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Fy(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=Fy(e),i=PSe(r);return!this.policy.revalidatedPolicy(s,i).modified}};OSe.exports=Dj});var kSe=A((Nrr,DSe)=>{var Mj=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};DSe.exports={NotCachedError:Mj}});var $Se=A((vrr,VSe)=>{"use strict";var MSe=typeof process=="object"&&process?process:{stdout:null,stderr:null},hEt=require("events"),LSe=require("stream"),FSe=require("string_decoder").StringDecoder,sh=Symbol("EOF"),ih=Symbol("maybeEmitEnd"),Vd=Symbol("emittedEnd"),_1=Symbol("emittingEnd"),aw=Symbol("emittedError"),Q1=Symbol("closed"),USe=Symbol("read"),P1=Symbol("flush"),qSe=Symbol("flushChunk"),Bn=Symbol("encoding"),nh=Symbol("decoder"),O1=Symbol("flowing"),cw=Symbol("paused"),Uy=Symbol("resume"),Ts=Symbol("bufferLength"),Lj=Symbol("bufferPush"),Fj=Symbol("bufferShift"),di=Symbol("objectMode"),fi=Symbol("destroyed"),Uj=Symbol("emitData"),GSe=Symbol("emitEnd"),qj=Symbol("emitEnd2"),oh=Symbol("async"),lw=t=>Promise.resolve().then(t),HSe=global._MP_NO_ITERATOR_SYMBOLS_!=="1",dEt=HSe&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),fEt=HSe&&Symbol.iterator||Symbol("iterator not implemented"),pEt=t=>t==="end"||t==="finish"||t==="prefinish",AEt=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,mEt=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),D1=class{constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[Uy](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Gj=class extends D1{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};VSe.exports=class zSe extends LSe{constructor(e){super(),this[O1]=!1,this[cw]=!1,this.pipes=[],this.buffer=[],this[di]=e&&e.objectMode||!1,this[di]?this[Bn]=null:this[Bn]=e&&e.encoding||null,this[Bn]==="buffer"&&(this[Bn]=null),this[oh]=e&&!!e.async||!1,this[nh]=this[Bn]?new FSe(this[Bn]):null,this[sh]=!1,this[Vd]=!1,this[_1]=!1,this[Q1]=!1,this[aw]=null,this.writable=!0,this.readable=!0,thi Line truncated
`+o.map(d=>{let f=JSON.stringify(d);return`${oP(f)} ${f}`}).join(`
`),c=async()=>{let d=jbt(Ql.join(t,"tmp"),s.tmpPrefix);return await M6(Ql.dirname(d),{recursive:!0}),{target:d,moved:!1}},l=async d=>{if(!d.moved)return rve(d.target,{recursive:!0,force:!0})},u=async d=>{await zbt(d.target,a,{flag:"wx"}),await M6(Ql.dirname(i),{recursive:!0}),await Kbt(d.target,i),d.moved=!0},h=await c();try{await u(h)}finally{await l(h)}return o.reverse().map(d=>aP(t,d,!0))}yo.exports.insert=sve;async function sve(t,e,r,s={}){let{metadata:i,size:n,time:o}=s,a=xw(t,e),c={key:e,integrity:r&&$bt.stringify(r),time:o||Date.now(),size:n,metadata:i};try{await M6(Ql.dirname(a),{recursive:!0});let l=JSON.stringify(c);await qbt(a,`
${oP(l)} ${l}`)}catch(l){if(l.code==="ENOENT")return;throw l}return aP(t,c)}yo.exports.find=Zbt;async function Zbt(t,e){let r=xw(t,e);try{return(await nP(r)).reduce((i,n)=>n&&n.key===e?aP(t,n):i,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}yo.exports.delete=ewt;function ewt(t,e,r={}){if(!r.removeFully)return sve(t,e,null,r);let s=xw(t,e);return rve(s,{recursive:!0,force:!0})}yo.exports.lsStream=ive;function ive(t){let e=L6(t),r=new Vbt({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(iP(),sP)),i=await k6(e);return await s(i,async n=>{let o=Ql.join(e,n),a=await k6(o);await s(a,async c=>{let l=Ql.join(o,c),u=await k6(l);await s(u,async h=>{let d=Ql.join(l,h);try{let p=(await nP(d)).reduce((m,E)=>(m.set(E.key,E),m),new Map);for(let m of p.values()){let E=aP(t,m);E&&r.write(E)}}catch(f){if(f.code==="ENOENT")return;throw f}},{concurrency:D6})},{concurrency:D6})},{concurrency:D6}),r.end(),r}).catch(s=>r.emit("error",s)),r}yo.exports.ls=twt;async function twt(t){return(await ive(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}yo.exports.bucketEntries=nP;async function nP(t,e){let r=await Gbt(t,"utf8");return rwt(r,e)}function rwt(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||oP(s[1])!==s[0])return;let i;try{i=JSON.parse(s[1])}catch{}i&&e.push(i)}),e}yo.exports.bucketDir=L6;function L6(t){return Ql.join(t,`index-v${Wbt}`)}yo.exports.bucketPath=xw;function xw(t,e){let r=nve(e);return Ql.join.apply(Ql,[L6(t)].concat(Ybt(r)))}yo.exports.hashKey=nve;function nve(t){return ove(t,"sha256")}yo.exports.hashEntry=oP;function oP(t){return ove(t,"sha1")}function ove(t,e){return Ubt.createHash(e).update(t).digest("hex")}function aP(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?Jbt(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}function k6(t){return Hbt(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}});var vw=A(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});uP.LRUCache=void 0;var swt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,cve=new Set,F6=typeof process=="object"&&process?process:{},lve=(t,e,r,s)=>{typeof F6.emitWarning=="function"?F6.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},lP=globalThis.AbortController,ave=globalThis.AbortSignal;if(typeof lP>"u"){ave=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s)}},lP=class{constructor(){e()}signal=new ave;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r)}}};let t=F6.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,lve("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var iwt=t=>!cve.has(t),jd=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),uve=t=>jd(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?cP:null:null,cP=class extends Array{constructor(t){super(t),this.fill(0)}},nwt=class Nw{heap;length;static#e=!1;static create(e){let r=uve(e);if(!r)return[];Nw.#e=!0;let s=new Nw(e,r);return Nw.#e=!1,s}constructor(e,r){if(!Nw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},owt=class hve{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#f;#p;#h;#o;#y;#I;#g;#A;#x;#m;#S;#B;#E;#C;#b;#v;#c;#O;static unsafeExposeInternals(e){return{starts:e.#B,ttls:e.#E,autopurgeTimers:e.#C,sizes:e.#S,keyMap:e.#p,keyList:e.#h,valList:e.#o,next:e.#y,prev:e.#I,get head(){return e.#g},get tail(){return e.#A},free:e.#x,isBackgroundFetch:r=>e.#d(r),backgroundFetch:(r,s,i,n)=>e.#G(r,s,i,n),moveToTail:r=>e.#P(r),indexes:r=>e.#R(r),rindexes:r=>e.#T(r),isStale:r=>e.#w(r)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#a}get fetchMethod(){return this.#n}get memoMethod(){return this.#u}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#i}constructor(e){let{max:r=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:l,onInsert:u,disposeAfter:h,noDisposeOnSet:d,noUpdateTTL:f,maxSize:p=0,maxEntrySize:m=0,sizeCalculation:E,fetchMethod:y,memoMethod:C,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:P,ignoreFetchAbort:Q,perf:k}=e;if(k!==void 0&&typeof k?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#l=k??swt,r!==0&&!jd(r))throw new TypeError("max option must be a nonnegative integer");let G=r?uve(r):Array;if(!G)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=p,this.maxEntrySize=m||this.#t,this.sizeCalculation=E,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(C!==void 0&&typeof C!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#u=C,y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#n=y,this.#v=!!y,this.#p=new Map,this.#h=new Array(r).fill(void 0),this.#o=new Array(r).fill(void 0),this.#y=new G(r),this.#I=new G(r),this.#g=0,this.#A=0,this.#x=nwt.create(r),this.#a=0, Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}});var Pve=A((Zsr,Z6)=>{"use strict";var Rve=Wy(),Tve=Rw(),_ve=vve(),Gwt=uw(),{PassThrough:Hwt}=jj(),zwt=cA(),Qve=t=>({algorithms:["sha512"],...t});Z6.exports=Vwt;async function Vwt(t,e,r,s={}){let{memoize:i}=s;s=Qve(s);let n=await _ve(t,r,s),o=await Rve.insert(t,e,n.integrity,{...s,size:n.size});return i&&Tve.put(t,o,r,s),n.integrity}Z6.exports.stream=$wt;function $wt(t,e,r={}){let{memoize:s}=r;r=Qve(r);let i,n,o,a,c=new zwt;if(s){let u=new Hwt().on("collect",h=>{a=h});c.push(u)}let l=_ve.stream(t,r).on("integrity",u=>{i=u}).on("size",u=>{n=u}).on("error",u=>{o=u});return c.push(l),c.push(new Gwt({async flush(){if(!o){let u=await Rve.insert(t,e,i,{...r,size:n});s&&a&&Tve.put(t,u,a,r),c.emit("integrity",i),c.emit("size",n)}}})),c}});var Wve=A(ht=>{"use strict";var $s=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),jwt=$s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=t.balanced=void 0;var e=(i,n,o)=>{let a=i instanceof RegExp?r(i,o):i,c=n instanceof RegExp?r(n,o):n,l=a!==null&&c!=null&&(0,t.range)(a,c,o);return l&&{start:l[0],end:l[1],pre:o.slice(0,l[0]),body:o.slice(l[0]+a.length,l[1]),post:o.slice(l[1]+c.length)}};t.balanced=e;var r=(i,n)=>{let o=n.match(i);return o?o[0]:null},s=(i,n,o)=>{let a,c,l,u,h,d=o.indexOf(i),f=o.indexOf(n,d+1),p=d;if(d>=0&&f>0){if(i===n)return[d,f];for(a=[],l=o.length;p>=0&&!h;){if(p===d)a.push(p),d=o.indexOf(i,p+1);else if(a.length===1){let m=a.pop();m!==void 0&&(h=[m,f])}else c=a.pop(),c!==void 0&&c<l&&(l=c,u=f),f=o.indexOf(n,p+1);p=d<f&&d>=0?d:f}a.length&&u!==void 0&&(h=[l,u])}return h};t.range=s}),Jwt=$s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXPANSION_MAX=void 0,t.expand=N;var e=jwt(),r="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",n="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0",a=new RegExp(r,"g"),c=new RegExp(s,"g"),l=new RegExp(i,"g"),u=new RegExp(n,"g"),h=new RegExp(o,"g"),d=/\\\\/g,f=/\\{/g,p=/\\}/g,m=/\\,/g,E=/\\./g;t.EXPANSION_MAX=1e5;function y(L){return isNaN(L)?L.charCodeAt(0):parseInt(L,10)}function C(L){return L.replace(d,r).replace(f,s).replace(p,i).replace(m,n).replace(E,o)}function w(L){return L.replace(a,"\\").replace(c,"{").replace(l,"}").replace(u,",").replace(h,".")}function B(L){if(!L)return[""];let F=[],q=(0,e.balanced)("{","}",L);if(!q)return L.split(",");let{pre:$,body:se,post:Qe}=q,we=$.split(",");we[we.length-1]+="{"+se+"}";let le=B(Qe);return Qe.length&&(we[we.length-1]+=le.shift(),we.push.apply(we,le)),F.push.apply(F,we),F}function N(L,F={}){if(!L)return[];let{max:q=t.EXPANSION_MAX}=F;return L.slice(0,2)==="{}"&&(L="\\{\\}"+L.slice(2)),ee(C(L),q,!0).map(w)}function P(L){return"{"+L+"}"}function Q(L){return/^-?0\d/.test(L)}function k(L,F){return L<=F}function G(L,F){return L>=F}function ee(L,F,q){let $=[],se=(0,e.balanced)("{","}",L);if(!se)return[L];let Qe=se.pre,we=se.post.length?ee(se.post,F,!1):[""];if(/\$$/.test(se.pre))for(let le=0;le<we.length&&le<F;le++){let ct=Qe+"{"+se.body+"}"+we[le];$.push(ct)}else{let le=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(se.body),ct=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(se.body),et=le||ct,It=se.body.indexOf(",")>=0;if(!et&&!It)return se.post.match(/,(?!,).*\}/)?(L=se.pre+"{"+se.body+i+se.post,ee(L,F,!0)):[L];let De;if(et)De=se.body.split(/\.\./);else if(De=B(se.body),De.length===1&&De[0]!==void 0&&(De=ee(De[0],F,!1).map(P),De.length===1))return we.map(Ht=>se.pre+De[0]+Ht);let dt;if(et&&De[0]!==void 0&&De[1]!==void 0){let Ht=y(De[0]),es=y(De[1]),Pn=Math.max(De[0].length,De[1].length),vt=De.length===3&&De[2]!==void 0?Math.abs(y(De[2])):1,bo=k;es<Ht&&(vt*=-1,bo=G);let R=De.some(Q);dt=[];for(let _=Ht;bo(_,es);_+=vt){let D;if(ct)D=String.fromCharCode(_),D==="\\"&&(D="");else if(D=String(_),R){let U=Pn-D.length;if(U>0){let W=new Array(U+1).join("0");_<0?D="-"+W+D.slice(1):D=W+D}}dt.push(D)}}else{dt=[];for(let Ht=0;Ht<De.length;Ht++)dt.push.apply(dt,ee(De[Ht],F,!1))}for(let Ht=0;Ht<dt.length;Ht++)for(let es=0;es<we.length&&$.length<F;es++){let Pn=Qe+dt[Ht]+we[es];(!q||et||Pn)&&$.push(Pn)}}return $}}),Ywt=$s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0;var e=1024*64,r=s=>{if(typeof s!="string")throw new TypeError("invalid pattern");if(s.length>e)throw new TypeError("pattern is too long")};t.assertValidPattern=r}),Wwt=$s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;var e={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},r=o=>o.replace(/[[\]\\-]/g,"\\$Line truncated
globstar while`,R,te,_,ke,ot),this.matchOne(R.slice(te),_.slice(ke),D))return this.debug("globstar found match!",te,v,ot),!0;if(ot==="."||ot===".."||!U.dot&&ot.charAt(0)==="."){this.debug("dot detected!",R,te,_,ke);break}this.debug("globstar swallow a segment, and continue"),te++}return!!(D&&(this.debug(`
>>> no match, partial?`,R,te,_,ke),te===v))}let st;if(typeof j=="string"?(st=ge===j,this.debug("string match",j,ge,st)):(st=j.test(ge),this.debug("pattern match",j,ge,st)),!st)return!1}if(g===v&&S===M)return!0;if(g===v)return D;if(S===M)return g===v-1&&R[g]==="";throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(R){(0,r.assertValidPattern)(R);let _=this.options;if(R==="**")return t.GLOBSTAR;if(R==="")return"";let D,U=null;(D=R.match(y))?U=_.dot?w:C:(D=R.match(a))?U=(_.nocase?_.dot?h:u:_.dot?l:c)(D[1]):(D=R.match(B))?U=(_.nocase?_.dot?P:N:_.dot?Q:k)(D):(D=R.match(d))?U=_.dot?p:f:(D=R.match(m))&&(U=E);let W=s.AST.fromGlob(R,this.options).toMMPattern();return U&&typeof W=="object"&&Reflect.defineProperty(W,"test",{value:U}),W}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let R=this.set;if(!R.length)return this.regexp=!1,this.regexp;let _=this.options,D=_.noglobstar?$:_.dot?se:Qe,U=new Set(_.nocase?["i"]:[]),W=R.map(v=>{let M=v.map(ge=>{if(ge instanceof RegExp)for(let te of ge.flags.split(""))U.add(te);return typeof ge=="string"?Ht(ge):ge===t.GLOBSTAR?t.GLOBSTAR:ge._src});M.forEach((ge,te)=>{let ke=M[te+1],ot=M[te-1];ge!==t.GLOBSTAR||ot===t.GLOBSTAR||(ot===void 0?ke!==void 0&&ke!==t.GLOBSTAR?M[te+1]="(?:\\/|"+D+"\\/)?"+ke:M[te]=D:ke===void 0?M[te-1]=ot+"(?:\\/|\\/"+D+")?":ke!==t.GLOBSTAR&&(M[te-1]=ot+"(?:\\/|\\/"+D+"\\/)"+ke,M[te+1]=t.GLOBSTAR))});let j=M.filter(ge=>ge!==t.GLOBSTAR);if(this.partial&&j.length>=1){let ge=[];for(let te=1;te<=j.length;te++)ge.push(j.slice(0,te).join("/"));return"(?:"+ge.join("|")+")"}return j.join("/")}).join("|"),[g,S]=R.length>1?["(?:",")"]:["",""];W="^"+g+W+S+"$",this.partial&&(W="^(?:\\/|"+g+W.slice(1,-1)+S+")$"),this.negate&&(W="^(?!"+W+").+$");try{this.regexp=new RegExp(W,[...U].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(R){return this.preserveMultipleSlashes?R.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(R)?["",...R.split(/\/+/)]:R.split(/\/+/)}match(R,_=this.partial){if(this.debug("match",R,this.pattern),this.comment)return!1;if(this.empty)return R==="";if(R==="/"&&_)return!0;let D=this.options;this.isWindows&&(R=R.split("\\").join("/"));let U=this.slashSplit(R);this.debug(this.pattern,"split",U);let W=this.set;this.debug(this.pattern,"set",W);let g=U[U.length-1];if(!g)for(let S=U.length-2;!g&&S>=0;S--)g=U[S];for(let S=0;S<W.length;S++){let v=W[S],M=U;if(D.matchBase&&v.length===1&&(M=[g]),this.matchOne(M,v,_))return D.flipNegate?!0:!this.negate}return D.flipNegate?!1:this.negate}static defaults(R){return t.minimatch.defaults(R).Minimatch}};t.Minimatch=es;var Pn=Ove();Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return Pn.AST}});var vt=Dve();Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return vt.escape}});var bo=eJ();Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return bo.unescape}}),t.minimatch.AST=s.AST,t.minimatch.Minimatch=es,t.minimatch.escape=i.escape,t.minimatch.unescape=n.unescape}),Kwt=$s(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=void 0;var e=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,r=new Set,s=typeof process=="object"&&process?process:{},i=(f,p,m,E)=>{typeof s.emitWarning=="function"?s.emitWarning(f,p,m,E):console.error(`[${m}] ${p}: ${f}`)},n=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof n>"u"){o=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(m,E){this._onabort.push(E)}},n=class{constructor(){p()}signal=new o;abort(m){if(!this.signal.aborted){this.signal.reason=m,this.signal.aborted=!0;for(let E of this.signal._onabort)E(m);this.signal.onabort?.(m)}}};let f=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",p=()=>{f&&(f=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",p))}}var a=f=>!r.has(f),c=f=>f&&f===Math.floor(f)&&f>0&&isFinite(f),l=f=>c(f)?f<=Math.pow(2,8)?Uint8Array:f<=Math.pow(2,16)?Uint16Array:f<=Math.pow(2,32)?Uint32Array:f<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(f){super(f),this.fill(0)}},h=class kw{heap;length;static#e=!1;static create(p){let m=l(p);if(!m)return[];kw.#e=!0;let E=new kw(p,m);return kw.#e=!1,E}constructor(p,m){if(!kw.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new m(p),this.length=0}push(p){this.heap[this.length++]=p}pop(){return this.heap[--this.length]}},d=class Lve{#e;#t;#s;#r;#i;#n;#u;#l;get perf(){return this.#l}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation Line truncated
\r
`);if(d===-1){NP("have not received end of HTTP headers yet..."),n();return}let f=h.slice(0,d).toString("ascii").split(`\r
`),p=f.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=p.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let B=w.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,B).toLowerCase(),P=w.slice(B+1).trimStart(),Q=C[N];typeof Q=="string"?C[N]=[Q,P]:Array.isArray(Q)?Q.push(P):C[N]=P}NP("got proxy server response: %o %o",p,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:h})}t.on("error",c),t.on("end",a),n()})}cE.parseProxyResponse=NBt});var URe=A(Aa=>{"use strict";var vBt=Aa&&Aa.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),RBt=Aa&&Aa.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LRe=Aa&&Aa.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&vBt(e,t,r);return RBt(e,t),e},FRe=Aa&&Aa.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.HttpsProxyAgent=void 0;var Uw=LRe(require("net")),kRe=LRe(require("tls")),TBt=FRe(require("assert")),_Bt=FRe(ip()),QBt=zI(),PBt=require("url"),OBt=DRe(),qw=(0,_Bt.default)("https-proxy-agent"),vP=class extends QBt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new PBt.URL(e):e,this.proxyHeaders=r?.headers??{},qw("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?MRe(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(s.protocol==="https:"){qw("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;i=kRe.connect({...this.connectOpts,servername:d&&Uw.isIP(d)?void 0:d})}else qw("Creating `net.Socket`: %o",this.connectOpts),i=Uw.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Uw.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(n))a+=`${d}: ${n[d]}\r
`;let c=(0,OBt.parseProxyResponse)(i);i.write(`${a}\r
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",DBt),r.secureEndpoint){qw("Upgrading socket connection to TLS");let d=r.servername||r.host;return kRe.connect({...MRe(r,"host","path","port"),socket:i,servername:Uw.isIP(d)?void 0:d})}return i}i.destroy();let h=new Uw.Socket({writable:!1});return h.readable=!0,e.once("socket",d=>{qw("Replaying proxy buffer for failed request"),(0,TBt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),h}};vP.protocols=["http","https"];Aa.HttpsProxyAgent=vP;function DBt(t){t.resume()}function MRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var zRe=A(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var qRe=require("buffer"),CA={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Eh.ERRORS=CA;function kBt(t){if(!qRe.Buffer.isEncoding(t))throw new Error(CA.INVALID_ENCODING)}Eh.checkEncoding=kBt;function GRe(t){return typeof t=="number"&&isFinite(t)&&UBt(t)}Eh.isFiniteInteger=GRe;function HRe(t,e){if(typeof t=="number"){if(!GRe(t)||t<0)throw new Error(e?CA.INVALID_OFFSET:CA.INVALID_LENGTH)}else throw new Error(e?CA.INVALID_OFFSET_NON_NUMBER:CA.INVALID_LENGTH_NON_NUMBER)}function MBt(t){HRe(t,!1)}Eh.checkLengthValue=MBt;function LBt(t){HRe(t,!0)}Eh.checkOffsetValue=LBt;function FBt(t,e){if(t<0||t>e.length)throw new Error(CA.INVALID_TARGET_OFFSET)}Eh.checkTargetOffset=FBt;function UBt(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function qBt(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof qRe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Eh.bigIntAndBufferInt64Check=qBt});var $Re=A(SJ=>{"use strict";Object.defineProperty(SJ,"__esModule",{value:!0});var rt=zRe(),VRe=4096,GBt="utf8",wJ=class t{constructor(e){if(this.length=0,this._encoding=GBt,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(rt.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(rt.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(VRe);else{if(typeof e<"u")throw new Error(rt.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(VRe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return rt.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return rt.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){return t Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var s=this.popStack();n.splice(1,0,s),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:o(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:o(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:o(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:o(function(e){this.lastContext=e},"getContext"),pushContext:o(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:o(function(e,r,n,s){var i=0;!s&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,n)},"lookupOnContext"),lookupBlockParam:o(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:o(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:o(function(e,r,n,s,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(QYe(this.options.strict&&i,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return s?[" && ",p]:[" != null ? ",p," : ",A]})},"_loop"),u=n;u<c;u++)l(u)},"resolvePath"),resolvePossibleLambda:o(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:o(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:o(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:o(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:o(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:o(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:o(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:o(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:o(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),s=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",s])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var s=this.popStack(),i=this.setupHelper(e,r),a=[];n&&a.push(i.name),a.push(s),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",i.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var s=1;s<e.length;s++)n.push(r,e[s]);return n},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var s=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,s.paramsInit?["),(",s.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Pt.prototype.Program=function(t){var e="",r=t.body,n=void 0,s=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(n=0,s=t.blockParams.length;n<s;n++)i+=" "+t.blockParams[n];i+=" ]",e+=this.pad(i)}for(n=0,s=r.length;n<s;n++)e+=this.accept(r[n]);return this.padding--,e};Pt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Pt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Pt.prototype.BlockStatement=Pt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Pt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Pt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Pt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Pt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Pt.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,s=0,i=e.length;s<i;s++)r.push(this.accept(e[s]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Pt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Pt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Pt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Pt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Pt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Pt.prototype.NullLiteral=function(){return"NULL"};Pt.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,s=e.length;n<s;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Pt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Poe=m((O_t,_oe)=>{var eS=Qoe().default,voe=Roe();eS.PrintVisitor=voe.PrintVisitor;eS.print=voe.print;_oe.exports=eS;function Toe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=eS.compile(n)}o(Toe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=Toe,require.extensions[".hbs"]=Toe)});var $oe=m(iS=>{"use strict";Object.defineProperty(iS,"__esModule",{value:!0});iS.getProxyUrl=JYe;iS.checkBypass=zoe;function JYe(t){let e=t.protocol==="https:";if(zoe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new sS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new sS(`http://${r}`)}else return}o(JYe,"getProxyUrl");function zoe(t){if(!t.hostname)return!1;let e=t.hostname;if(YYe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(zoe,"checkBypass");function YYe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(YYe,"isLoopbackAddress");var sS=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}});var Yoe=m(Et=>{"use strict";var WYe=Et&&Et.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jYe=Et&&Et.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lS=Et&&Et.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&WYe(r,e,n[s]);return jYe(r,e), Line truncated
`).join(`
`+n),t.push(i+"m+"+qO.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=fQt()+e+" "+t[0]}function fQt(){return Ds.inspectOpts.hideDate?"":new Date().toISOString()+" "}function pQt(...t){return process.stderr.write(UO.formatWithOptions(Ds.inspectOpts,...t)+`
`)}function AQt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function mQt(){return process.env.DEBUG}function gQt(t){t.inspectOpts={};let e=Object.keys(Ds.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ds.inspectOpts[e[r]]}qO.exports=I9()(Ds);var{formatters:DQe}=qO.exports;DQe.o=function(t){return this.inspectOpts.colors=this.useColors,UO.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};DQe.O=function(t){return this.inspectOpts.colors=this.useColors,UO.inspect(t,this.inspectOpts)}});var w9=A((wor,b9)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?b9.exports=OQe():b9.exports=kQe()});var LQe=A((Sor,MQe)=>{var yQt=require("dns"),EQt=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],CQt=t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let s=parseInt(r.retry,10);isFinite(s)?r.retry={retries:s}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:yQt.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(i=>EQt.includes(i.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r};MQe.exports=CQt});var B9=A((Bor,HQe)=>{var FQe=wj(),UQe=Rj(),IQt=Tl(),qQe={shared:!1,ignoreCargoCult:!0},bQt={status:200,headers:{}},kE=t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},GQe=t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},S9=class{constructor({entry:e,request:r,response:s,options:i}){this.entry=e,this.request=kE(r),this.response=GQe(s),this.options=i,this.policy=new FQe(this.request,this.response,qQe),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new FQe(kE(e),bQt,qQe).storable()}satisfies(e){let r=kE(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new UQe(this.request),i=new UQe(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(i.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(i.languages())||JSON.stringify(s.encodings())!==JSON.stringify(i.encodings())?!1:this.options.integrity?IQt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=kE(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=kE(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=kE(e),i=GQe(r);return!this.policy.revalidatedPolicy(s,i).modified}};HQe.exports=S9});var VQe=A((xor,zQe)=>{var x9=class extends Error{constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};zQe.exports={NotCachedError:x9}});var v9=A((Nor,$Qe)=>{"use strict";var wQt=cA(),N9=class extends wQt{#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};$Qe.exports=N9});var JQe=A((vor,jQe)=>{var{URL:SQt,format:BQt}=require("url"),xQt={auth:!1,fragment:!1,search:!0,unicode:!1},NQt=t=>{let e=new SQt(t.url);return`make-fetch-happen:request-cache:${BQt(e,xQt)}`};jQe.exports=NQt});var YQe=A((Ror,vQt)=>{vQt.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}});var HO=A((Tor,KQe)=>{var{Minipass:RQt}=$i(),GO=th(),{promiseRetry:TQt}=mJ(),_Qt=Tl(),{log:WQe}=wP(),QQt=v9(),{g Line truncated
`).forEach(r=>{r.match(mPt)||r.match(gPt)||(e+=r)}),Buffer.from(e,"base64")}function EPt(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`+i),t.push(s+"m+"+cN.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=q5e()+e+" "+t[0]}o(U5e,"formatArgs");function q5e(){return yr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(q5e,"getDate");function G5e(...t){return process.stderr.write(aN.formatWithOptions(yr.inspectOpts,...t)+`
`)}o(G5e,"log");function H5e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(H5e,"save");function V5e(){return process.env.DEBUG}o(V5e,"load");function z5e(t){t.inspectOpts={};let e=Object.keys(yr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=yr.inspectOpts[e[r]]}o(z5e,"init");cN.exports=_2()(yr);var{formatters:Ble}=cN.exports;Ble.o=function(t){return this.inspectOpts.colors=this.useColors,aN.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Ble.O=function(t){return this.inspectOpts.colors=this.useColors,aN.inspect(t,this.inspectOpts)}});var k2=m((hMt,P2)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?P2.exports=Ile():P2.exports=ble()});var uN=m(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.DownloadHTTPError=kt.DownloadLengthMismatchError=kt.DownloadError=kt.ExpiredMetadataError=kt.EqualVersionError=kt.BadVersionError=kt.RepositoryError=kt.PersistError=kt.RuntimeError=kt.ValueError=void 0;var D2=class extends Error{static{o(this,"ValueError")}};kt.ValueError=D2;var O2=class extends Error{static{o(this,"RuntimeError")}};kt.RuntimeError=O2;var M2=class extends Error{static{o(this,"PersistError")}};kt.PersistError=M2;var IE=class extends Error{static{o(this,"RepositoryError")}};kt.RepositoryError=IE;var lN=class extends IE{static{o(this,"BadVersionError")}};kt.BadVersionError=lN;var L2=class extends lN{static{o(this,"EqualVersionError")}};kt.EqualVersionError=L2;var F2=class extends IE{static{o(this,"ExpiredMetadataError")}};kt.ExpiredMetadataError=F2;var BE=class extends Error{static{o(this,"DownloadError")}};kt.DownloadError=BE;var U2=class extends BE{static{o(this,"DownloadLengthMismatchError")}};kt.DownloadLengthMismatchError=U2;var q2=class extends BE{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};kt.DownloadHTTPError=q2});var Sle=m(uf=>{"use strict";var H2=uf&&uf.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uf,"__esModule",{value:!0});uf.withTempFile=void 0;var G2=H2(require("fs/promises")),$5e=H2(require("os")),wle=H2(require("path")),J5e=o(async t=>Y5e(async e=>t(wle.default.join(e,"tempfile"))),"withTempFile");uf.withTempFile=J5e;var Y5e=o(async t=>{let e=await G2.default.realpath($5e.default.tmpdir()),r=await G2.default.mkdtemp(e+wle.default.sep);try{return await t(r)}finally{await G2.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var xle=m((CMt,Nle)=>{var V2=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#s;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#s=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let s=0;s<this.#n.length;s++){let i=this.#n[s],{message:a}=i;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=i,r=n[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#i>=this.#s)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};Nle.exports={RetryOperation:V2}});var Tle=m((BMt,Rle)=>{var{RetryOperation:W5e}=xle(),Qle=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),j5e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),K5e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let s={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(s.minTimeout>s.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(s.retries){for(let i=0;i<s.retries;i++)r.push(Qle(i,s));r.sort((i,a)=>i-a)}else e.forever&&r.push(Qle(0,s))}let n=new W5e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(s,i){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return s(c)}catch(c){if(!j5e(c))return i(c);if(!n.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");Rle.exports={promiseRetry:K5e}});var J2=m(cl=>{"use strict";var $2=cl&&cl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cl,"__esModule",{value:!0});cl.DefaultFetcher=cl.BaseFetcher=void 0;var X5e=$2(k2()),vle=$2(require("fs")),Z5e=$2(require("util")),_le=uN(),e8e=Sle(),t8e=Tle(),r8e=(0,X5e.default)("tuf:fetch"),n8e="User-Agent",dN=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,e8e.withTempFile)(async s=>{let i=await this.fetch(e),a=0,c=vle.default.createWriteStream(s),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new _le.DownloadLengthMismatchError("Max length reached");await s8e(c,Buffer.from(d))}}finally{l.releaseLock(),await Z5e.default.promisify(c.close).bind(c)()}return n(s)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let s=vle.defau Line truncated
`).forEach(r=>{r.match(l9e)||r.match(u9e)||(e+=r)}),Buffer.from(e,"base64")}o(d9e,"toDER");function A9e(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}});var fD=A(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.SHA2_HASH_ALGOS=hf.RSA_SIGNATURE_ALGOS=hf.ECDSA_SIGNATURE_ALGOS=void 0;hf.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};hf.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};hf.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var AW=A(pD=>{"use strict";Object.defineProperty(pD,"__esModule",{value:!0});pD.RFC3161TimestampVerificationError=void 0;var pW=class extends Error{};pD.RFC3161TimestampVerificationError=pW});var j1e=A(Hl=>{"use strict";var CPt=Hl&&Hl.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),IPt=Hl&&Hl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),bPt=Hl&&Hl.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&CPt(r,e,s[i]);return IPt(r,e),r}})();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.TSTInfo=void 0;var $1e=bPt(HE()),wPt=fD(),SPt=AW(),mW=class{root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return wPt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=$1e.digest(this.messageImprintHashAlgorithm,e);if(!$1e.bufferEqual(r,this.messageImprintHashedMessage))throw new SPt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Hl.TSTInfo=mW});var Y1e=A(zl=>{"use strict";var BPt=zl&&zl.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),xPt=zl&&zl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NPt=zl&&zl.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[s.length]=i);return s},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),i=0;i<s.length;i++)s[i]!=="default"&&BPt(r,e,s[i]);return xPt(r,e),r}})();Object.defineProperty(zl,"__esModule",{value:!0});zl.RFC3161Timestamp=void 0;var vPt=uD(),gW=NPt(HE()),J1e=fD(),AS=AW(),RPt=j1e(),TPt="1.2.840.113549.1.7.2",_Pt="1.2.840.113549.1.9.16.1.4",QPt="1.2.840.113549.1.9.4",yW=class t{root;constructor(e){this.root=e}static parse(e){let r=vPt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return J1e.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return J1e.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new RPt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new AS.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==TPt)throw new AS.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==_Pt)throw new AS.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=gW.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!gW.bufferEqual(e,r))throw new AS.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(e){let r=this.signedAttrsObj.toDER();if(r[0 Line truncated
`)}o(A9e,"fromDER")});var xN=m(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.SHA2_HASH_ALGOS=pl.RSA_SIGNATURE_ALGOS=pl.ECDSA_SIGNATURE_ALGOS=void 0;pl.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};pl.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};pl.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var gq=m(QN=>{"use strict";Object.defineProperty(QN,"__esModule",{value:!0});QN.RFC3161TimestampVerificationError=void 0;var mq=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};QN.RFC3161TimestampVerificationError=mq});var cue=m($o=>{"use strict";var p9e=$o&&$o.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),f9e=$o&&$o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),h9e=$o&&$o.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&p9e(r,e,n[s]);return f9e(r,e),r}})();Object.defineProperty($o,"__esModule",{value:!0});$o.TSTInfo=void 0;var aue=h9e(mf()),m9e=xN(),g9e=gq(),Eq=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return m9e.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=aue.digest(this.messageImprintHashAlgorithm,e);if(!aue.bufferEqual(r,this.messageImprintHashedMessage))throw new g9e.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};$o.TSTInfo=Eq});var uue=m(Jo=>{"use strict";var E9e=Jo&&Jo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),y9e=Jo&&Jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),C9e=Jo&&Jo.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&E9e(r,e,n[s]);return y9e(r,e),r}})();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.RFC3161Timestamp=void 0;var I9e=wN(),yq=C9e(mf()),lue=xN(),QE=gq(),B9e=cue(),b9e="1.2.840.113549.1.7.2",w9e="1.2.840.113549.1.9.16.1.4",S9e="1.2.840.113549.1.9.4",Cq=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=I9e.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return lue.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return lue.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new B9e.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new QE.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==b9e)throw new QE.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==w9e)throw new QE.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=yq.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,jOt=/\u2014 (\S+) (\S+)\n/g;function JOt(t,e){let r=t.inclusionProof,s=VW.fromString(r.checkpoint.envelope),i=ND.fromString(s.note);if(!YOt(s,e))throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}function YOt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let i=e.find(n=>bPe.crypto.bufferEqual(n.logID.subarray(0,4),s.keyHint)&&n.baseURL.match(s.name));return i?bPe.crypto.verify(r,i.publicKey,s.signature):!1})}var VW=class t{note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(zW))throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(zW),s=e.slice(0,r+1),n=e.slice(r+zW.length).matchAll(jOt),o=Array.from(n,a=>{let[,c,l]=a,u=Buffer.from(l,"base64");if(u.length<5)throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:c,keyHint:u.subarray(0,4),signature:u.subarray(4)}});if(o.length===0)throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,o)}},ND=class t{origin;logSize;logHash;rest;constructor(e,r,s,i){this.origin=e,this.logSize=r,this.logHash=s,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new CS.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],i=BigInt(r[1]),n=Buffer.from(r[2],"base64"),o=r.slice(3);return new t(s,i,n,o)}};IS.LogCheckpoint=ND});var SPe=A(YW=>{"use strict";Object.defineProperty(YW,"__esModule",{value:!0});YW.verifyMerkleInclusion=XOt;var JW=ac(),$W=Ei(),WOt=Buffer.from([0]),KOt=Buffer.from([1]);function XOt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),i=BigInt(e.logSize);if(s<0n||s>=i)throw new $W.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:n,border:o}=ZOt(s,i);if(r.hashes.length!==n+o)throw new $W.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let a=r.hashes.slice(0,n),c=r.hashes.slice(n),l=nDt(t.canonicalizedBody),u=tDt(eDt(l,a,s),c);if(!JW.crypto.bufferEqual(u,e.logHash))throw new $W.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}function ZOt(t,e){let r=rDt(t,e),s=sDt(t>>BigInt(r));return{inner:r,border:s}}function eDt(t,e,r){return e.reduce((s,i,n)=>r>>BigInt(n)&BigInt(1)?jW(i,s):jW(s,i),t)}function tDt(t,e){return e.reduce((r,s)=>jW(s,r),t)}function rDt(t,e){return iDt(t^e-BigInt(1))}function sDt(t){return t.toString(2).split("1").length-1}function iDt(t){return t===0n?0:t.toString(2).length}function jW(t,e){return JW.crypto.digest("sha256",KOt,t,e)}function nDt(t){return JW.crypto.digest("sha256",WOt,t)}});var xPe=A(WW=>{"use strict";Object.defineProperty(WW,"__esModule",{value:!0});WW.verifyTLogSET=cDt;var BPe=ac(),oDt=Ei(),aDt=$E();function cDt(t,e){if(!(0,aDt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let n=lDt(t),o=Buffer.from(BPe.json.canonicalize(n),"utf8"),a=t.inclusionPromise.signedEntryTimestamp;return BPe.crypto.verify(o,i.publicKey,a)}))throw new oDt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}function lDt(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}});var vPe=A(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.verifyTLogBody=pDt;vD.verifyTLogInclusion=ADt;var NPe=yY(),ZW=Ei(),KW=EPe(),XW=CPe(),uDt=IPe(),hDt=wPe(),dDt=SPe(),fDt=xPe();function pDt(t,e){let{kind:r,version:s}=t.kindVersion,i=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==i.kind||s!==i.apiVersion)throw new ZW.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(s==KW.DSSE_API_VERSION_V1)return(0,KW.verifyDSSETLogBody)(i,e);{let n=NPe.Entry.fromJSON(i);return(0,KW.verifyDSSETLogBodyV2)(n,e)}case"intoto":return(0,uDt.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(s==XW.HASHEDREKORD_API_VERSION_V1)return(0,XW.verifyHashedRekordTLogBody)(i,e);{let n=NPe.Entry.fromJSON(i);return(0,XW.verifyHashedRekordTLogBodyV2)(n,e)}default:throw new ZW.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}function ADt(t,e){let r=!1;if(mDt(t)&&((0,fDt.verifyTLogSET)(t,e),r=!0),gDt(t)){let s=(0,hDt.verifyCheckpoint)(t,e);(0,dDt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new ZW.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}function mDt(t){return t.inclusionPromise!==void 0}function gDt(t){return t.inclusionProof!==void 0}});var OPe=A(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});RD.Verifier=void 0;var yDt=require("util"),jE=Ei(),RPe=fPe(),TPe=APe(),_Pe=yPe(),QPe=vPe(),eK=class{trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let s=this.verifyTimestamps(e),i=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=0,s=e.timestamps.map(i=>{switch(i.$case){case"timestamp-authority":return r++,(0,_Pe.getTSATimestamp)(i.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return r++,(0,_Pe.getTLogTimestamp)(i.tlogEntry)}});if(PPe(s))throw new jE.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r<this.options.timestampThreshold)throw new jE.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.timestampThreshold} timestamps, got ${r}`});return s.map(i=>i.timestamp)}verifySigningKey({key:e},r){switch(e.$case){case"public-key":return(0,RPe.verifyPublicKey)(e.hint,r,this.trustMaterial);case"certificate":{let s=(0,RPe.verifyCertificate)(e.certificate,r,this.trustMaterial);if(PPe(s.scts))throw new jE.VerificationError({code:"CERTIFICATE_ERRO Line truncated
`,z6e=/\u2014 (\S+) (\S+)\n/g;function $6e(t,e){let r=t.inclusionProof,n=jq.fromString(r.checkpoint.envelope),s=YN.fromString(n.note);if(!J6e(n,e))throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return s}o($6e,"verifyCheckpoint");function J6e(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let s=e.find(i=>Vue.crypto.bufferEqual(i.logID.subarray(0,4),n.keyHint)&&i.baseURL.includes(n.name));return s?Vue.crypto.verify(r,s.publicKey,n.signature):!1})}o(J6e,"verifySignedNote");var jq=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Wq))throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Wq),n=e.slice(0,r+1),i=e.slice(r+Wq.length).matchAll(z6e),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},YN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,s){this.origin=e,this.logSize=r,this.logHash=n,this.rest=s}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],s;try{s=BigInt(r[1])}catch{throw new bf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,s,i,a)}};PE.LogCheckpoint=YN});var $ue=m(Zq=>{"use strict";Object.defineProperty(Zq,"__esModule",{value:!0});Zq.verifyMerkleInclusion=j6e;var Xq=Pi(),WN=qr(),Y6e=Buffer.from([0]),W6e=Buffer.from([1]);function j6e(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let s=BigInt(e.logSize);if(n<0n||n>=s)throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:i,border:a}=K6e(n,s);if(r.hashes.length!==i+a)throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=nKe(t.canonicalizedBody),d=Z6e(X6e(u,c,n),l);if(!Xq.crypto.bufferEqual(d,e.logHash))throw new WN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(j6e,"verifyMerkleInclusion");function K6e(t,e){let r=eKe(t,e),n=tKe(t>>BigInt(r));return{inner:r,border:n}}o(K6e,"decompInclProof");function X6e(t,e,r){return e.reduce((n,s,i)=>r>>BigInt(i)&BigInt(1)?Kq(s,n):Kq(n,s),t)}o(X6e,"chainInner");function Z6e(t,e){return e.reduce((r,n)=>Kq(n,r),t)}o(Z6e,"chainBorderRight");function eKe(t,e){return rKe(t^e-BigInt(1))}o(eKe,"innerProofSize");function tKe(t){return t.toString(2).split("1").length-1}o(tKe,"onesCount");function rKe(t){return t===0n?0:t.toString(2).length}o(rKe,"bitLength");function Kq(t,e){return Xq.crypto.digest("sha256",W6e,t,e)}o(Kq,"hashChildren");function nKe(t){return Xq.crypto.digest("sha256",Y6e,t)}o(nKe,"hashLeaf")});var Yue=m(eG=>{"use strict";Object.defineProperty(eG,"__esModule",{value:!0});eG.verifyTLogSET=oKe;var Jue=Pi(),sKe=qr(),iKe=yf();function oKe(t,e){if(!(0,iKe.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(s=>{let i=aKe(t),a=Buffer.from(Jue.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Jue.crypto.verify(a,s.publicKey,c)}))throw new sKe.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(oKe,"verifyTLogSET");function aKe(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:s}=t;return{body:s.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(aKe,"toVerificationPayload")});var jue=m(KN=>{"use strict";Object.defineProperty(KN,"__esModule",{value:!0});KN.verifyTLogBody=AKe;KN.verifyTLogInclusion=pKe;var Wue=Uue(),jN=qr(),tG=que(),rG=Gue(),cKe=Hue(),lKe=zue(),uKe=$ue(),dKe=Yue();function AKe(t,e){let{kind:r,version:n}=t.kindVersion,s;try{s=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==s.kind||n!==s.apiVersion)throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${s.kind}/${s.apiVersion}`});switch(r){case"dsse":if(n==tG.DSSE_API_VERSION_V1)return(0,tG.verifyDSSETLogBody)(s,e);{let i=Wue.Entry.fromJSON(s);return(0,tG.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,cKe.verifyIntotoTLogBody)(s,e);case"hashedrekord":if(n==rG.HASHEDREKORD_API_VERSION_V1)return(0,rG.verifyHashedRekordTLogBody)(s,e);{let i=Wue.Entry.fromJSON(s);return(0,rG.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new jN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(AKe,"verifyTLogBody");function pKe(t,e){let r=!1;if(fKe(t)&&((0,dKe.verifyTLogSET)(t,e),r=!0),hKe(t)){let n=(0,lKe.verifyCheckpoint)(t,e);(0,uKe.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new jN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(pKe,"verifyTLogInclusion");function fKe(t){return t.inclusionPromise!==void 0}o(fKe,"isTLogEntryWithInclusionPromise");function hKe(t){return t.inclusionProof!==void 0}o(hKe,"isTLogEntryWithInclusionProof")});var ede=m(XN=>{"use strict";Object.defineProperty(XN,"__esModule",{value:!0});XN.Verifier=void 0;var mKe=require("util"),fd=qr(),Kue=Que(),nG=Rue(),Xue=_ue(),Zue=jue(),iG=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),s=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,s),r&&this.verifyPolicy(r,s.identity||{}),s}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
${l}`}let A=Ex(t.buffer,s[c],i[c],t.position,d);l+=`${" ".repeat(r.indent)}${yx((t.line+1).toString(),u)} | ${A.str}
`,l+=`${"-".repeat(r.indent+u+3+A.pos)}^
`;for(let p=1;p<=r.linesAfter&&!(c+p>=i.length);p++){let f=Ex(t.buffer,s[c+p],i[c+p],t.position-(s[c]-s[c+p]),d);l+=`${" ".repeat(r.indent)}${yx((t.line+p+1).toString(),u)} | ${f.str}
`}return l.replace(/\n$/,"")}o(WAe,"makeSnippet");function yG(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),s+" "+r):s}function rC(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=PK(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}rC.prototype=Object.create(Error.prototype);rC.prototype.constructor=rC;rC.prototype.toString=function(e){return this.name+": "+PK(this,e)};var tn=rC;function ZD(t,e,r,s,i){var n="",o="",a=Math.floor(i/2)-1;return s-e>a&&(n=" ... ",e=s-a+n.length),r-s>a&&(o=" ...",r=s+a-o.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:s-e+n.length}}function ek(t,e){return ts.repeat(" ",e-t.length)+t}function vDe(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,s=[0],i=[],n,o=-1;n=r.exec(t.buffer);)i.push(n.index),s.push(n.index+n[0].length),t.position<=n.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var a="",c,l,u=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+u+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)l=ZD(t.buffer,s[o-c],i[o-c],t.position-(s[o]-s[o-c]),h),a=ts.repeat(" ",e.indent)+ek((t.line-c+1).toString(),u)+" | "+l.str+`
`+a;for(l=ZD(t.buffer,s[o],i[o],t.position,h),a+=ts.repeat(" ",e.indent)+ek((t.line+1).toString(),u)+" | "+l.str+`
`,a+=ts.repeat("-",e.indent+u+3+l.pos)+`^
`,c=1;c<=e.linesAfter&&!(o+c>=i.length);c++)l=ZD(t.buffer,s[o+c],i[o+c],t.position-(s[o]-s[o+c]),h),a+=ts.repeat(" ",e.indent)+ek((t.line+c+1).toString(),u)+" | "+l.str+`
`;return a.replace(/\n$/,"")}var RDe=vDe,TDe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_De=["scalar","sequence","mapping"];function QDe(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(s){e[String(s)]=r})}),e}function PDe(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(TDe.indexOf(r)===-1)throw new tn('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=QDe(e.styleAliases||null),_De.indexOf(this.kind)===-1)throw new tn('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var js=PDe;function gK(t,e){var r=[];return t[e].forEach(function(s){var i=r.length;r.forEach(function(n,o){n.tag===s.tag&&n.kind===s.kind&&n.multi===s.multi&&(i=o)}),r[i]=s}),r}function ODe(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function s(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(s);return t}function rk(t){return this.extend(t)}rk.prototype.extend=function(e){var r=[],s=[];if(e instanceof js)s.push(e);else if(Array.isArray(e))s=s.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(s=s.concat(e.explicit));else throw new tn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof js))throw new tn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new tn("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new tn("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(n){if(!(n instanceof js))throw new tn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(rk.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(s),i.compiledImplicit=gK(i,"implicit"),i.compiledExplicit=gK(i,"explicit"),i.compiledTypeMap=ODe(i.compiledImplicit,i.compiledExplicit),i};var DDe=rk,kDe=new js("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),MDe=new js("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),LDe=new js("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),FDe=new DDe({explicit:[kDe,MDe,LDe]});function UDe(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function qDe(){return null}function GDe(t){return t===null}var HDe=new js("tag:yaml.org,2002:null",{kind:"scalar",resolve:UDe,construct:qDe,predicate:GDe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function zDe(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function VDe(t){return t==="true"||t==="True"||t==="TRUE"}function $De(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var jDe=new js("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zDe,construct:VDe,predicate:$De,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function JDe(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function YDe(t){return 48<=t&&t<=55}function WDe(t){return 48<=t&&t<=57}function KDe(t){if(t===null)return!1;var e=t.length,r=0,s=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;s=!0}return s&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!JDe(t.charCodeAt(r)))return!1;s=!0}return s&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!YDe(t.charCodeAt(r)))return!1;s=!0}return s&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!WDe(t.charCodeAt(r)))return!1;s=!0}return!(!s||i==="_")}function XDe(t){var e=t,r=1,s;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),s=e[0],(s==="-"||s==="+")&&(s==="-"&&(r=-1),e=e.slice(1),s=e[0]),e==="0")return 0;if( Line truncated
\r`;function mke(t){if(t===null)return!1;var e,r,s=0,i=t.length,n=ak;for(r=0;r<i;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;s+=6}return s%8===0}function gke(t){var e,r,s=t.replace(/[\r\n=]/g,""),i=s.length,n=ak,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|n.indexOf(s.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function yke(t){var e="",r=0,s,i,n=t.length,o=ak;for(s=0;s<n;s++)s%3===0&&s&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[s];return i=n%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function Eke(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Cke=new js("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mke,construct:gke,predicate:Eke,represent:yke}),Ike=Object.prototype.hasOwnProperty,bke=Object.prototype.toString;function wke(t){if(t===null)return!0;var e=[],r,s,i,n,o,a=t;for(r=0,s=a.length;r<s;r+=1){if(i=a[r],o=!1,bke.call(i)!=="[object Object]")return!1;for(n in i)if(Ike.call(i,n))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}function Ske(t){return t!==null?t:[]}var Bke=new js("tag:yaml.org,2002:omap",{kind:"sequence",resolve:wke,construct:Ske}),xke=Object.prototype.toString;function Nke(t){if(t===null)return!0;var e,r,s,i,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(s=o[e],xke.call(s)!=="[object Object]"||(i=Object.keys(s),i.length!==1))return!1;n[e]=[i[0],s[i[0]]]}return!0}function vke(t){if(t===null)return[];var e,r,s,i,n,o=t;for(n=new Array(o.length),e=0,r=o.length;e<r;e+=1)s=o[e],i=Object.keys(s),n[e]=[i[0],s[i[0]]];return n}var Rke=new js("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Nke,construct:vke}),Tke=Object.prototype.hasOwnProperty;function _ke(t){if(t===null)return!0;var e,r=t;for(e in r)if(Tke.call(r,e)&&r[e]!==null)return!1;return!0}function Qke(t){return t!==null?t:{}}var Pke=new js("tag:yaml.org,2002:set",{kind:"mapping",resolve:_ke,construct:Qke}),kK=lke.extend({implicit:[fke,Ake],explicit:[Cke,Bke,Rke,Pke]}),_h=Object.prototype.hasOwnProperty,_S=1,MK=2,LK=3,QS=4,tk=1,Oke=2,yK=3,Dke=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kke=/[\x85\u2028\u2029]/,Mke=/[,\[\]\{\}]/,FK=/^(?:!|!!|![a-z\-]+!)$/i,UK=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function EK(t){return Object.prototype.toString.call(t)}function uc(t){return t===10||t===13}function Ef(t){return t===9||t===32}function rn(t){return t===9||t===32||t===10||t===13}function VA(t){return t===44||t===91||t===93||t===123||t===125}function Lke(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Fke(t){return t===120?2:t===117?4:t===85?8:0}function Uke(t){return 48<=t&&t<=57?t-48:-1}function CK(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function qke(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function qK(t,e,r){e==="__proto__"?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}var GK=new Array(256),HK=new Array(256);for(yf=0;yf<256;yf++)GK[yf]=CK(yf)?1:0,HK[yf]=CK(yf);var yf;function Gke(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||kK,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function zK(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=RDe(r),new tn(e,r)}function Be(t,e){throw zK(t,e)}function PS(t,e){t.onWarning&&t.onWarning.call(null,zK(t,e))}var IK={YAML:function(e,r,s){var i,n,o;e.version!==null&&Be(e,"duplication of %YAML directive"),s.length!==1&&Be(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(s[0]),i===null&&Be(e,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),o=parseInt(i[2],10),n!==1&&Be(e,"unacceptable YAML version of the document"),e.version=s[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&PS(e,"unsupported YAML version of the document")},TAG:function(e,r,s){var i,n;s.length!==2&&Be(e,"TAG directive accepts exactly two arguments"),i=s[0],n=s[1],FK.test(i)||Be(e,"ill-formed tag handle (first argument) of the TAG directive"),_h.call(e.tagMap,i)&&Be(e,'there is a previously declared suffix for "'+i+'" tag handle'),UK.test(n)||Be(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{Be(e,"tag prefix is malformed: "+n)}e.tagMap[i]=n}};function Th(t,e,r,s){var i,n,o,a;if(e<r){if(a=t.input.slice(e,r),s)for(i=0,n=a.length;i<n;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Be(t,"expected valid JSON character");else Dke.test(a)&&Be(t,"the stream contains non-printable characters");t.result+=a}}function bK(t,e,r,s){var i,n,o,a;for(ts.isObject(r)||Be(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)n=i[o],_h.call(e,n)||(qK(e,n,r[n]),s[n]=!0)}function $A(t,e,r,s,i,n,o,a,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&Be(t,"nested arrays are not supported inside keys"),typeof i=="object"&&EK(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&EK(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(l=0,u=n.length;l<u;l+=1)bK(t,e,n[l],r);else bK(t,e,n,r);else!t.json&&!_h.call(r,i)&&_h.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,Be(t,"duplicated mapping key")),qK(e,i,n),delete r[i];return e}function ck(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):Be(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Vr(t,e,r){for(var s=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Ef(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(uc(i))for(ck(t),i=t.input.charCodeAt(t.position),s++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&s!==0&&t.lineIndent<r&&PS(t,"deficient indentation"),s}function kS(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||rn(r)))}function lk(t,e){e===1?t.result+=" ":e>1&&(t.result+=ts.repeat(`
`,e-1))}function Hke(t,e,r){var s,i,n,o,a,c,l,u,h=t.kind,d=t.result,f;if(f=t.input.charCodeAt(t.position),rn(f)||VA(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(i=t.input.charCodeAt(t.position+1),rn(i)||r&&VA(i)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;f!==0;){if(f===58){if(i=t.input.charCodeAt(t.position+1),rn(i)||r&&VA(i))break}else if(f===35){if(s=t.input.charCodeAt(t.position-1),rn(s))break}else{if(t.position===t.lineStart&&kS(t)||r&&VA(f))break;if(uc(f))if(c=t.line,l=t.lineStart,u=t.lineIndent,Vr(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=l,t.lineIndent=u;break}}a&&(Th(t,n,o,!1),lk(t,t.line-c),n=o=t.position,a=!1),Ef(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return Th(t,n,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function zke(t,e){var r,s,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,s=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Th(t,s,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)s=t.position,t.position++,i=t.position;else return!0;else uc(r)?(Th(t,s,i,!0),lk(t,Vr(t,!1,e)),s=i=t.position):t.position===t.lineStart&&kS(t)?Be(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);Be(t,"unexpected end of the stream within a single quoted scalar")}function Vke(t,e){var r,s,i,n,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=s=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return Th(t,r,t.position,!0),t.position++,!0;if(a===92){if(Th(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),uc(a))Vr(t,!1,e);else if(a<256&&GK[a])t.result+=HK[a],t.position++;else if((o=Fke(a))>0){for(i=o,n=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=Lke(a))>=0?n=(n<<4)+o:Be(t,"expected hexadecimal character");t.result+=qke(n),t.position++}else Be(t,"unknown escape sequence");r=s=t.position}else uc(a)?(Th(t,r,s,!0),lk(t,Vr(t,!1,e)),r=s=t.position):t.position===t.lineStart&&kS(t)?Be(t,"unexpected end of the document within a double quoted scalar"):(t.position++,s=t.position)}Be(t,"unexpected end of the stream within a double quoted scalar")}function $ke(t,e){var r=!0,s,i,n,o=t.tag,a,c=t.anchor,l,u,h,d,f,p=Object.create(null),m,E,y,C;if(C=t.input.charCodeAt(t.position),C===91)u=93,f=!1,a=[];else if(C===123)u=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),C=t.input.charCodeAt(++t.position);C!==0;){if(Vr(t,!0,e),C=t.input.charCodeAt(t.position),C===u)return t.position++,t.tag=o,t.anchor=c,t.kind=f?"mapping":"sequence",t.result=a,!0;r?C===44&&Be(t,"expected the node content, but found ','"):Be(t,"missed comma between flow collection entries"),E=m=y=null,h=d=!1,C===63&&(l=t.input.charCodeAt(t.position+1),rn(l)&&(h=d=!0,t.position++,Vr(t,!0,e))),s=t.line,i=t.lineStart,n=t.position,jA(t,e,_S,!1,!0),E=t.tag,m=t.result,Vr(t,!0,e),C=t.input.charCodeAt(t.position),(d||t.line===s)&&C===58&&(h=!0,C=t.input.charCodeAt(++t.position),Vr(t,!0,e),jA(t,e,_S,!1,!0),y=t.result),f?$A(t,a,p,E,m,y,s,i,n):h?a.push($A(t,null,p,E,m,y,s,i,n)):a.push(m),Vr(t,!0,e),C=t.input.charCodeAt(t.position),C===44?(r=!0,C=t.input.charCodeAt(++t.position)):r=!1}Be(t,"unexpected end of the stream within a flow collection")}function jke(t,e){var r,s,i=tk,n=!1,o=!1,a=e,c=0,l=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)s=!1;else if(h===62)s=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)tk===i?i=h===43?yK:Oke:Be(t,"repeat of a chomping mode identifier");else if((u=Uke(h))>=0)u===0?Be(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Be(t,"repeat of an indentation width identifier"):(a=e+u-1,o=!0);else break;if(Ef(h)){do h=t.input.charCodeAt(++t.position);while(Ef(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!uc(h)&&h!==0)}for(;h!==0;){for(ck(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),uc(h)){c++;continue}if(t.lineIndent<a){i===yK?t.result+=ts.repeat(`
`,n?1+c:c):i===tk&&n&&(t.result+=`
`);break}for(s?Ef(h)?(l=!0,t.result+=ts.repeat(`
`,n?1+c:c)):l?(l=!1,t.result+=ts.repeat(`
`,c+1)):c===0?n&&(t.result+=" "):t.result+=ts.repeat(`
`,c):t.result+=ts.repeat(`
`,n?1+c:c),n=!0,o=!0,c=0,r=t.position;!uc(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Th(t,r,t.position,!1)}return!0}function wK(t,e){var r,s=t.tag,i=t.anchor,n=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Be(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!rn(o))));){if(a=!0,t.position++,Vr(t,!0,-1)&&t.lineIndent<=e){n.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,jA(t,e,LK,!1,!0),n.push(t.result),Vr(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)Be(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=s,t.anchor=i,t.kind="sequence",t.result=n,!0):!1}function Jke(t,e,r){var s,i,n,o,a,c,l=t.tag,u=t.anchor,h={},d=Object.create(null),f=null,p=null,m=null,E=!1,y=!1,C;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),C=t.input.charCodeAt(t.position);C!==0;){if(!E&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,Be(t,"tab characters must not be used in indentation")),s=t.input.charCodeAt(t.position+1),n=t.line,(C===63||C===58)&&rn(s))C===63?(E&&($A(t,h,d,f,p,null,o,a,c),f=p=m=null),y=!0,E=!0,i=!0):E?(E=!1,i=!0):Be(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,C=s;else{if(o=t.line,a=t.lineStart,c=t.position,!jA(t,r,MK,!1,!0))break;if(t.line===n){for(C=t.input.charCodeAt(t.position);Ef(C);)C=t.input.charCodeAt(++t.position);if(C===58)C=t.input.charCodeAt(++t.position),rn(C)||Be(t,"a whitespace character is expected after the key-value separator within a block mapping"),E&&($A(t,h,d,f,p,null,o,a,c),f=p=m=null),y=!0,E=!1,i=!1,f=t.tag,p=t.result;else if(y)Be(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=u,!0}else if(y)Be(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=u,!0}if((t.line===n||t.lineIndent>e)&&(E&&(o=t.line,a=t.lineStart,c=t.position),jA(t,e,QS,!0,i)&&(E?p=t.result:m=t.result),E||($A(t,h,d,f,p,m,o,a,c),f=p=m=null),Vr(t,!0,-1),C=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&C!==0)Be(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return E&&$A(t,h,d,f,p,null,o,a,c),y&&(t.tag=l,t.anchor=u,t.kind="mapping",t.result=h),y}function Yke(t){var e,r=!1,s=!1,i,n,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&Be(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(s=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(n=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):Be(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!rn(o);)o===33&&(s?Be(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),FK.test(i)||Be(t,"named tag handle cannot contain such characters"),s=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),Mke.test(n)&&Be(t,"tag suffix cannot contain flow indicator characters")}n&&!UK.test(n)&&Be(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{Be(t,"tag name is malformed: "+n)}return r?t.tag=n:_h.call(t.tagMap,i)?t.tag=t.tagMap[i]+n:i==="!"?t.tag="!"+n:i==="!!"?t.tag="tag:yaml.org,2002:"+n:Be(t,'undeclared tag handle "'+i+'"'),!0}function Wke(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&Be(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!rn(r)&&!VA(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&Be(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function Kke(t){var e,r,s;if(s=t.input.charCodeAt(t.position),s!==42)return!1;for(s=t.input.charCodeAt(++t.position),e=t.position;s!==0&&!rn(s)&&!VA(s);)s=t.input.charCodeAt(++t.position);return t.position===e&&Be(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),_h.call(t.anchorMap,r)||Be(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Vr(t,!0,-1),!0}function jA(t,e,r,s,i){var n,o,a,c=1,l=!1,u=!1,h,d,f,p,m,E;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,n=o=a=QS===r||LK===r,s&&Vr(t,!0,-1)&&(l=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;Yke(t)||Wke(t);)Vr(t,!0,-1)?(l=!0,a=n,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=l||i),(c===1||QS===r)&&(_S===r||MK===r?m=e:m=e+1,E=t.position-t.lineStart,c===1?a&&(wK(t,E)||Jke(t,E,m))||$ke(t,m)?u=!0:(o&&jke(t,m)||zke(t,m)||Vke(t,m)?u=!0:Kke(t)?(u=!0,(t.tag!==null||t.anchor!= Line truncated
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new Gke(t,e),s=t.indexOf("\0");for(s!==-1&&(r.position=s,Be(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Xke(r);return r.documents}function Zke(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var s=VK(t,r);if(typeof e!="function")return s;for(var i=0,n=s.length;i<n;i+=1)e(s[i])}function eMe(t,e){var r=VK(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new tn("expected a single document in the stream, but found more")}}var tMe=Zke,rMe=eMe,$K={loadAll:tMe,load:rMe},jK=Object.prototype.toString,JK=Object.prototype.hasOwnProperty,uk=65279,sMe=9,sC=10,iMe=13,nMe=32,oMe=33,aMe=34,sk=35,cMe=37,lMe=38,uMe=39,hMe=42,YK=44,dMe=45,OS=58,fMe=61,pMe=62,AMe=63,mMe=64,WK=91,KK=93,gMe=96,XK=123,yMe=124,ZK=125,Js={};Js[0]="\\0";Js[7]="\\a";Js[8]="\\b";Js[9]="\\t";Js[10]="\\n";Js[11]="\\v";Js[12]="\\f";Js[13]="\\r";Js[27]="\\e";Js[34]='\\"';Js[92]="\\\\";Js[133]="\\N";Js[160]="\\_";Js[8232]="\\L";Js[8233]="\\P";var EMe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],CMe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function IMe(t,e){var r,s,i,n,o,a,c;if(e===null)return{};for(r={},s=Object.keys(e),i=0,n=s.length;i<n;i+=1)o=s[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&JK.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function bMe(t){var e,r,s;if(e=t.toString(16).toUpperCase(),t<=255)r="x",s=2;else if(t<=65535)r="u",s=4;else if(t<=4294967295)r="U",s=8;else throw new tn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ts.repeat("0",s-e.length)+e}var wMe=1,iC=2;function SMe(t){this.schema=t.schema||kK,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=ts.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=IMe(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?iC:wMe,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function SK(t,e){for(var r=ts.repeat(" ",e),s=0,i=-1,n="",o,a=t.length;s<a;)i=t.indexOf(`
`,s),i===-1?(o=t.slice(s),s=a):(o=t.slice(s,i+1),s=i+1),o.length&&o!==`
`&&(n+=r),n+=o;return n}function ik(t,e){return`
`+ts.repeat(" ",t.indent*e)}function BMe(t,e){var r,s,i;for(r=0,s=t.implicitTypes.length;r<s;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function DS(t){return t===nMe||t===sMe}function nC(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==uk||65536<=t&&t<=1114111}function BK(t){return nC(t)&&t!==uk&&t!==iMe&&t!==sC}function xK(t,e,r){var s=BK(t),i=s&&!DS(t);return(r?s:s&&t!==YK&&t!==WK&&t!==KK&&t!==XK&&t!==ZK)&&t!==sk&&!(e===OS&&!i)||BK(e)&&!DS(e)&&t===sk||e===OS&&i}function xMe(t){return nC(t)&&t!==uk&&!DS(t)&&t!==dMe&&t!==AMe&&t!==OS&&t!==YK&&t!==WK&&t!==KK&&t!==XK&&t!==ZK&&t!==sk&&t!==lMe&&t!==hMe&&t!==oMe&&t!==yMe&&t!==fMe&&t!==pMe&&t!==uMe&&t!==aMe&&t!==cMe&&t!==mMe&&t!==gMe}function NMe(t){return!DS(t)&&t!==OS}function tC(t,e){var r=t.charCodeAt(e),s;return r>=55296&&r<=56319&&e+1<t.length&&(s=t.charCodeAt(e+1),s>=56320&&s<=57343)?(r-55296)*1024+s-56320+65536:r}function eX(t){var e=/^\n* /;return e.test(t)}var tX=1,nk=2,rX=3,sX=4,zA=5;function vMe(t,e,r,s,i,n,o,a){var c,l=0,u=null,h=!1,d=!1,f=s!==-1,p=-1,m=xMe(tC(t,0))&&NMe(tC(t,t.length-1));if(e||o)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=tC(t,c),!nC(l))return zA;m=m&&xK(l,u,a),u=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=tC(t,c),l===sC)h=!0,f&&(d=d||c-p-1>s&&t[p+1]!==" ",p=c);else if(!nC(l))return zA;m=m&&xK(l,u,a),u=l}d=d||f&&c-p-1>s&&t[p+1]!==" "}return!h&&!d?m&&!o&&!i(t)?tX:n===iC?zA:nk:r>9&&eX(t)?zA:o?n===iC?zA:nk:d?sX:rX}function RMe(t,e,r,s,i){t.dump=(function(){if(e.length===0)return t.quotingType===iC?'""':"''";if(!t.noCompatMode&&(EMe.indexOf(e)!==-1||CMe.test(e)))return t.quotingType===iC?'"'+e+'"':"'"+e+"'";var n=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-n),a=s||t.flowLevel>-1&&r>=t.flowLevel;function c(l){return BMe(t,l)}switch(vMe(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!s,i)){case tX:return e;case nk:return"'"+e.replace(/'/g,"''")+"'";case rX:return"|"+NK(e,t.indent)+vK(SK(e,n));case sX:return">"+NK(e,t.indent)+vK(SK(TMe(e,o),n));case zA:return'"'+_Me(e)+'"';default:throw new tn("impossible error: invalid scalar style")}})()}function NK(t,e){var r=eX(t)?String(e):"",s=t[t.length-1]===`
`,i=s&&(t[t.length-2]===`
`||t===`
`),n=i?"+":s?"":"-";return r+n+`
`}function vK(t){return t[t.length-1]===`
`?t.slice(0,-1):t}function TMe(t,e){for(var r=/(\n+)([^\n]*)/g,s=(function(){var l=t.indexOf(`
`);return l=l!==-1?l:t.length,r.lastIndex=l,RK(t.slice(0,l),e)})(),i=t[0]===`
`||t[0]===" ",n,o;o=r.exec(t);){var a=o[1],c=o[2];n=c[0]===" ",s+=a+(!i&&!n&&c!==""?`
`:"")+RK(c,e),i=n}return s}function RK(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,s,i=0,n,o=0,a=0,c="";s=r.exec(t);)a=s.index,a-i>e&&(n=o>i?o:a,c+=`
`+t.slice(i,n),i=n+1),o=a;return c+=`
`,t.length-i>e&&o>i?c+=t.slice(i,o)+`
`+t.slice(o+1):c+=t.slice(i),c.slice(1)}function _Me(t){for(var e="",r=0,s,i=0;i<t.length;r>=65536?i+=2:i++)r=tC(t,i),s=Js[r],!s&&nC(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=s||bMe(r);return e}function QMe(t,e,r){var s="",i=t.tag,n,o,a;for(n=0,o=r.length;n<o;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(Kl(t,e,a,!1,!1)||typeof a>"u"&&Kl(t,e,null,!1,!1))&&(s!==""&&(s+=","+(t.condenseFlow?"":" ")),s+=t.dump);t.tag=i,t.dump="["+s+"]"}function TK(t,e,r,s){var i="",n=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Kl(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Kl(t,e+1,null,!0,!0,!1,!0))&&((!s||i!=="")&&(i+=ik(t,e)),t.dump&&sC===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=n,t.dump=i||"[]"}function PMe(t,e,r){var s="",i=t.tag,n=Object.keys(r),o,a,c,l,u;for(o=0,a=n.length;o<a;o+=1)u="",s!==""&&(u+=", "),t.condenseFlow&&(u+='"'),c=n[o],l=r[c],t.replacer&&(l=t.replacer.call(r,c,l)),Kl(t,e,c,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Kl(t,e,l,!1,!1)&&(u+=t.dump,s+=u));t.tag=i,t.dump="{"+s+"}"}function OMe(t,e,r,s){var i="",n=t.tag,o=Object.keys(r),a,c,l,u,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new tn("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)d="",(!s||i!=="")&&(d+=ik(t,e)),l=o[a],u=r[l],t.replacer&&(u=t.replacer.call(r,l,u)),Kl(t,e+1,l,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&sC===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=ik(t,e)),Kl(t,e+1,u,!0,h)&&(t.dump&&sC===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=n,t.dump=i||"{}"}function _K(t,e,r){var s,i,n,o,a,c;for(i=r?t.explicitTypes:t.implicitTypes,n=0,o=i.length;n<o;n+=1)if(a=i[n],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,jK.call(a.represent)==="[object Function]")s=a.represent(e,c);else if(JK.call(a.represent,c))s=a.represent[c](e,c);else throw new tn("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=s}return!0}return!1}function Kl(t,e,r,s,i,n,o){t.tag=null,t.dump=r,_K(t,r,!1)||_K(t,r,!0);var a=jK.call(t.dump),c=s,l;s&&(s=t.flowLevel<0||t.flowLevel>e);var u=a==="[object Object]"||a==="[object Array]",h,d;if(u&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")s&&Object.keys(t.dump).length!==0?(OMe(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(PMe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")s&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?TK(t,e-1,t.dump,i):TK(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(QMe(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&RMe(t,t.dump,e,n,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new tn("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function DMe(t,e){var r=[],s=[],i,n;for(ok(t,r,s),i=0,n=s.length;i<n;i+=1)e.duplicates.push(r[s[i]]);e.usedDuplicates=new Array(n)}function ok(t,e,r){var s,i,n;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,n=t.length;i<n;i+=1)ok(t[i],e,r);else for(s=Object.keys(t),i=0,n=s.length;i<n;i+=1)ok(t[s[i]],e,r)}function kMe(t,e){e=e||{};var r=new SMe(e);r.noRefs||DMe(t,r);var s=t;return r.replacer&&(s=r.replacer.call({"":s},"",s)),Kl(r,0,s,!0,!0)?r.dump+`
`:""}var MMe=kMe,LMe={dump:MMe};function hk(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var iX=$K.load,NDt=$K.loadAll,vDt=LMe.dump;var RDt=hk("safeLoad","load"),TDt=hk("safeLoadAll","loadAll"),_Dt=hk("safeDump","dump");var oX=O(require("os"),1);function Xl(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function dk(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function Qh(t,e,r){let s=new fk(t,e,r);process.stdout.write(s.toString()+oX.EOL)}function pk(t,e=""){Qh(t,{},e)}var nX="::",fk=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=nX+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${qMe(i)}`)}}return e+=`${nX}${UMe(this.message)}`,e}};function UMe(t){return Xl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function qMe(t){return Xl(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var aX=O(require("crypto"),1),LS=O(require("fs"),1),MS=O(require("os"),1);function Ak(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!LS.existsSync(r))throw new Error(`Missing file at path: ${r}`);LS.appendFileSync(r,`${Xl(e)}${MS.EOL}`,{encoding:"utf8"})}function mk(t,e){let r=`ghadelimiter_${aX.randomUUID()}`,s=Xl(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${MS.EOL}${s}${MS.EOL}${r}`}var eF=O(require("os"),1);var aI=O(require("http"),1),G2=O(require("https"),1);function gk(t){let e=t.protocol==="https:";if(GMe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new FS(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new FS(`http://${r}`)}else return}function GMe(t){if(!t.hostname)return!1;let e=t.hostname;if(HMe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let i=[t.hostname.toUpperCase()];typeof s=="number"&&i.push(`${i[0]}:${s}`);for(let n of r.split(",").map(o=>o.trim().toUpperCase()).filter(o=>o))if(n==="*"||i.some(o=>o===n||o.endsWith(`.${n}`)||n.startsWith(".")&&o.endsWith(`${n}`)))return!0;return!1}function HMe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}var FS=class extends URL{constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var Xh=O(oC(),1),Dne=O(zm(),1),Qr=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},mr;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(mr||(mr={}));var wi;(function(t){t.Accept="accept",t.ContentType="content-type"})(wi||(wi={}));var fu;(function(t){t.ApplicationJson="application/json"})(fu||(fu={}));var a$e=[mr.MovedPermanently,mr.ResourceMoved,mr.SeeOther,mr.TemporaryRedirect,mr.PermanentRedirect],c$e=[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout],l$e=["OPTIONS","GET","DELETE","HEAD"],u$e=10,h$e=5,bc=class t extend Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function dI(t,e){if(process.env.GITHUB_OUTPUT||"")return Ak("OUTPUT",mk(t,e));process.stdout.write(eF.EOL),Qh("set-output",{name:t},Xl(e))}function Oo(){return process.env.RUNNER_DEBUG==="1"}function H(t){Qh("debug",{},t)}function fI(t,e={}){Qh("error",dk(e),t instanceof Error?t.toString():t)}function Zs(t,e={}){Qh("warning",dk(e),t instanceof Error?t.toString():t)}function pt(t){process.stdout.write(t+eF.EOL)}function S$e(t){pk("group",t)}function B$e(){pk("endgroup")}function Fs(t,e){return w$e(this,void 0,void 0,function*(){S$e(t);let r;try{r=yield e()}finally{B$e()}return r})}function Sc(t,e){if(process.env.GITHUB_STATE||"")return Ak("STATE",mk(t,e));Qh("save-state",{name:t},Xl(e))}var soe=O(require("os"),1);function ed(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function tF(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function td(t,e,r){let s=new rF(t,e,r);process.stdout.write(s.toString()+soe.EOL)}function sF(t,e=""){td(t,{},e)}var roe="::",rF=class{constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=roe+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let i=this.properties[s];i&&(r?r=!1:e+=",",e+=`${s}=${N$e(i)}`)}}return e+=`${roe}${x$e(this.message)}`,e}};function x$e(t){return ed(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function N$e(t){return ed(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var ioe=O(require("crypto"),1),Gx=O(require("fs"),1),qx=O(require("os"),1);function iF(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!Gx.existsSync(r))throw new Error(`Missing file at path: ${r}`);Gx.appendFileSync(r,`${ed(e)}${qx.EOL}`,{encoding:"utf8"})}function noe(t,e){let r=`ghadelimiter_${ioe.randomUUID()}`,s=ed(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(s.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${qx.EOL}${s}${qx.EOL}${r}`}var uoe=O(require("os"),1),hoe=O(require("path"),1);var Hx=O(oC(),1),R$e=O(zm(),1);var Bc;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Bc||(Bc={}));var ooe;(function(t){t.Accept="accept",t.ContentType="content-type"})(ooe||(ooe={}));var aoe;(function(t){t.ApplicationJson="application/json"})(aoe||(aoe={}));var pLt=[Bc.MovedPermanently,Bc.ResourceMoved,Bc.SeeOther,Bc.TemporaryRedirect,Bc.PermanentRedirect],ALt=[Bc.BadGateway,Bc.ServiceUnavailable,Bc.GatewayTimeout];var loe=require("os"),AI=require("fs"),nF=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},{access:T$e,appendFile:_$e,writeFile:Q$e}=AI.promises,coe="GITHUB_STEP_SUMMARY";var oF=class{constructor(){this._buffer=""}filePath(){return nF(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[coe];if(!e)throw new Error(`Unable to find environment variable for $${coe}. Check if your runtime environment supports job summaries.`);try{yield T$e(e,AI.constants.R_OK|AI.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,s={}){let i=Object.entries(s).map(([n,o])=>` ${n}="${o}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return nF(this,void 0,void 0,function*(){leLine truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function foe(t){process.exitCode=cF.Failure,D$e(t)}function V(t){td("debug",{},t)}function D$e(t,e={}){td("error",tF(e),t instanceof Error?t.toString():t)}function Do(t,e={}){td("warning",tF(e),t instanceof Error?t.toString():t)}function J(t){process.stdout.write(t+uoe.EOL)}function k$e(t){sF("group",t)}function M$e(){sF("endgroup")}function rd(t,e){return O$e(this,void 0,void 0,function*(){k$e(t);let r;try{r=yield e()}finally{M$e()}return r})}function zx(t,e){if(process.env.GITHUB_STATE||"")return iF("STATE",noe(t,e));td("save-state",{name:t},ed(e))}function poe(t){return process.env[`STATE_${t}`]||""}var $T=O(require("fs"),1),tV=O(require("os"),1),rV=O(require("path"),1);var TF=O(require("crypto"),1),ri=O(require("fs"),1);var PJe=O(vF(),1);var nN=O(require("os"),1),La=O(require("path"),1);var Lo=O(vF(),1),ice=O(require("stream"),1),nce=O(require("util"),1),_F=require("assert");var sce=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},sN=class{constructor(e,r,s){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(s),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return sce(this,void 0,void 0,function*(){let s=1;for(;s<this.maxAttempts;){try{return yield e()}catch(n){if(r&&!r(n))throw n;pt(n.message)}let i=this.getSleepAmount();pt(`Waiting ${i} seconds before trying again`),yield this.sleep(i),s++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return sce(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var vc=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},iN=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},oce=process.platform==="win32",M2t=process.platform==="darwin",DJe="actions/tool-cache";function Fo(t,e,r,s){return vc(this,void 0,void 0,function*(){e=e||La.join(dce(),TF.randomUUID()),yield pu(La.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let i=3,n=RF("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=RF("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new sN(i,n,o).execute(()=>vc(this,void 0,void 0,function*(){return yield kJe(t,e||"",r,s)}),c=>!(c instanceof iN&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function kJe(t,e,r,s){return vc(this,void 0,void 0,function*(){if(ri.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let i=new Po(DJe,[],{allowRetries:!1});r&&(H("set auth"),s===void 0&&(s={}),s.authorization=r);let n=yield i.get(t,s);if(n.message.statusCode!==200){let u=new iN(n.message.statusCode);throw H(`Failed to download from "${t}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),u}let o=nce.promisify(ice.pipeline),c=RF("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),l=!1;try{return yield o(c,ri.createWriteStream(e)),H("download complete"),l=!0,e}finally{if(!l){H("download failed");try{yield kx(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function ace(t,e){return vc(this,arguments,void 0,function*(r,s,i="xz"){if(!r)throw new Error("parameter 'file' is required");s=yield uce(s),H("Checking tar --version");let n="";yield Vn("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:u=>n+=u.toString(),stderr:u=>n+=u.toString()}}),H(n.trim());let o=n.toUpperCase().includes("GNU TAR"),a;i instanceof Array?a=i:a=[i],Oo()&&!i.includes("v")&&a.push("-v");let c=s,l=r;return oce&&o&&(a.push("--force-local"),c=s.replace(/\\/g,"/"),l=r.replace(/\\/g,"/")),o&&(a.push("--warning=no-unknown-keyword"),a.push("--overwrite")),a.push("-C",c,"-f",l),yield Vn("tar",a),s})}function cce(t,e){return vc(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield uce(e),oce?yield MJe(t,e):yield LJe(t,e),e})}function MJe(t,e){return vc(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield Ls("pwsh",!1);if(i){let o=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ;","try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch {Line truncated
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(yG,"formatError");var Il=class PG extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=yG(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${yG(this,e)}`}static throwAt(e,r,n,s=""){let i=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(i++,a=l+1):u===13&&(i++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:s,buffer:e,position:r,line:i,column:r-a};throw c.snippet=WAe(c),new PG(n,c)}},wt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},be={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},sc={BLOCK:1,FLOW:2},Un={CLIP:1,STRIP:2,KEEP:3},jAe=-1;function CG(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(CG,"simpleEscapeSequence");var kG=new Array(256),DG=new Array(256);for(let t=0;t<256;t++)kG[t]=CG(t)?1:0,DG[t]=CG(t);function KAe(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}o(KAe,"charFromCodepoint");function XAe(t){return t>=48&&t<=57?t-48:(t|32)-97+10}o(XAe,"fromHexCode$1");function ZAe(t){return t===120?2:t===117?4:8}o(ZAe,"escapedHexLen$1");function UE(t,e,r){let n=0;for(;e<r;){let s=t.charCodeAt(e);if(s===10)n++,e++;else if(s===13)n++,e++,t.charCodeAt(e)===10&&e++;else if(s===32||s===9)e++;else break}return{position:e,breaks:n}}o(UE,"skipFoldedBreaks");function Px(t){return t===1?" ":`
`.repeat(t-1)}o(Px,"foldedBreaks");function epe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=Px(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,a)}o(epe,"getPlainValue");function tpe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===39)n+=t.slice(i,s)+"'",s+=2,i=a=s;else if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=Px(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(tpe,"getSingleQuotedValue");function rpe(t,e,r){let n="",s=e,i=e,a=e;for(;s<r;){let c=t.charCodeAt(s);if(c===92){n+=t.slice(i,s),s++;let l=t.charCodeAt(s);if(l===10||l===13)s=UE(t,s,r).position;else if(l<256&&kG[l])n+=DG[l],s++;else{let u=ZAe(l),d=0;for(;u>0;u--){s++;let A=XAe(t.charCodeAt(s));d=(d<<4)+A}n+=KAe(d),s++}i=a=s}else if(c===10||c===13){n+=t.slice(i,a);let l=UE(t,s,r);n+=Px(l.breaks),s=i=a=l.position}else s++,c!==32&&c!==9&&(a=s)}return n+t.slice(i,r)}o(rpe,"getDoubleQuotedValue");function IG(t,e,r,n,s,i){let a=n<0?0:n,c=t.slice(e,r).replace(/\r\n?/g,`
`),l=c===""?[]:(c.endsWith(`
`)?c.slice(0,-1):c).split(`
`),u="",d=!1,A=0,p=!1;for(let f of l){let h=0;for(;h<a&&f.charCodeAt(h)===32;)h++;if(n<0||h>=f.length){A++;continue}let g=f.slice(a),y=g.charCodeAt(0);i?y===32||y===9?(p=!0,u+=`
`.repeat(d?1+A:A)):p?(p=!1,u+=`
`.repeat(A+1)):A===0?d&&(u+=" "):u+=`
`.repeat(A):u+=`
`.repeat(d?1+A:A),u+=g,d=!0,A=0}return s===Un.KEEP?u+=`
`.repeat(d?1+A:A):s!==Un.STRIP&&d&&(u+=`
`),u}o(IG,"getBlockValue");function npe(t,e){if(e.valueStart===jAe)return"";let{valueStart:r,valueEnd:n}=e;if(e.fast)return t.slice(r,n);switch(e.style){case be.SINGLE_QUOTED:return tpe(t,r,n);case be.DOUBLE_QUOTED:return rpe(t,r,n);case be.LITERAL_BLOCK:return IG(t,r,n,e.indent,e.chomping,!1);case be.FOLDED_BLOCK:return IG(t,r,n,e.indent,e.chomping,!0);default:return epe(t,r,n)}}o(npe,"getScalarValue");var spe=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function OG(t,e){if(t.startsWith("!<")&&t.endsWith(">"))return decodeURIComponent(t.slice(2,-1));let r=t.indexOf("!",1),n=r===-1?"!":t.slice(0,r+1),s=e?.[n]??spe[n]??n;return decodeURIComponent(s)+decodeURIComponent(t.slice(n.length))}o(OG,"tagNameFull");var md=-1,ipe="tag:yaml.org,2002:merge",kx={filename:"",schema:zAe,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function ope(t){return"tagStart"in t&&t.tagStart!==md?t.tagStart:"anchorStart"in t&&t.anchorStart!==md?t.anchorStart:"valueStart"in t&&t.valueStart!==md?t.valueStart:"start"in t?t.start:0}o(ope,"eventPosition$1");function Cr(t,e){Il.throwAt(t.source,t.position,e,t.filename)}o(Cr,"throwError$1");function MG(t,e,r,n){try{return r.finalize(n)}catch(s){if(s instanceof Il)throw s;Il.throwAt(t.source,e,s instanceof Error?s.message:String(s),t.filename)}}o(MG,"finalizeCollection");function ape(t,e){let r=npe(t.source,e),n=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd),s=t.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:s};let i=OG(n,t.tagHandlers),a=t.schema.lookupScalarTag(i);if(a){let l=a.resolve(r,!0,i);return l===ve&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`),{value:l,tag:a}}let c=t.schema.lookupMappingTag(i)??t.schema.lookupSequenceTag(i);if(c){r!==""&&Cr(t,`cannot resolve a node with !<${i}> explicit tag`);let l=c.create(i);return{value:c.carrierIsResult?l:MG(t,t.position,c,l),tag:c}}Cr(t,`unknown scalar tag !<${i}>`)}return e.style===be.PLAIN?t.schema.resolveImplicitScalarTag(r):{value:s.resolve(r,!1,s.tagName),tag:s}}o(ape,"constructScalar");function BG(t,e,r){let n=e.tagStart===md?"":t.source.slice(e.tagStart,e.tagEnd);return n===""||n==="!"?r:OG(n,t.tagHandlers)}o(BG,"collectionTagName");function LG(t){return t.nodeKind==="mapping"}o(LG,"isMappingTag");function bG(t){t.totalMergeKeys++,t.maxTotalMergeKeys!==-1&&t.totalMergeKeys>t.maxTotalMergeKeys&&Cr(t,`merge keys exceeded maxTotalMergeKeys (${t.maxTotalMergeKeys})`)}o(bG,"chargeMergeWork");function wG(t,e,r,n){bG(t);for(let s of n.keys(r)){if(bG(t),e.tag.has(e.value,s))continue;let i=e.tag.addPair(e.value,s,n.get(r,s));i&&Cr(t,i),e.overridable??=new Set,e.overridable.add(s)}}o(wG,"mergeKeys");function cpe(t,e,r,n){if(t.position=e.keyPosition,LG(n))wG(t,e,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Cr(t,"abnormal merge sequence size");for(let s of r){let i=t.nodeTags.get(s);i||Cr(t,"cannot merge mappings; the provided source object is unacceptable"),wG(t,e,s,i)}}else Cr(t,"cannot merge mappings; the provided source object is unacceptable")}o(cpe,"mergeSource");function lpe(t,e,r,n,s){if(t.position=e.keyPosition,e.keyIsMerge){cpe(t,e,n,s);return}!t.json&&e.tag.has(e.value,r)&&!e.overridable?.has(r)&&Cr(t,"duplicated mapping key");let i=e.tag.addPair(e.value,r,n);i&&Cr(t,i),e.overridable?.delete(r)}o(lpe,"addMappingValue");function Cx(t,e,r){let n=t.frames[t.frames.length-1];if(n.kind==="document")n.value=e,n.hasValue=!0;else if(n.kind==="sequence"){LG(r)&&t.nodeTags.set(e,r);let s=n.tag.addItem(n.value,e,n.index++);s&&Cr(t,s)}else if(n.hasKey){let s=n.key;n.key=void 0,n.hasKey=!1,lpe(t,n,s,e,r)}else n.key=e,n.keyPosition=t.position,n.hasKey=!0,n.keyIsMerge=r.tagName===ipe}o(Cx,"addValue");function Ix(t,e,r,n,s){if(e.anchorStart!==md){let i={value:r,tag:n,isValueFinal:s};return t.anchors.set(t.source.slice(e.anchorStart,e.anchorEnd),i),i}return null}o(Ix,"storeAnchor");function upe(t,e){let r={...kx,...e,events:t,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=ope(n),n.type){case wt.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let s of n.directives)s.kind==="tag"&&(r.tagHandlers[s.handle]=s.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case wt.SCALAR:{let{value:s,tag:i}=ape(r,n);Ix(r,n,s,i,!0),Cx(r,s,i);break}case wt.SEQUENCE:{let s=BG(r,n,"tag:yaml.org,2002:seq"),i=r.schema.lookupSequenceTag(s);i||Cr(r,`unknown sequence tag !<${s}>`);let a=i.create(s),c=Ix(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:a,tag:i,anchor:c,index:0});break}case wt.MAPPING:{let s=BG(r,n,"tag:yaml.org,2002:map"),i=r.schema.lookupMappingTag(s);i||Cr(r,`unknown mapping tag !<${s}>`);let a=i.create(s),c=Ix(r,n,a,i,i.carrierIsResult);r.frames.push({kind:"mapping",positio Line truncated
`)?be.DOUBLE_QUOTED:JG(t)))}o(Fpe,"applyForceQuotesOption");function Upe(t){if(t.style!==be.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!$E(t.allowedStylesMask,be.LITERAL_BLOCK)){r&&(t.style=be.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=be.LITERAL_BLOCK);return}let s=Math.max(Math.min(n,40),n-t.shiftOfContent),i=0,a=!1;for(;i<=e.length;){let c=e.length,l=e.indexOf(`
`,i);l!==-1&&(c=l);let u=e.slice(i,c);if(u.length>s&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;i=l+1}a?t.style=be.FOLDED_BLOCK:r&&(t.style=be.LITERAL_BLOCK)}o(Upe,"tryLongOrMultilineAsBlock");function qpe(t){t.style===be.PLAIN&&!$E(t.allowedStylesMask,be.PLAIN)&&(t.style=JG(t))}o(qpe,"quoteInvalidPlain");function Gpe(t){$E(t.allowedStylesMask,t.style)||(t.style=be.DOUBLE_QUOTED)}o(Gpe,"fallbackToDoubleQuoted");var Hpe="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Vpe="[\\n\\r]",zpe="\\uFEFF",Mx="[ \\t]",YG=`(?:(?!(?:${Vpe}|${zpe}))${Hpe})`,JE=`(?:(?!${Mx})${YG})`,WG="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",jG="[-?:,\\[\\]{}#&*!|>'\"%@`]",$pe="[,\\[\\]{}]",Rx=JE,Tx=`(?:(?!${$pe})${JE})`,Jpe=`(?:(?:(?!${jG})${JE})|[?:-](?=${Rx}))`,Ype=`(?:(?:(?!${jG})${JE})|[?:-](?=${Tx}))`,KG=`(?:(?:(?![:#])${Rx})|:(?=${Rx}))#*`,XG=`(?:(?:(?![:#])${Tx})|:(?=${Tx}))#*`,ZG=`(?:${Mx}*${KG})*`,eH=`(?:${Mx}*${XG})*`,tH=`${Jpe}#*${ZG}`,rH=`${Ype}#*${eH}`,Wpe=tH,jpe=rH,Kpe=`\\n+${KG}${ZG}`,Xpe=`\\n+${XG}${eH}`,Zpe=`${tH}(?:${Kpe})*`,efe=`${rH}(?:${Xpe})*`,xKe=new RegExp(`^(?:${Zpe})$`,"u"),QKe=new RegExp(`^(?:${efe})$`,"u"),RKe=new RegExp(`^(?:${Wpe})$`,"u"),TKe=new RegExp(`^(?:${jpe})$`,"u"),vKe=new RegExp(`^(?:${WG})*$`,"u"),_Ke=new RegExp(`^(?:${WG}|\\n)*$`,"u"),PKe=new RegExp(`^(?:${YG}|\\n)*$`,"u");var tfe={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(RG).map(t=>Reflect.get(RG,t)),tagBeforeAnchor:!1};var kKe={...tfe,schema:JAe,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};var DKe=wt.DOCUMENT,OKe=wt.SEQUENCE,MKe=wt.MAPPING,LKe=wt.SCALAR,FKe=wt.ALIAS,UKe=wt.POP,qKe=be.PLAIN,GKe=be.SINGLE_QUOTED,HKe=be.DOUBLE_QUOTED,VKe=be.LITERAL_BLOCK,zKe=be.FOLDED_BLOCK,$Ke=sc.BLOCK,JKe=sc.FLOW,YKe=Un.CLIP,WKe=Un.STRIP,jKe=Un.KEEP;var sH=w(require("os"),1);function ra(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(ra,"toCommandValue");function Lx(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}o(Lx,"toCommandProperties");function na(t,e,r){let n=new Fx(t,e,r);process.stdout.write(n.toString()+sH.EOL)}o(na,"issueCommand");function Ux(t,e=""){na(t,{},e)}o(Ux,"issue");var nH="::",Fx=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=nH+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${sfe(s)}`)}}return e+=`${nH}${nfe(this.message)}`,e}};function nfe(t){return ra(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(nfe,"escapeData");function sfe(t){return ra(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(sfe,"escapeProperty");var iH=w(require("crypto"),1),WE=w(require("fs"),1),YE=w(require("os"),1);function jE(t,e){let r=process.env[`GITHUB_${t}`];if(!r)throw new Error(`Unable to find environment variable for file command ${t}`);if(!WE.existsSync(r))throw new Error(`Missing file at path: ${r}`);WE.appendFileSync(r,`${ra(e)}${YE.EOL}`,{encoding:"utf8"})}o(jE,"issueFileCommand");function qx(t,e){let r=`ghadelimiter_${iH.randomUUID()}`,n=ra(e);if(t.includes(r))throw new Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw new Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${t}<<${r}${YE.EOL}${n}${YE.EOL}${r}`}o(qx,"prepareKeyValueMessage");var Tv=w(require("os"),1),s4=w(require("path"),1);var Oh=w(require("http"),1),gv=w(require("https"),1);function Gx(t){let e=t.protocol==="https:";if(ife(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new KE(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new KE(`http://${r}`)}else return}o(Gx,"getProxyUrl");function ife(t){if(!t.hostname)return!1;let e=t.hostname;if(ofe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(ife,"checkBypass");function ofe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(ofe,"isLoopbackAddress");var KE=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){supe Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Zl,"getBooleanInput");function Gh(t,e){if(process.env.GITHUB_OUTPUT||"")return jE("OUTPUT",qx(t,e));process.stdout.write(Tv.EOL),na("set-output",{name:t},ra(e))}o(Gh,"setOutput");function i4(t){process.exitCode=Rv.Failure,BA(t)}o(i4,"setFailed");function Ia(){return process.env.RUNNER_DEBUG==="1"}o(Ia,"isDebug");function B(t){na("debug",{},t)}o(B,"debug");function BA(t,e={}){na("error",Lx(e),t instanceof Error?t.toString():t)}o(BA,"error");function Je(t,e={}){na("warning",Lx(e),t instanceof Error?t.toString():t)}o(Je,"warning");function S(t){process.stdout.write(t+Tv.EOL)}o(S,"info");function MNe(t){Ux("group",t)}o(MNe,"startGroup");function LNe(){Ux("endgroup")}o(LNe,"endGroup");function nt(t,e){return ONe(this,void 0,void 0,function*(){MNe(t);let r;try{r=yield e()}finally{LNe()}return r})}o(nt,"group");function En(t,e){if(process.env.GITHUB_STATE||"")return jE("STATE",qx(t,e));na("save-state",{name:t},ra(e))}o(En,"saveState");function o4(t){return process.env[`STATE_${t}`]||""}o(o4,"getState");var kg=w(require("fs"),1),F1=w(require("os"),1),U1=w(require("path"),1);var c4=w(require("os"),1);function Hh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Hh,"toCommandValue");function l4(t,e,r){let n=new vv(t,e,r);process.stdout.write(n.toString()+c4.EOL)}o(l4,"issueCommand");var a4="::",vv=class{static{o(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=a4+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let s=this.properties[n];s&&(r?r=!1:e+=",",e+=`${n}=${UNe(s)}`)}}return e+=`${a4}${FNe(this.message)}`,e}};function FNe(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(FNe,"escapeData");function UNe(t){return Hh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(UNe,"escapeProperty");var p4=w(require("os"),1);var d4=require("os"),Vh=require("fs");var _v=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:qNe,appendFile:GNe,writeFile:HNe}=Vh.promises,u4="GITHUB_STEP_SUMMARY";var Pv=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return _v(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[u4];if(!e)throw new Error(`Unable to find environment variable for $${u4}. Check if your runtime environment supports job summaries.`);try{yield qNe(e,Vh.constants.R_OK|Vh.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let s=Object.entries(n).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${s}>${r}</${e}>`:`<${e}${s}>`}write(e){return _v(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?HNe:GNe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return _v(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(e,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(d4.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),s=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(s).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",s=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(n,s);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(s=>{let i=s.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,A=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(A,l,p)}).join("");return this.wrap("tr",i)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:s,height:i}=n||{},a=Object.assign(Object.assign({},s&&{width:s}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,s=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",i=this.wrap(s,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),s=this.wrap("blockquote",e,n);return this.addRaw(s).addEOL()}Line truncated
`),e=e.replace(/\r/g,`
`));let i=e.split(`
`).map(n=>n.trim());for(let n of i)!n||n.startsWith("#")||s.patterns.push(new xI(n));return s.searchPaths.push(...DF(s.patterns)),s})}static stat(e,r,s){return UF(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield tg.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else i=yield tg.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let n=yield tg.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(o=>o===n)){H(`Symlink cycle detected for path '${e.path}' and realpath '${n}'`);return}s.push(n)}return i})}};var gYe=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Fce(t,e){return gYe(this,void 0,void 0,function*(){return yield uN.create(t,e)})}var xN=O(require("crypto"),1),ig=O(require("fs"),1),Kf=O(require("path"),1),Tue=O(vue(),1),_ue=O(require("util"),1);var DI;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(DI||(DI={}));var Ri;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ri||(Ri={}));var jn;(function(t){t.GNU="gnu",t.BSD="bsd"})(jn||(jn={}));var SN=2,BN=5e3,oU=5e3,aU=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Rue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,kI="cache.tar",cU="manifest.txt",jFt=10*Math.pow(1024,3);var sg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},pKe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(n){r[n]=t[n]&&function(o){return new Promise(function(a,c){o=t[n](o),i(a,c,o.done,o.value)})}}function i(n,o,a,c){Promise.resolve(c).then(function(l){n({value:l,done:a})},o)}},AKe="1.0";function MI(){return sg(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=Kf.join(s,"actions","temp")}let r=Kf.join(e,xN.randomUUID());return yield pu(r),r})}function Tc(t){return ig.statSync(t).size}function lU(t){return sg(this,void 0,void 0,function*(){var e,r,s,i,n;let o=[],a=(n=process.env.GITHUB_WORKSPACE)!==null&&n!==void 0?n:process.cwd(),c=yield Fce(t.join(`
`),{implicitDescendants:!1});try{for(var l=!0,u=pKe(c.globGenerator()),h;h=yield u.next(),e=h.done,!e;l=!0){i=h.value,l=!1;let f=Kf.relative(a,i).replace(new RegExp(`\\${Kf.sep}`,"g"),"/");H(`Matched: ${f}`),f===""?o.push("."):o.push(`${f}`)}}catch(d){r={error:d}}finally{try{!l&&!e&&(s=u.return)&&(yield s.call(u))}finally{if(r)throw r.error}}return o})}function LI(t){return sg(this,void 0,void 0,function*(){return _ue.promisify(ig.unlink)(t)})}function Que(t){return sg(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Vn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i=>s+=i.toString(),stderr:i=>s+=i.toString()}})}catch(i){H(i.message)}return s=s.trim(),H(s),s})}function FI(){return sg(this,void 0,void 0,function*(){let t=yield Que("zstd",["--quiet"]),e=Tue.clean(t);return H(`zstd version: ${e}`),t===""?Ri.Gzip:Ri.ZstdWithoutLong})}function cd(t){return t===Ri.Gzip?DI.Gzip:DI.Zstd}function Pue(){return sg(this,void 0,void 0,function*(){return ig.existsSync(aU)?aU:(yield Que("tar")).toLowerCase().includes("gnu tar")?Ls("tar"):""})}function uU(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function ng(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(AKe),xN.createHash("sha256").update(s.join("|")).digest("hex")}function Oue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}var Dg=O(require("fs"),1),nme=require("url");var _c=class extends Error{constructor(e){super(e),this.name="AbortError"}};var Due=require("node:os"),kue=O(require("node:util"),1),Mue=O(require("node:process"),1);function Lue(t,...e){Mue.default.stderr.write(`${kue.default.format(t,...e)}${Due.EOL}`)}var Fue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,que,hU=[],dU=[],vN=[];Fue&&fU(Fue);var Gue=Object.assign(t=>Hue(t),{enable:fU,enabled:pU,disable:mKe,log:Lue});function fU(t){que=t,hU=[],dU=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?dU.push(r.substring(1)):hU.push(r);for(let r of vN)r.enabled=pU(r.namespace)}function pU(t){if(t.endsWith("*"))return!0;for(let e of dU)if(Uue(t,e))return!1;for(let e of hU)if(Uue(t,e))return!0;return!1}function Uue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],f="";for(let p of e)p==="*"&&f==="*"||(f=p,d.push(p));r=d.join("")}let s=0,i=0,n=r.length,o=t.length,a=-1,c=-1;for(;s<o&&i<n;)if(r[i]==="*"){if(a=i,i++,i===n)return!0;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else if(r[i]===t[s])i++,s++;else if(a>=0){if(i=a+1,s=c+1,s===o)return!1;for(;t[s]!==r[i];)if(s++,s===o)return!1;c=s,s++,i++;continue}else return!1;let l=s===t.length,u=i===r.length,h=i===r.length-1&&r[i]==="*";return l&&(u||h)}function mKe(){let t=que||"";return fU(""),t}function Hue(t){let e=Object.assign(r,{enabled:pU(t),destroy:gKe,log:Gue.log,namespace:t,extend:yKe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return vN.push(e),e}function gKe(){let t=vN.indexOf(this);return t>=0?(vN.splice(t,1),!0):!1}function yKe(t){let e=Hue(`${this.namespace}:${t}`);return e.log=this.log,e}var og=Gue;var AU=["verbose","info","warning","error"],zue={verbose:400,info:300,warning:200,error:100};function Vue(t,e){e.log=(...r)=>{t.log(...r)}}function $ue(t){return AU.includes(t)}function RN(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,s,i=og(t.namespace);i.log=(...u)=>{og.log(...u)};function n(u){if(u&&!$ue(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${AU.join(",")}`);s=u;let h=[];for(let d of e)o(d)&&h.push(d.namespace);og.enable(h.join(","))}r&&($ue(r)?n(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${AU.join(", ")}.`));function o(u){return!!(s&&zue[u.level]<=zue[s])}function a(u,h){let d=Object.assign(u.extend(h),{level:h});if(Vue(u,d),o(d)){let f=og.disable();og.enable(f+","+d.namespace)}return e.add(d),d}function c(){return s}function l(u){let h=i.extend(u);return Vue(i,h),{error:a(h,"error"),warning:a(h,"warning"),info:a(h,"info"),verbose:a(h,"verbose")}}return{setLogLevel:n,getLogLevel:c,createClientLogger:l,logger:i}}var jue=RN({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),EKe=jue.logger;function UI(t){return jue.createClientLogger(t)}function TN(t){return t.toLowerCase()}function*CKe(t){for(let e of t.values())yield[e.name,e.value]}var mU=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(TN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(TN(e))?.value}has(e){return this._headersMap.has(TN(e))}delete(e){this._headersMap.delete(TN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let s of this._headersMap.value Line truncated
${wKe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function PN(t){return t instanceof Ti?!0:Zf(t)&&t.name==="RestError"}function un(t,e){return Buffer.from(t,e)}var ON=O(require("node:http"),1),DN=O(require("node:https"),1),CU=O(require("node:zlib"),1),Xue=require("node:stream");var Go=UI("ts-http-runtime");var SKe={};function qI(t){return t&&typeof t.pipe=="function"}function Kue(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Zue(t){return t&&typeof t.byteLength=="number"}var kN=class extends Xue.Transform{loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(i){s(i)}}constructor(e){super(),this.progressCallback=e}},IU=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new _c("The operation was aborted. Request has already been canceled.");s=l=>{l.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",s)}let i;e.timeout>0&&(i=setTimeout(()=>{let l=new qa;Go.info(`request to '${l.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let n=e.headers.get("Accept-Encoding"),o=n?.includes("gzip")||n?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let l=vKe(a);l!==null&&e.headers.set("Content-Length",l)}let c;try{if(a&&e.onUploadProgress){let p=e.onUploadProgress,m=new kN(p);m.on("error",E=>{Go.error("Error in upload progress",E)}),qI(a)?a.pipe(m):m.end(a),a=m}let l=await this.makeRequest(e,r,a);i!==void 0&&clearTimeout(i);let u=BKe(l),d={status:l.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return l.resume(),d;c=o?xKe(l,u):l;let f=e.onDownloadProgress;if(f){let p=new kN(f);p.on("error",m=>{Go.error("Error in download progress",m)}),c.pipe(p),c=p}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await NKe(c),d}finally{if(e.abortSignal&&s){let l=Promise.resolve();qI(a)&&(l=Kue(a));let u=Promise.resolve();qI(c)&&(u=Kue(c)),Promise.all([l,u]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(h=>{Go.warning("Error when cleaning up abortListener on httpRequest",h)})}}}makeRequest(e,r,s){let i=new URL(e.url),n=i.protocol!=="https:";if(n&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,n),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((c,l)=>{let u=n?ON.default.request(a,c):DN.default.request(a,c);u.once("error",h=>{l(new Ti(h.message,{code:h.code??Ti.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let h=new _c("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(h),l(h)}),s&&qI(s)?s.pipe(u):s?typeof s=="string"||Buffer.isBuffer(s)?u.end(s):Zue(s)?u.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Go.error("Unrecognized body type",s),l(new Ti("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?ON.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new ON.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return DN.default.globalAgent;let i=e.tlsSettings??SKe,n=this.cachedHttpsAgents.get(i);return n&&n.options.keepAlive===!s||(Go.info("No cached TLS Agent exist, creating a new Agent"),n=new DN.default.Agent({keepAlive:!s,...i}),this.cachedHttpsAgents.set(i,n)),n}}};function BKe(t){let e=Jn();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}function xKe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=CU.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=CU.default.createInflate();return t.pipe(s),s}return t}function NKe(t){return new Promise((e,r)=>{let s=[];t.on("data",i=>{Buffer.isBuffer(i)?s.push(i):s.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Ti(`Error reading response as text: ${i.message}`,{code:Ti.PARSE_ERROR}))})})}function vKe(t){return t?Buffer.isBuffer(t)?t.length:qI(t)?null:Zue(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ehe(){return new IU}function MN(){return ehe()}var bU="logPolicy";function LN(t={}){let e=t.logger??Go.info,r=new qa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additional Line truncated
`;return e}function oZe(t){return t instanceof Uint8Array?t.byteLength:nv(t)?t.size===-1?void 0:t.size:void 0}function aZe(t){let e=0;for(let r of t){let s=oZe(r);if(s===void 0)return;e+=s}return e}async function cZe(t,e,r){let s=[un(`--${r}`,"utf-8"),...e.flatMap(n=>[un(`\r
`,"utf-8"),un(nZe(n.headers),"utf-8"),un(`\r
`,"utf-8"),n.body,un(`\r
--${r}`,"utf-8")]),un(`--\r
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new sm(i));return n.searchPaths.push(...p_(n.patterns)),n})}static stat(e,r,n){return y_(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield QA.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){Rs(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield QA.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield QA.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===i)){Rs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var _Te=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function $8(t,e){return _Te(this,void 0,void 0,function*(){return yield mI.create(t,e)})}o($8,"create");var PI=w(require("crypto"),1),_A=w(require("fs"),1),su=w(require("path"),1),F6=w(M6(),1),U6=w(require("util"),1);var dm;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(dm||(dm={}));var Xr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Xr||(Xr={}));var es;(function(t){t.GNU="gnu",t.BSD="bsd"})(es||(es={}));var TI=2,vI=5e3,U_=5e3,q_=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,L6=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Am="cache.tar",G_="manifest.txt",Got=10*Math.pow(1024,3),_I="cache read denied:";var vA=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},FPe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),s(c,l,a.done,a.value)})}}function s(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},UPe="1.0";function pm(){return vA(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=su.join(n,"actions","temp")}let r=su.join(e,PI.randomUUID());return yield Ca(r),r})}o(pm,"createTempDirectory");function eo(t){return _A.statSync(t).size}o(eo,"getArchiveFileSizeInBytes");function H_(t){return vA(this,void 0,void 0,function*(){var e,r,n,s,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield $8(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=FPe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){s=A.value,u=!1;let f=su.relative(c,s).replace(new RegExp(`\\${su.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(H_,"resolvePaths");function fm(t){return vA(this,void 0,void 0,function*(){return U6.promisify(_A.unlink)(t)})}o(fm,"unlinkFile");function q6(t){return vA(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Xn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(s=>n+=s.toString(),"stdout"),stderr:o(s=>n+=s.toString(),"stderr")}})}catch(s){B(s.message)}return n=n.trim(),B(n),n})}o(q6,"getVersion");function hm(){return vA(this,void 0,void 0,function*(){let t=yield q6("zstd",["--quiet"]),e=F6.clean(t);return B(`zstd version: ${e}`),t===""?Xr.Gzip:Xr.ZstdWithoutLong})}o(hm,"getCompressionMethod");function vc(t){return t===Xr.Gzip?dm.Gzip:dm.Zstd}o(vc,"getCacheFileName");function G6(){return vA(this,void 0,void 0,function*(){return _A.existsSync(q_)?q_:(yield q6("tar")).toLowerCase().includes("gnu tar")?Br("tar"):""})}o(G6,"getGnuTarPathOnWindows");function V_(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(V_,"assertDefined");function PA(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(UPe),PI.createHash("sha256").update(n.join("|")).digest("hex")}o(PA,"getCacheVersion");function H6(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(H6,"getRuntimeToken");var gm=w(require("http"),1),J_=w(require("https"),1);function z_(t){let e=t.protocol==="https:";if(qPe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new DI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new DI(`http://${r}`)}else return}o(z_,"getProxyUrl");function qPe(t){if(!t.hostname)return!1;let e=t.hostname;if(GPe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let s=[t.hostname.toUpperCase()];typeof n=="number"&&s.push(`${s[0]}:${n}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||s.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(qPe,"checkBypass");function GPe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}o(GPe,"isLoopbackAddress");var DI=class extends URL{static{o(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var _c=w(kf(),1),V6=w(yA(),1);var Lt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Nt;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(Nt||(Nt={}));var Zr;(function(t){t.Accept="accept",t.ContentType="content-type"})(Zr||(Zr={}));var Sa;(function(t){t.ApplicationJson="application/json"})(Sa||(Sa={}));var VPe=[Nt.MovedPermanently,Nt.ResourceMoved,Nt.SeeOther,Nt.TemporaryRedirect,Nt.PermanentRedirect],zPe=[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout],$Pe=["OPTIONS","GET","DELETE","HEAD"],JPe=10,YPe=5,to=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${nke.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function qI(t){return t instanceof en?!0:ou(t)&&t.name==="RestError"}o(qI,"isRestError");function yn(t,e){return Buffer.from(t,e)}o(yn,"stringToUint8Array");var GI=w(require("node:http"),1),HI=w(require("node:https"),1),nP=w(require("node:zlib"),1),cK=require("node:stream");var _s=Em("ts-http-runtime");var ske={};function ym(t){return t&&typeof t.pipe=="function"}o(ym,"isReadableStream");function aK(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=o(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}o(aK,"isStreamComplete");function lK(t){return t&&typeof t.byteLength=="number"}o(lK,"isArrayBuffer");var VI=class extends cK.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},sP=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ro("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let u=new Ci;_s.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),a=i?.includes("gzip")||i?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=cke(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new VI(h);g.on("error",y=>{_s.error("Error in upload progress",y)}),ym(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);s!==void 0&&clearTimeout(s);let d=ike(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?oke(u,d):u;let f=e.onDownloadProgress;if(f){let h=new VI(f);h.on("error",g=>{_s.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await ake(l),p}finally{if(e.abortSignal&&n){let u=Promise.resolve();ym(c)&&(u=aK(c));let d=Promise.resolve();ym(l)&&(d=aK(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(A=>{_s.warning("Error when cleaning up abortListener on httpRequest",A)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=i?GI.default.request(c,l):HI.default.request(c,l);d.once("error",A=>{u(new en(A.message,{code:A.code??en.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new ro("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),n&&ym(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):lK(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(_s.error("Unrecognized body type",n),u(new en("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?GI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new GI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return HI.default.globalAgent;let s=e.tlsSettings??ske,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(_s.info("No cached TLS Agent exist, creating a new Agent"),i=new HI.default.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function ike(t){let e=ts();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}o(ike,"getResponseHeaders");function oke(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=nP.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=nP.default.createInflate();return t.pipe(n),n}return t}o(oke,"getDecodedResponseStream");function ake(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new en(`Error reading response as text: ${s.message}`,{code:en.PARSE_ERROR}))})})}o(ake,"streamToText");function cke(t){return t?Buffer.isBuffer(t)?t.length:ym(t)?nul Line truncated
`;return e}o(FDe,"encodeHeaders");function UDe(t){return t instanceof Uint8Array?t.byteLength:fB(t)?t.size===-1?void 0:t.size:void 0}o(UDe,"getLength");function qDe(t){let e=0;for(let r of t){let n=UDe(r);if(n===void 0)return;e+=n}return e}o(qDe,"getTotalLength");async function GDe(t,e,r){let n=[yn(`--${r}`,"utf-8"),...e.flatMap(i=>[yn(`\r
`,"utf-8"),yn(FDe(i.headers),"utf-8"),yn(`\r
`,"utf-8"),i.body,yn(`\r
--${r}`,"utf-8")]),yn(`--\r
\r
`,"utf-8")],i=aZe(s);i&&t.headers.set("Content-Length",i),t.body=await tde(s)}var VI="multipartPolicy",lZe=70,uZe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function hZe(t){if(t.length>lZe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!uZe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function av(){return{name:VI,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",i=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,n,o]=i;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?hZe(r):r=iZe(),t.headers.set("Content-Type",`${n}; boundary=${r}`),await cZe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cv(){return QN()}var rde=RN({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),THt=rde.logger;function Oc(t){return rde.createClientLogger(t)}var Dc=Oc("core-rest-pipeline");function qU(t={}){return LN({logger:Dc.info,...t})}var GU=FN;function HU(t={}){return UN(t)}var lv=O(require("node:os"),1),uv=O(require("node:process"),1);function sde(){return"User-Agent"}async function ide(t){if(uv.default&&uv.default.versions){let e=`${lv.default.type()} ${lv.default.release()}; ${lv.default.arch()}`,r=uv.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}var hv="1.22.2";function EZe(t){let e=[];for(let[r,s]of t){let i=s?`${r}/${s}`:r;e.push(i)}return e.join(" ")}function nde(){return sde()}async function dv(t){let e=new Map;e.set("core-rest-pipeline",hv),await ide(e);let r=EZe(e);return t?`${t} ${r}`:r}var ode=nde(),ade="userAgentPolicy";function zU(t={}){let e=dv(t.userAgentPrefix);return{name:ade,async sendRequest(r,s){return r.headers.has(ode)||r.headers.set(ode,await e),s(r)}}}var Xn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function VU(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:i}=e??{};return new Promise((n,o)=>{function a(){o(new Xn(i??"The operation was aborted."))}function c(){s?.removeEventListener("abort",l)}function l(){r?.(),c(),a()}if(s?.aborted)return a();try{t(u=>{c(),n(u)},u=>{c(),o(u)})}catch(u){o(u)}s?.addEventListener("abort",l)})}var SZe="The delay was aborted.";function $I(t,e){let r,{abortSignal:s,abortErrorMsg:i}=e??{};return VU(n=>{r=setTimeout(n,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:s,abortErrorMsg:i??SZe})}function ud(t){if(Zf(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function cde(t){return Zf(t)}function fg(){return Xf()}var xt=rp;var lde=Symbol("rawContent");function jU(t){return typeof t[lde]=="function"}function ude(t){return jU(t)?t[lde]():t}var fv=VI;function JU(){let t=av();return{name:fv,sendRequest:async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)jU(s.body)&&(s.body=ude(s.body));return t.sendRequest(e,r)}}}var YU=qN;function WU(){return GN()}function KU(t={}){return VN(t)}function XU(){return $N()}function hd(t){return kU(t)}function ZU(t,e){return rv(t,e)}var hde="setClientRequestIdPolicy";function eq(t="x-ms-client-request-id"){return{name:hde,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function tq(t){return sv(t)}function rq(t){return iv(t)}var pg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function dde(t={}){let e=new sq(t.parentContext);return t.span&&(e=e.setValue(pg.span,t.span)),t.namespace&&(e=e.setValue(pg.namespace,t.namespace)),e}var sq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let s=new t(this);return s._contextMap.set(e,r),s}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var pde=O(fde(),1),Av=pde.state;function BZe(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function xZe(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:BZe(),tracingContext:dde({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function jI(){return Av.instrumenterImplementation||(Av.instrumenterImplementation=xZe()),Av.instrumenterImplementation}function JI(t){let{namespace:e,packageName:r,packageVersion:s}=t;function i(l,u,h){let d=jI().startSpan(l,{...h,packageName:r,packageVersion:s,tracingContext:u?.tracingOptions?.tracingContext}),f=d.tracingConte Line truncated
`&&t[n]!=="\r";n++)c+=t[n];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),n--),!J7e(c)){let h;return c.trim().length===0?h="Invalid space after '<'.":h="Tag '"+c+"' is an invalid name.",Pr("InvalidTag",h,_i(t,n))}let l=H7e(t,n);if(l===!1)return Pr("InvalidAttr","Attributes for '"+c+"' have open quote.",_i(t,n));let u=l.value;if(n=l.index,u[u.length-1]==="/"){let h=n-u.length;u=u.substring(0,u.length-1);let d=Yde(u,e);if(d===!0)s=!0;else return Pr(d.err.code,d.err.msg,_i(t,h+d.err.line))}else if(a)if(l.tagClosed){if(u.trim().length>0)return Pr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",_i(t,o));if(r.length===0)return Pr("InvalidTag","Closing tag '"+c+"' has not been opened.",_i(t,o));{let h=r.pop();if(c!==h.tagName){let d=_i(t,h.tagStartPos);return Pr("InvalidTag","Expected closing tag '"+h.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",_i(t,o))}r.length==0&&(i=!0)}}else return Pr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",_i(t,n));else{let h=Yde(u,e);if(h!==!0)return Pr(h.err.code,h.err.msg,_i(t,n-u.length+h.err.line));if(i===!0)return Pr("InvalidXml","Multiple possible root nodes found.",_i(t,n));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),s=!0}for(n++;n<t.length;n++)if(t[n]==="<")if(t[n+1]==="!"){n++,n=Jde(t,n);continue}else if(t[n+1]==="?"){if(n=jde(t,++n),n.err)return n}else break;else if(t[n]==="&"){let h=$7e(t,n);if(h==-1)return Pr("InvalidChar","char '&' is not expected.",_i(t,n));n=h}else if(i===!0&&!$de(t[n]))return Pr("InvalidXml","Extra text at the end",_i(t,n));t[n]==="<"&&n--}}else{if($de(t[n]))continue;return Pr("InvalidChar","char '"+t[n]+"' is not expected.",_i(t,n))}if(s){if(r.length==1)return Pr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",_i(t,r[0].tagStartPos));if(r.length>0)return Pr("InvalidXml","Invalid '"+JSON.stringify(r.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Pr("InvalidXml","Start tag expected.",1);return!0}function $de(t){return t===" "||t===" "||t===`
`||t==="\r"}function jde(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return Pr("InvalidXml","XML declaration allowed only at the start of the document.",_i(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Jde(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}var q7e='"',G7e="'";function H7e(t,e){let r="",s="",i=!1;for(;e<t.length;e++){if(t[e]===q7e||t[e]===G7e)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){i=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:i}}var z7e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Yde(t,e){let r=Sv(t,z7e),s={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",i0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Pr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",i0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Pr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",i0(r[i]));let n=r[i][2];if(!j7e(n))return Pr("InvalidAttr","Attribute '"+n+"' is an invalid name.",i0(r[i]));if(!Object.prototype.hasOwnProperty.call(s,n))s[n]=1;else return Pr("InvalidAttr","Attribute '"+n+"' is repeated.",i0(r[i]))}return!0}function V7e(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function $7e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,V7e(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Pr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function j7e(t){return Iq(t)}function J7e(t){return Iq(t)}function _i(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function i0(t){return t.startIndex+t[1].length}var Wde={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Kde={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},Xde={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",LcaroLine truncated
`);let e=new pn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,n=new a0(i.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let l=t.charCodeAt(a+1);if(l===47){let u=Eg(t,">",a,"Closing Tag is not closed."),h=t.substring(a+2,u).trim();if(i.removeNSPrefix){let f=h.indexOf(":");f!==-1&&(h=h.substr(f+1))}h=Rq(i.transformTagName,h,"",i).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(h&&i.unpairedTagsSet.has(h))throw new Error(`Unpaired tag can not be used as closing tag: </${h}>`);d&&i.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",a=u}else if(l===63){let u=Tq(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let h=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(h){let d=h[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),n.setXmlVersion(Number(d)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let d=new pn(u.tagName);d.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(d[":@"]=h),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(l===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=Eg(t,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let h=t.substring(a+4,u-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:h}])}a=u}else if(l===33&&t.charCodeAt(a+2)===68){let u=n.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(l===33&&t.charCodeAt(a+2)===91){let u=Eg(t,"]]>",a,"CDATA is not closed.")-2,h=t.substring(a+9,u);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(h,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:h}]):r.add(i.textNodeName,d),a=u+2}else{let u=Tq(t,a,i.removeNSPrefix);if(!u){let P=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${P}"`)}let h=u.tagName,d=u.rawTagName,f=u.tagExp,p=u.attrExpPresent,m=u.closeIndex;if({tagName:h,tagExp:f}=Rq(i.transformTagName,h,f,i),i.strictReservedNames&&(h===i.commentPropName||h===i.cdataPropName||h===i.textNodeName||h===i.attributesGroupName))throw new Error(`Invalid tag name: ${h}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(y=!0,h[h.length-1]==="/"?(h=h.substr(0,h.length-1),f=h):f=f.substr(0,f.length-1),p=h!==f);let C=null,w={},B;B=yet(d),h!==e.tagname&&this.matcher.push(h,{},B),h!==f&&p&&(C=this.buildAttributesMap(f,this.matcher,h),C&&(w=get(C,i))),h!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=a;if(this.isCurrentNodeStopNode){let P="";if(y)a=u.closeIndex;else if(i.unpairedTagsSet.has(h))a=u.closeIndex;else{let k=this.readStopNodeData(t,d,m+1);if(!k)throw new Error(`Unexpected end of ${d}`);a=k.i,P=k.tagContent}let Q=new pn(h);C&&(Q[":@"]=C),Q.add(i.textNodeName,P),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,N)}else{if(y){({tagName:h,tagExp:f}=Rq(i.transformTagName,h,f,i));let P=new pn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(h)){let P=new pn(h);C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let P=new pn(h);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(P[":@"]=C),this.addChild(r,P,this.readonlyMatcher,N),r=P}s="",a=m}}}else s+=t[a];return e.child};function Bet(t,e,r,s){this.options.captureMetaData||(s=void 0);let i=this.options.jPath?r.toString():r,n=this.options.updateTag(e.tagname,i,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),t.addChild(e,s))}function xet(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,i)))return t}if(s.tagFilter){let i=this.options.jPath?r.toString():r;if(!s.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}function Net(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function vet(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Ret(t,e,r=">"){Line truncated
`;function Met(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(kq(r)==="?xml"){let i=r[":@"];if(i){let n=e.attributeNamePrefix+"version";if(i[n])return i[n]}}return"1.0"}function yfe(t,e,r,s,i){return!r.sanitizeName||cp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}function Dq(t,e){let r="";e.format&&(r=ket);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?s.push(new to(a)):a instanceof to&&s.push(a)}let i=Met(t,e),n=new Lc;return Efe(t,e,r,n,s,i)}function Efe(t,e,r,s,i,n){let o="",a=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=Oq(c,e),c}return""}for(let c=0;c<t.length;c++){let l=t[c],u=kq(l);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:yfe(u,!1,e,s,n),f=Let(l[":@"],e);s.push(d,f);let p=Uet(s,i);if(d===e.textNodeName){let w=l[u];p||(w=e.tagValueProcessor(d,w),w=Oq(w,e)),a&&(o+=r),o+=w,a=!1,s.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let w=l[u][0][e.textNodeName],B=_v(w);o+=`<![CDATA[${B}]]>`,a=!1,s.pop();continue}else if(d===e.commentPropName){let w=l[u][0][e.textNodeName],B=Tv(w);o+=r+`<!--${B}-->`,a=!0,s.pop();continue}else if(d[0]==="?"){let w=gfe(l[":@"],e,p,s,n);o+=(d==="?xml"?"":r)+`<${d}${w}?>`,a=!0,s.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=gfe(l[":@"],e,p,s,n),y=r+`<${d}${E}`,C;p?C=Cfe(l[u],e):C=Efe(l[u],e,m,s,i,n),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=y+">":o+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=y+"/>":C&&C.endsWith(">")?o+=y+`>${C}${r}</${d}>`:(o+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,s.pop()}return o}function Let(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let n=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[n]=pd(t[i]),s=!0}return s?r:null}function Cfe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let i=t[s],n=kq(i);if(n===e.textNodeName)r+=i[n];else if(n===e.cdataPropName)r+=i[n][0][e.textNodeName];else if(n===e.commentPropName)r+=i[n][0][e.textNodeName];else{if(n&&n[0]==="?")continue;if(n){let o=Fet(i[":@"],e),a=Cfe(i[n],e);!a||a.length===0?r+=`<${n}${o}/>`:r+=`<${n}${o}>${a}</${n}>`}}}return r}function Fet(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s];i===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${pd(i)}"`}return r}function kq(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}function gfe(t,e,r,s,i){let n="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:yfe(a,!0,e,s,i),l;r?l=t[o]:(l=e.attributeValueProcessor(o,t[o]),l=Oq(l,e)),l===!0&&e.suppressBooleanAttributes?n+=` ${c}`:n+=` ${c}="${pd(l)}"`}return n}function Uet(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}function Oq(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}function Mq(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}var qet={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function mn(t){if(this.options=Object.assign({},qet,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new to(r)):r instanceof to&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=qDe(n);s&&t.headers.set("Content-Length",s),t.body=await pX(n)}o(GDe,"buildRequestBody");var Bm="multipartPolicy",HDe=70,VDe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function zDe(t){if(t.length>HDe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!VDe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(zDe,"assertValidBoundary");function mB(){return{name:Bm,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,a]=s;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?zDe(r):r=LDe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await GDe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(mB,"multipartPolicy");function gB(){return UI()}o(gB,"createEmptyPipeline");var fX=MI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Udt=fX.logger;function io(t){return fX.createClientLogger(t)}o(io,"createClientLogger");var oo=io("core-rest-pipeline");function bP(t={}){return $I({logger:oo.info,...t})}o(bP,"logPolicy");var wP=JI;function SP(t={}){return YI(t)}o(SP,"redirectPolicy");var EB=w(require("node:os"),1),yB=w(require("node:process"),1);function hX(){return"User-Agent"}o(hX,"getHeaderName");async function mX(t){if(yB.default&&yB.default.versions){let e=`${EB.default.type()} ${EB.default.release()}; ${EB.default.arch()}`,r=yB.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}o(mX,"setPlatformSpecificData");var CB="1.22.2";function ZDe(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}o(ZDe,"getUserAgentString");function gX(){return hX()}o(gX,"getUserAgentHeaderName");async function IB(t){let e=new Map;e.set("core-rest-pipeline",CB),await mX(e);let r=ZDe(e);return t?`${t} ${r}`:r}o(IB,"getUserAgentValue");var EX=gX(),yX="userAgentPolicy";function NP(t={}){let e=IB(t.userAgentPrefix);return{name:yX,async sendRequest(r,n){return r.headers.has(EX)||r.headers.set(EX,await e),n(r)}}}o(NP,"userAgentPolicy");var is=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function xP(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,a)=>{function c(){a(new is(s??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(xP,"createAbortablePromise");var sOe="The delay was aborted.";function bm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return xP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:s??sOe})}o(bm,"delay");function kc(t){if(ou(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}o(kc,"getErrorMessage");function CX(t){return ou(t)}o(CX,"isError");function GA(){return iu()}o(GA,"randomUUID");var Fe=lu;var IX=Symbol("rawContent");function RP(t){return typeof t[IX]=="function"}o(RP,"hasRawContent");function BX(t){return RP(t)?t[IX]():t}o(BX,"getRawContent");var BB=Bm;function TP(){let t=mB();return{name:BB,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)RP(n.body)&&(n.body=BX(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(TP,"multipartPolicy");var vP=WI;function _P(){return jI()}o(_P,"decompressResponsePolicy");function PP(t={}){return ZI(t)}o(PP,"defaultRetryPolicy");function kP(){return eB()}o(kP,"formDataPolicy");function Dc(t){return EP(t)}o(Dc,"getDefaultProxySettings");function DP(t,e){return dB(t,e)}o(DP,"proxyPolicy");var bX="setClientRequestIdPolicy";function OP(t="x-ms-client-request-id"){return{name:bX,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(OP,"setClientRequestIdPolicy");function MP(t){return AB(t)}o(MP,"agentPolicy");function LP(t){return pB(t)}o(LP,"tlsPolicy");var HA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function wX(t={}){let e=new FP(t.parentContext);return t.span&&(e=e.setValue(HA.span,t.span)),t.namespace&&(e=e.setValue(HA.namespace,t.namespace)),e}o(wX,"createTracingContext");var FP=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._context Line truncated
`&&t[i]!=="\r";i++)l+=t[i];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),i--),!QMe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Ft("InvalidTag",A,tn(t,i))}let u=bMe(t,i);if(u===!1)return Ft("InvalidAttr","Attributes for '"+l+"' have open quote.",tn(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=aZ(d,e);if(p===!0)n=!0;else return Ft(p.err.code,p.err.msg,tn(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Ft("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",tn(t,a));if(r.length===0)return Ft("InvalidTag","Closing tag '"+l+"' has not been opened.",tn(t,a));{let A=r.pop();if(l!==A.tagName){let p=tn(t,A.tagStartPos);return Ft("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",tn(t,a))}r.length==0&&(s=!0)}}else return Ft("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",tn(t,i));else{let A=aZ(d,e);if(A!==!0)return Ft(A.err.code,A.err.msg,tn(t,i-d.length+A.err.line));if(s===!0)return Ft("InvalidXml","Multiple possible root nodes found.",tn(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=oZ(t,i);continue}else if(t[i+1]==="?"){if(i=iZ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=NMe(t,i);if(A==-1)return Ft("InvalidChar","char '&' is not expected.",tn(t,i));i=A}else if(s===!0&&!sZ(t[i]))return Ft("InvalidXml","Extra text at the end",tn(t,i));t[i]==="<"&&i--}}else{if(sZ(t[i]))continue;return Ft("InvalidChar","char '"+t[i]+"' is not expected.",tn(t,i))}if(n){if(r.length==1)return Ft("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",tn(t,r[0].tagStartPos));if(r.length>0)return Ft("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ft("InvalidXml","Start tag expected.",1);return!0}o(DB,"validate");function sZ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(sZ,"isWhiteSpace");function iZ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Ft("InvalidXml","XML declaration allowed only at the start of the document.",tn(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(iZ,"readPI");function oZ(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}o(oZ,"readCommentAndCDATA");var IMe='"',BMe="'";function bMe(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===IMe||t[e]===BMe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}o(bMe,"readAttributeStr");var wMe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function aZ(t,e){let r=PB(t,wMe),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dm(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Ft("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dm(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Ft("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dm(r[s]));let i=r[s][2];if(!xMe(i))return Ft("InvalidAttr","Attribute '"+i+"' is an invalid name.",Dm(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Ft("InvalidAttr","Attribute '"+i+"' is repeated.",Dm(r[s]))}return!0}o(aZ,"validateAttributeString");function SMe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}o(SMe,"validateNumberAmpersand");function NMe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,SMe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}o(NMe,"validateAmpersand");function Ft(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Ft,"getErrorObject");function xMe(t){return nk(t)}o(xMe,"validateAttrName");function QMe(t){return nk(t)}o(QMe,"validateTagName");function tn(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(tn,"getLineNumberForPosition");function Dm(t){return t.startIndex+t[1].length}o(Dm,"getPositionFromMatch");var cZ={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},lZ={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},uZ={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",HstLine truncated
`);let e=new bn("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new Lm(s.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=YA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(s.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=dk(s.transformTagName,A,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&s.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&s.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=Ak(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(s.ignoreDeclaration&&d.tagName==="?xml"||s.ignorePiTags)){let p=new bn(d.tagName);p.add(s.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&s.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=YA(t,"-->",c+4,"Comment is not closed.");if(s.commentPropName){let A=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=YA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:A}]):r.add(s.textNodeName,p),c=d+2}else{let d=Ak(t,c,s.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,h=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=dk(s.transformTagName,A,f,s),s.strictReservedNames&&(A===s.commentPropName||A===s.cdataPropName||A===s.textNodeName||A===s.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&s.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),h=A!==f);let C=null,I={},b;b=KMe(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&h&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=jMe(C,s))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(s.unpairedTagsSet.has(A))c=d.closeIndex;else{let ce=this.readStopNodeData(t,p,g+1);if(!ce)throw new Error(`Unexpected end of ${p}`);c=ce.i,Q=ce.tagContent}let D=new bn(A);C&&(D[":@"]=C),D.add(s.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=dk(s.transformTagName,A,f,s));let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(A)){let Q=new bn(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new bn(A);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function nLe(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}o(nLe,"addChild");function sLe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}return this.entityDecoder.decode(t)}o(sLe,"replaceEntitiesValue");function iLe(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(iLe,"saveTextToParentTag");function oLe(){return this.stopNodeExpressionsLine truncated
`;function hLe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(Ek(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}o(hLe,"detectXmlVersionFromArray");function TZ(t,e,r,n,s){return!r.sanitizeName||fu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(TZ,"resolveTagName");function gk(t,e){let r="";e.format&&(r=fLe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new cs(c)):c instanceof cs&&n.push(c)}let s=hLe(t,e),i=new lo;return vZ(t,e,r,i,n,s)}o(gk,"toXml");function vZ(t,e,r,n,s,i){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=mk(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=Ek(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:TZ(d,!1,e,n,i),f=mLe(u[":@"],e);n.push(p,f);let h=ELe(n,s);if(p===e.textNodeName){let I=u[d];h||(I=e.tagValueProcessor(p,I),I=mk(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],b=UB(I);a+=`<![CDATA[${b}]]>`,c=!1,n.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],b=FB(I);a+=r+`<!--${b}-->`,c=!0,n.pop();continue}else if(p[0]==="?"){let I=RZ(u[":@"],e,h,n,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=RZ(u[":@"],e,h,n,i),E=r+`<${p}${y}`,C;h?C=_Z(u[d],e):C=vZ(u[d],e,g,n,s,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,n.pop()}return a}o(vZ,"arrToStr");function mLe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=Lc(t[s]),n=!0}return n?r:null}o(mLe,"extractAttributeValues");function _Z(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Ek(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=gLe(s[":@"],e),c=_Z(s[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(_Z,"getRawContent");function gLe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Lc(s)}"`}return r}o(gLe,"attr_to_str_raw");function Ek(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}o(Ek,"propName");function RZ(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),l=r?c:TZ(c,!0,e,n,s),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=mk(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Lc(u)}"`}return i}o(RZ,"attr_to_str");function ELe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}o(ELe,"checkStopNode");function mk(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}o(mk,"replaceEntitiesValue");function yk(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}o(yk,"getIgnoreAttributesFn");var yLe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:o(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:o(function(t,e){return e},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function Sn(t){if(this.options=Object.assign({},yLe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.oLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Get(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}function Lq(t,e,r,s,i){return!r.sanitizeName||cp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}mn.prototype.build=function(t){if(this.options.preserveOrder)return Dq(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Lc,r=Get(t,this.options);return this.j2x(t,0,e,r).val}};mn.prototype.j2x=function(t,e,r,s){let i="",n="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:Lq(c,!1,this.options,r,s);if(typeof t[c]>"u")this.isAttribute(c)&&(n+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?n+="":u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)n+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let h=this.isAttribute(c);if(h&&!this.ignoreAttributesFn(h,o)){let d=Lq(h,!0,this.options,r,s);i+=this.buildAttrPairStr(d,""+t[c],a)}else if(!h)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);n+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let f=""+t[c];f===""?n+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:n+=this.indentate(e)+"<"+u+">"+f+"</"+u+this.tagEndChar}else n+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let h=t[c].length,d="",f="";for(let p=0;p<h;p++){let m=t[c][p];if(!(typeof m>"u"))if(m===null)u[0]==="?"?n+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof m=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(m,e+1,r,s);r.pop(),d+=E.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(f+=E.attrStr)}else d+=this.processTextOrObjNode(m,u,e,r,s);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,m);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+m;y===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+y+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(m,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,f,e)),n+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let h=Object.keys(t[c]),d=h.length;for(let f=0;f<d;f++){let p=Lq(h[f],!0,this.options,r,s);i+=this.buildAttrPairStr(p,""+t[c][h[f]],a)}}else n+=this.processTextOrObjNode(t[c],u,e,r,s)}return{attrStr:i,val:n}};mn.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+pd(e)+'"'};function Het(t,e,r,s,i){let n=this.extractAttributes(t);if(s.push(e,n),this.checkStopNode(s)){let c=this.buildRawContent(t),l=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(c,e,l,r)}let a=this.j2x(t,r+1,s,i);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,s):this.buildObjectNode(a.val,e,a.attrStr,r)}mn.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i))continue;let n=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[n]=pd(s[i]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=this.isAttribute(s);i&&(e[i]=pd(t[s]),r=!0)}return r?e:null};mn.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let s=t[r];if(r===this.options.textNodeName)e+=s;else if(Array.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(Sn,"Builder");function CLe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(CLe,"detectXmlVersionFromObj");function Ck(t,e,r,n,s){return!r.sanitizeName||fu(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(Ck,"resolveTagName");Sn.prototype.build=function(t){if(this.options.preserveOrder)return gk(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new lo,r=CLe(t,this.options);return this.j2x(t,0,e,r).val}};Sn.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l))continue;let d=l===this.options.textNodeName||l===this.options.cdataPropName||l===this.options.commentPropName||this.options.attributesGroupName&&l===this.options.attributesGroupName||this.isAttribute(l)||l[0]==="?"?l:Ck(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=Ck(A,!0,this.options,r,n);s+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let h=0;h<A;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,n);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let h=Ck(A[f],!0,this.options,r,n);s+=this.buildAttrPairStr(h,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:s,val:i}};Sn.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+Lc(e)+'"'};function ILe(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}o(ILe,"processTextOrObjNode");Sn.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=Lc(n[s]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=Lc(t[n]),r=!0)}return r?e:null};Sn.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.o Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(qe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===qe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE));r.sort((i,n)=>Gv(i.name.toLowerCase(),n.name.toLowerCase())),r=r.filter((i,n,o)=>!(n>0&&i.name.toLowerCase()===o[n-1].name.toLowerCase()));let s="";return r.forEach(i=>{s+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=Fv(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let i=Uv(e.url),n={};if(i){let o=[];for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let c=a.toLowerCase();n[c]=i[a],o.push(c)}o.sort();for(let a of o)s+=`
${a}:${decodeURIComponent(n[a])}`}return s}};var yr=class extends hp{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new d0(e,r,this)}computeHMACSHA256(e){return(0,vfe.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var is=Oc("storage-common");var $o;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})($o||($o={}));var md={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:$o.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Xet=new Xn("The operation was aborted."),f0=class extends Fc{retryOptions;constructor(e,r,s=md){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:md.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):md.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:md.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:md.maxRetryDelayInMs):md.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:md.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:md.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let i=e.clone(),n=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;n||(i.url=Lv(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=Ad(i.url,Iu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(is.info(`RetryPolicy: =====> Try=${s} ${n?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(i),!this.shouldRetry(n,s,o))return o;r=r||!n&&o.status===404}catch(a){if(is.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(n,s,o,a))throw a}return await this.delay(n,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,i){if(r>=this.retryOptions.maxTries)return is.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let n=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let o of n)if(i.name.toUpperCase().includes(o)||i.message.toUpperCase().includes(o)||i.code&&i.code.toString().toUpperCase()===o)return is.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(s||i){let o=s?s.status:i?i.statusCode:0;if(!e&&o===404)return is.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return is.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(s&&s?.status>=400){let o=s.headers.get(qe.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(is.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case $o.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case $o.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return is.info(`RetryPolicy: Delay for ${i}ms`),qv(i,s,Xet)}};var p0=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new f0(e,r,this.retryOptions)}};var Zet="storageBrowserPolicy";function Rfe(){return{name:Zet,async sendRequest(t,e){return xt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ad(t.url,Iu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(qe.COOKIE),t.headers.delete(qe.CONTENT_LENGTH)),e(t)}}}var ett="StorageCorrectContentLengthPolicy";function Tfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(qe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:ett,async sendRequest(e,r){return t(e),r(e)}}}var ttt="storageRetryPolicy",Ig={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:$o.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rtt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],stt=new Xn("The operation was aborted.");function _fe(t={}){let e=t.retryPolicyType??Ig.retryPolicyType,r=t.maxTries??Ig.maxTries,s=t.retryDelayInMs??Ig.retryDelayInMs,i=t.maxRetryDelayInMs??Ig.maxRetryDelayInMs,n=t.secondaryHost??Ig.secondaryHost,o=t.tryTimeoutInMs??Ig.tryTimeoutInMs;function a({isPrimaryRetry:l,attempt:u,response:h,error:d}){if(u>=r)return is.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let f of rtt)if(d.name.toUpperCase().includes(f)||d.message.toUpperCase().includes(f)||d.code&&d.code.toString().toUpperCase()===f)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ae.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ae.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE));r.sort((s,i)=>KB(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,a)=>!(i>0&&s.name.toLowerCase()===a[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=YB(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=WB(e.url),i={};if(s){let a=[];for(let c in s)if(Object.prototype.hasOwnProperty.call(s,c)){let l=c.toLowerCase();i[l]=s[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(i[c])}`}return n}};var xt=class extends gu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Hm(e,r,this)}computeHMACSHA256(e){return(0,UZ.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var rr=io("storage-common");var Os;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Os||(Os={}));var Uc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Os.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},TLe=new is("The operation was aborted."),Vm=class extends uo{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Uc){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Uc.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Uc.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Uc.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Uc.maxRetryDelayInMs):Uc.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Uc.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Uc.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=JB(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Fc(s.url,Ta.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(rr.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,a))return a;r=r||!i&&a.status===404}catch(c){if(rr.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,n,a,c))throw c}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return rr.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let a of i)if(s.name.toUpperCase().includes(a)||s.message.toUpperCase().includes(a)||s.code&&s.code.toString().toUpperCase()===a)return rr.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||s){let a=n?n.status:s?s.statusCode:0;if(!e&&a===404)return rr.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return rr.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(ae.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(rr.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Os.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Os.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return rr.info(`RetryPolicy: Delay for ${s}ms`),jB(s,n,TLe)}};var zm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Vm(e,r,this.retryOptions)}};var vLe="storageBrowserPolicy";function qZ(){return{name:vLe,async sendRequest(t,e){return Fe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Fc(t.url,Ta.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ae.COOKIE),t.headers.delete(ae.CONTENT_LENGTH)),e(t)}}}o(qZ,"storageBrowserPolicy");var _Le="StorageCorrectContentLengthPolicy";function GZ(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ae.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:_Le,async sendRequest(e,r){return t(e),r(e)}}}o(GZ,"storageCorrectContentLengthPolicy");var PLe="storageRetryPolicy",jA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Os.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},kLe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],DLe=new is("The operation was aborted.");function HZ(t={}){let e=t.retryPolicyType??jA.retryPolicyType,r=t.maxTries??jA.maxTries,n=t.retryDelayInMs??jA.retryDelayInMs,s=t.maxRetryDelayInMs??jA.maxRetryDelayInMs,i=t.secondaryHost??jA.secondaryHost,a=t.tryTimeoutInMs??jA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return rr.inf Line truncated
`)+`
`+s(n)+i(n),a=(0,Qfe.createHmac)("sha256",t.accountKey).update(o,"utf8").digest("base64");n.headers.set(qe.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(n,o){let a=n.headers.get(o);return!a||o===qe.CONTENT_LENGTH&&a==="0"?"":a}function s(n){let o=[];for(let[c,l]of n.headers)c.toLowerCase().startsWith(qe.PREFIX_FOR_STORAGE)&&o.push({name:c,value:l});o.sort((c,l)=>Gv(c.name.toLowerCase(),l.name.toLowerCase())),o=o.filter((c,l,u)=>!(l>0&&c.name.toLowerCase()===u[l-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function i(n){let o=Fv(n.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Uv(n.url),l={};if(c){let u=[];for(let h in c)if(Object.prototype.hasOwnProperty.call(c,h)){let d=h.toLowerCase();l[d]=c[h],u.push(d)}u.sort();for(let h of u)a+=`
${h}:${decodeURIComponent(l[h])}`}return a}return{name:itt,async sendRequest(n,o){return e(n),o(n)}}}var ntt="storageRequestFailureDetailsParserPolicy";function Pfe(){return{name:ntt,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}var Ofe=require("node:crypto"),Hv=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Ofe.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var zv="12.31.0",Vv="2026-02-06";var $v="https://storage.azure.com/.default",bu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ga="",zq="*",ott=1*1024*1024;var att=4*ott;var Dfe="AES256",kfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Mfe=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],Lfe=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],Ffe="BlobUsesCustomerSpecifiedEncryption",Ufe="BlobDoesNotUseCustomerSpecifiedEncryption",qfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function wu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var A0=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Or(t,e={}){t||(t=new or);let r=new A0([],e);return r._credential=t,r}function ctt(t){let e=[ltt,Gfe,utt,htt,dtt,ftt,Att];if(t.factories.length){let r=t.factories.filter(s=>!e.some(i=>i(s)));if(r.length){let s=r.some(i=>ptt(i));return{wrappedPolicies:Eq(r),afterRetry:s}}}}function Vq(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?Cq(e):Gq(),t._coreHttpClient=s);let i=t._corePipeline;if(!i){let n=`azsdk-js-azure-storage-blob/${zv}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;i=KI({...r,loggingOptions:{additionalAllowedHeaderNames:Mfe,additionalAllowedQueryParameters:Lfe,logger:Pv.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Qv,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Uq,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:YU}),i.addPolicy(Tfe()),i.addPolicy(_fe(r.retryOptions),{phase:"Retry"}),i.addPolicy(Pfe()),i.addPolicy(Rfe());let a=ctt(t);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=$q(t);Zn(c)?i.addPolicy(Ag({credential:c,scopes:r.audience??$v Line truncated
`),n=e.computeHMACSHA256(i);return{sasQueryParameters:new ja(t.version,n,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function lst(t,e){if(t=Cp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:n}}function ust(t,e){if(t=Cp(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:n}}function hst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:n}}function dst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:n}}function fst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:n}}function pst(t,e){if(t=Cp(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let i;t.permissions&&(t.blobName?i=rl.parse(t.permissions.toString()).toString():i=sl.parse(t.permissions.toString()).toString());let n=[i||"",t.startsOn?Nt(t.startsOn,!1):"",t.expiresOn?Nt(t.expiresOn,!1):"",Ep(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Nt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Nt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?$a(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(n);return{sasQueryParameters:new ja(t.version,o,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:n}}function Ep(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}function Cp(t){let e=t.version?t.version:Vv;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var N0=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=fg()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ga||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ga||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Se.withSpan("BlobLeaseClient-acquireLease",r,async s=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ga||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ga||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Se.withSpan("BlobLeaseClient-changeLease",r,async s=>{let i=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ga||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ga||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Se.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ga||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ga||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Se.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};Pg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sp=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Sp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var M0=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var hit=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Q8=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);pt(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function VAe(t,e,r){return hit(this,void 0,void 0,function*(){var s;let i=new Tu(t),n=i.getBlockBlobClient(),o=new Q8((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),H(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let c=yield n.uploadFile(e,a);if(c._response.status>=400)throw new WR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Zs(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}var jAe=O(require("buffer"),1),il=O(require("fs"),1),JAe=O(require("stream"),1),YAe=O(require("util"),1);var KR=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function XR(t){return t?t>=200&&t<300:!1}function dit(t){return t?t>=500:!0}function fit(t){return t?[mr.BadGateway,mr.ServiceUnavailable,mr.GatewayTimeout].includes(t):!1}function pit(t){return KR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function $Ae(t,e,r){return KR(this,arguments,void 0,function*(s,i,n,o=SN,a=BN,c=void 0){let l="",u=1;for(;u<=o;){let h,d,f=!1;try{h=yield i()}catch(p){c&&(h=c(p)),f=!0,l=p.message}if(h&&(d=n(h),!dit(d)))return h;if(d&&(f=fit(d),l=`Cache service responded with ${d}`),H(`${s} - Attempt ${u} of ${o} failed with error: ${l}`),!f){H(`${s} - Error is not retryable`);break}yield pit(a),u++}throw Error(`${s} failed: ${l}`)})}function L0(t,e){return KR(this,arguments,void 0,function*(r,s,i=SN,n=BN){return yield $Ae(r,s,o=>o.statusCode,i,n,o=>{if(o instanceof bc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Og(t,e){return KR(this,arguments,void 0,function*(r,s,i=SN,n=BN){return yield $Ae(r,s,o=>o.message.statusCode,i,n)})}var Ko=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})};function Ait(t,e){return Ko(this,void 0,void 0,function*(){yield YAe.promisify(JAe.pipeline)(t.message,e)})}var ZR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),s=Date.now()-this.startTime,i=(e/(1024*1024)/(s/1e3)).toFixed(1);pt(`Received ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer( Line truncated
Other caches with similar key:`);for(let a of n?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function k8(t,e,r){return yn(this,void 0,void 0,function*(){let s=new nme.URL(t),i=ZAe(r);s.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield KAe(t,e,i):i.concurrentBlobDownloads?yield WAe(t,e,i):yield eT(t,e):yield eT(t,e)})}function ame(t,e,r){return yn(this,void 0,void 0,function*(){let s=D8(),i=ng(e,r?.compressionMethod,r?.enableCrossOsArchive),n={key:t,version:i,cacheSize:r?.cacheSize};return yield L0("reserveCache",()=>yn(this,void 0,void 0,function*(){return s.postJson(U0("caches"),n)}))})}function ime(t,e){return`bytes ${t}-${e}/*`}function wit(t,e,r,s,i){return yn(this,void 0,void 0,function*(){H(`Uploading chunk of size ${i-s+1} bytes at offset ${s} with content range: ${ime(s,i)}`);let n={"Content-Type":"application/octet-stream","Content-Range":ime(s,i)},o=yield Og(`uploadChunk (start: ${s}, end: ${i})`,()=>yn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),n)}));if(!XR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Sit(t,e,r,s){return yn(this,void 0,void 0,function*(){let i=Tc(r),n=U0(`caches/${e.toString()}`),o=Dg.openSync(r,"r"),a=P8(s),c=uU("uploadConcurrency",a.uploadConcurrency),l=uU("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let h=0;try{yield Promise.all(u.map(()=>yn(this,void 0,void 0,function*(){for(;h<i;){let d=Math.min(i-h,l),f=h,p=h+d-1;h+=l,yield wit(t,n,()=>Dg.createReadStream(r,{fd:o,start:f,end:p,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),f,p)}})))}finally{Dg.closeSync(o)}})}function Bit(t,e,r){return yn(this,void 0,void 0,function*(){let s={size:r};return yield L0("commitCache",()=>yn(this,void 0,void 0,function*(){return t.postJson(U0(`caches/${e.toString()}`),s)}))})}function M8(t,e,r,s){return yn(this,void 0,void 0,function*(){if(P8(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield VAe(r,e,s)}else{let n=D8();H("Upload cache"),yield Sit(n,t,e,s),H("Commiting cache");let o=Tc(e);pt(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Bit(n,t,o);if(!XR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);pt("Cache saved successfully")}})}var tge=O(Jme(),1),Mr=O(kr(),1),io=O(kr(),1),Rp=O(kr(),1),Tp=O(kr(),1),_p=O(kr(),1);var _z=O(kr(),1),Qz=O(kr(),1),Xme=O(kr(),1),Zme=O(kr(),1),ege=O(kr(),1);var vz=O(kr(),1),Rz=O(kr(),1),Yme=O(kr(),1),Wme=O(kr(),1),Kme=O(kr(),1),Tz=class extends Kme.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Wme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Yme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.scope=e.string();break;case 2:n.permission=e.int64().toString();break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?Rz.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,vz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,vz.WireType.Varint).int64(e.permission);let i=s.writeUnknownFields;return i!==!1&&(i==!0?Rz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},qT=new Tz;var Pz=class extends ege.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>qT}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Zme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Xme.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,i){let n=i??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:n.repositoryId=e.int64().toString();break;case 2:n.scope.push(qT.internalBinaryRead(e,e.uint32(),s));break;default:let l=s.readUnknownField;if(l==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);l!==!1&&(l===!0?Qz.UnknownFieldHandler.onRead:l)(this.typeName,n,a,c,u)}}return n}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,_z.WireType.Varint).int64(e.repositoryId);for(let n=0;n<e.scope.length;n++)qT.internalBinaryWrite(e.scope[n],r.tag(2,_z.WireType.LengthDelimited).fork(),s).join();let i=s.writeUnknownFields;return i!==!1&&(i==!0?Qz.UnknownFieldHandler.onWrite:i)(this.ty Line truncated
`));let s=yield Jz(r,"create");yield Yz(s,t)})}var Xg=function(t,e,r,s){function i(n){return n instanceof r?n:new r(function(o){o(n)})}return new(r||(r=Promise))(function(n,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?n(u.value):i(u.value).then(a,c)}l((s=s.apply(t,e||[])).next())})},Wa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Kg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},VT=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function nge(t){if(!t||t.length===0)throw new Wa("Path Validation Error: At least one directory or file path is required")}function Xz(t){if(t.length>512)throw new Wa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Wa(`Key Validation Error: ${t} cannot contain commas.`)}function Zz(){return F0()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function oge(t,e,r,s){return Xg(this,arguments,void 0,function*(i,n,o,a,c=!1){let l=F0();return H(`Cache service version: ${l}`),nge(i),l==="v2"?yield Uot(i,n,o,a,c):yield Fot(i,n,o,a,c)})}function Fot(t,e,r,s){return Xg(this,arguments,void 0,function*(i,n,o,a,c=!1){o=o||[];let l=[n,...o];if(H("Resolved Keys:"),H(JSON.stringify(l)),l.length>10)throw new Wa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of l)Xz(d);let u=yield FI(),h="";try{let d=yield ome(l,i,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return pt("Lookup only - skipping download"),d.cacheKey;h=rb.join(yield MI(),cd(u)),H(`Archive Path: ${h}`),yield k8(d.archiveLocation,h,a),Oo()&&(yield tb(h,u));let f=Tc(h);return pt(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield Wz(h,u),pt("Cache restored successfully"),d.cacheKey}catch(d){let f=d;if(f.name===Wa.name)throw d;f instanceof bc&&typeof f.statusCode=="number"&&f.statusCode>=500?fI(`Failed to restore: ${d.message}`):Zs(`Failed to restore: ${d.message}`)}finally{try{yield LI(h)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function Uot(t,e,r,s){return Xg(this,arguments,void 0,function*(i,n,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let l=[n,...o];if(H("Resolved Keys:"),H(JSON.stringify(l)),l.length>10)throw new Wa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of l)Xz(h);let u="";try{let h=jz(),d=yield FI(),f={key:n,restoreKeys:o,version:ng(i,d,c)},p=yield h.GetCacheEntryDownloadURL(f);if(!p.ok){H(`Cache not found for version ${f.version} of keys: ${l.join(", ")}`);return}if(f.key!==p.matchedKey?pt(`Cache hit for restore-key: ${p.matchedKey}`):pt(`Cache hit for: ${p.matchedKey}`),a?.lookupOnly)return pt("Lookup only - skipping download"),p.matchedKey;u=rb.join(yield MI(),cd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield k8(p.signedDownloadUrl,u,a);let E=Tc(u);return pt(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Oo()&&(yield tb(u,d)),yield Wz(u,d),pt("Cache restored successfully"),p.matchedKey}catch(h){let d=h;if(d.name===Wa.name)throw h;d instanceof bc&&typeof d.statusCode=="number"&&d.statusCode>=500?fI(`Failed to restore: ${h.message}`):Zs(`Failed to restore: ${h.message}`)}finally{try{u&&(yield LI(u))}catch(h){H(`Failed to delete archive: ${h}`)}}})}function eV(t,e,r){return Xg(this,arguments,void 0,function*(s,i,n,o=!1){let a=F0();return H(`Cache service version: ${a}`),nge(s),Xz(i),a==="v2"?yield Got(s,i,n,o):yield qot(s,i,n,o)})}function qot(t,e,r){return Xg(this,arguments,void 0,function*(s,i,n,o=!1){var a,c,l,u,h;let d=yield FI(),f=-1,p=yield lU(s);if(H("Cache Paths:"),H(`${JSON.stringify(p)}`),p.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let m=yield MI(),E=rb.join(m,cd(d));H(`Archive Path: ${E}`);try{yield Kz(m,p,d),Oo()&&(yield tb(E,d));let y=10*1024*1024*1024,C=Tc(E);if(H(`File Size: ${C}`),C>y&&!O8())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let w=yield ame(i,s,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=w?.result)===null||a===void 0)&&a.cacheId)f=(c=w?.result)===null||c===void 0?void 0:c.cacheId;else throw w?.statusCode===400?new Error((u=(l=w?.error)===null||l===void 0?void 0:l.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Kg(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(h=w?.error)===null||h===void 0?void 0:h.message}`);H(`Saving Cache (ID: ${f})`),yield M8(f,E,"",n)}catch(y){let C=y;if(C.name===Wa.name)throw y;C.name== Line truncated
`,o).length:h,l?(a===null?0:a.length)+c.length:0,l?c.length+h:0);return d<f},parse:function(s,i,n,o){let{bom:a,comment_no_infix:c,encoding:l,from_line:u,ltrim:h,max_record_size:d,raw:f,relax_quotes:p,rtrim:m,skip_empty_lines:E,to:y,to_line:C}=this.options,{comment:w,escape:B,quote:N,record_delimiter:P}=this.options,{bomSkipped:Q,previousBuf:k,rawBuffer:G,escapeIsQuote:ee}=this.state,L;if(k===void 0)if(s===void 0){o();return}else L=s;else k!==void 0&&s===void 0?L=k:L=Buffer.concat([k,s]);if(Q===!1)if(a===!1)this.state.bomSkipped=!0;else if(L.length<3){if(i===!1){this.state.previousBuf=L;return}}else{for(let $ in fy)if(fy[$].compare(L,0,fy[$].length)===0){let se=fy[$].length;this.state.bufBytesStart+=se,L=L.slice(se);let Qe=b3({...this.original_options,encoding:$});for(let we in Qe)this.options[we]=Qe[we];({comment:w,escape:B,quote:N}=this.options);break}this.state.bomSkipped=!0}let F=L.length,q;for(q=0;q<F&&!this.__needMoreData(q,F,i);q++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),C!==-1&&this.info.lines>C){this.state.stop=!0,o();return}this.state.quoting===!1&&P.length===0&&this.__autoDiscoverRecordDelimiter(L,q)&&(P=this.options.record_delimiter);let $=L[q];if(f===!0&&G.append($),($===dft||$===fft)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(B!==null&&this.state.quoting===!0&&this.__isEscape(L,q,$)&&q+B.length<F)if(ee){if(this.__isQuote(L,q+B.length)){this.state.escaping=!0,q+=B.length-1;continue}}else{this.state.escaping=!0,q+=B.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(L,q))if(this.state.quoting===!0){let we=L[q+N.length],le=m&&this.__isCharTrimable(L,q+N.length),ct=w!==null&&this.__compareBytes(w,L,q+N.length,we),et=this.__isDelimiter(L,q+N.length,we),It=P.length===0?this.__autoDiscoverRecordDelimiter(L,q+N.length):this.__isRecordDelimiter(we,L,q+N.length);if(B!==null&&this.__isEscape(L,q,$)&&this.__isQuote(L,q+B.length))q+=B.length-1;else if(!we||et||It||ct||le){this.state.quoting=!1,this.state.wasQuoting=!0,q+=N.length-1;continue}else if(p===!1){let De=this.__error(new yt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(we)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(De!==void 0)return De}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),q+=N.length-1}else if(this.state.field.length!==0){if(p===!1){let we=this.__infoField(),le=Object.keys(fy).map(et=>fy[et].equals(this.state.field.toString())?et:!1).filter(Boolean)[0],ct=this.__error(new yt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(we.column)} at line ${we.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,le?`(${le} bom)`:void 0],this.options,we,{field:this.state.field}));if(ct!==void 0)return ct}}else{this.state.quoting=!0,q+=N.length-1;continue}if(this.state.quoting===!1){let we=this.__isRecordDelimiter($,L,q);if(we!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=u){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),q+=we-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,q+=we-1;continue}this.info.bytes=this.state.bufBytesStart+q;let et=this.__onField();if(et!==void 0)return et;this.info.bytes=this.state.bufBytesStart+q+we;let It=this.__onRecord(n);if(It!==void 0)return It;if(y!==-1&&this.info.records>=y){this.state.stop=!0,o();return}}this.state.commenting=!1,q+=we-1;continue}if(this.state.commenting)continue;if(w!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,L,q,$)!==0){this.state.commenting=!0;continue}let le=this.__isDelimiter(L,q,$);if(le!==0){this.info.bytes=this.state.bufBytesStart+q;let ct=this.__onField();if(ct!==void 0)return ct;q+=le-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new yt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let se=h===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(L,q),Qe=m===!1||this.state.wasQuoting===!1;if(se===!0&&Qe===!0)this.state.field.append($);else{if(m===!0&&!this.__isCharTrimable(L,q))return this.__error(new yt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));se===!1&&(q+=this.__isCharTrimable(L,q)-1);continue}}if(i===!0)if(this.state.quoting===! Line truncated
`,n),Buffer.from(`
`,n),Buffer.from("\r",n)];e:for(let a=0;a<o.length;a++){let c=o[a].length;for(let l=0;l<c;l++)if(o[a][l]!==s[i+l])continue e;return this.options.record_delimiter.push(o[a]),this.state.recordDelimiterMaxLength=o[a].length,o[a].length}return 0},__error:function(s){let{encoding:i,raw:n,skip_records_with_error:o}=this.options,a=typeof s=="string"?new Error(s):s;if(o){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(a,n?this.state.rawBuffer.toString(i):void 0)}catch(c){return c}return}else return a},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){let{columns:s,raw:i,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(n):void 0}},__infoField:function(){let{columns:s}=this.options,i=Array.isArray(s),n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:i===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};var uo=function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=AIe(e),i=a=>{s.options.objname===void 0?r.push(a):r[a[0]]=a[1]},n=()=>{},o=s.parse(t,!0,i,n);if(o!==void 0)throw o;return r};var wt=class t{static getInputList(e,r){return this.getList(Jm(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let i=uo(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let n of i)n.length==1?r?.ignoreComma?s.push(n[0]):s.push(...n[0].split(",")):r?.ignoreComma?s.push(n.join(",")):s.push(...n);return s.filter(n=>n).map(n=>r?.trimWhitespace===!1?n:n.trim())}static getInputNumber(e){let r=Jm(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let s=await Ls("powershell",!0),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=[];if(r)for(let o in r)n.push(`-${o} '${r[o].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${i}' ${n.join(" ")}`]}}static isDirectory(e){try{return mIe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return w3.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+s[i]}static generateRandomString(e=10){return w3.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return gIe.default.compile(e,r)(s)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let s=bb.default.resolve(e);return bb.default.resolve(r).startsWith(s.endsWith(bb.default.sep)?s:`${s}${bb.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),i=Math.floor(r%3600/60),n=r%60,o=[];return s&&o.push(`${s}h`),i&&o.push(`${i}m`),(n||o.length===0)&&o.push(`${n}s`),o.join("")}};var tr=class t{static get configDir(){return process.env.DOCKER_CONFIG||wb.default.join(yIe.default.homedir(),".docker")}static configFile(){let e=wb.default.join(t.configDir,"config.json");if(S3.default.existsSync(e))return JSON.parse(S3.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Ls("docker",!0).then(e=>(V(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(V(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}static async exec(e,r){return Re.exec("docker",e,t.execOptions(r))}static async getExecOutput(e,r){return Re.getExecOutput("docker",e,t.execOptions(r))}static execOptions(e){return e||(e={}),e. Line truncated
`+n(i)+s(i),c=(0,VZ.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(ae.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===ae.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(ae.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>KB(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function s(i){let a=YB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=WB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
${A}:${decodeURIComponent(u[A])}`}return c}return o(s,"getCanonicalizedResourceString"),{name:OLe,async sendRequest(i,a){return e(i),a(i)}}}o(Sk,"storageSharedKeyCredentialPolicy");var MLe="storageRequestFailureDetailsParserPolicy";function zZ(){return{name:MLe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}o(zZ,"storageRequestFailureDetailsParserPolicy");var $Z=require("node:crypto");var XB=class{static{o(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,$Z.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var ZB="12.31.0",eb="2026-02-06";var tb="https://storage.azure.com/.default",va={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ii="",Nk="*",LLe=1*1024*1024;var FLe=4*LLe;var JZ="AES256",YZ="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",WZ=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"],jZ=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"],KZ="BlobUsesCustomerSpecifiedEncryption",XZ="BlobDoesNotUseCustomerSpecifiedEncryption",ZZ=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _a(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}o(_a,"isPipelineLike");var $m=class{static{o(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Ut(t,e={}){t||(t=new ht);let r=new $m([],e);return r._credential=t,r}o(Ut,"newPipeline");function ULe(t){let e=[qLe,e7,GLe,HLe,VLe,zLe,JLe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>$Le(s));return{wrappedPolicies:tk(r),afterRetry:n}}}}o(ULe,"processDownlevelPipeline");function xk(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?rk(e):wk(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${ZB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Qm({...r,loggingOptions:{additionalAllowedHeaderNames:WZ,additionalAllowedQueryParameters:jZ,logger:GB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:qB,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:Bk,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:vP}),s.addPolicy(GZ()),s.addPolicy(HZ(r.retryOptions),{phase:"Retry"}),s.addPo Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ni(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(UFe,"generateBlobSASQueryParameters20150405");function qFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}o(qFe,"generateBlobSASQueryParameters20181109");function GFe(t,e){if(t=Nu(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(GFe,"generateBlobSASQueryParameters20201206");function HFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}o(HFe,"generateBlobSASQueryParametersUDK20181109");function VFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(VFe,"generateBlobSASQueryParametersUDK20200210");function zFe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(zFe,"generateBlobSASQueryParametersUDK20201206");function $Fe(t,e){if(t=Nu(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=Qo.parse(t.permissions.toString()).toString():s=Ro.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ue(t.startsOn,!1):"",t.expiresOn?Ue(t.expiresOn,!1):"",Su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ue(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ue(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Si(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new Ni(t.version,a,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o($Fe,"generateBlobSASQueryParametersUDK20250705");function Su(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(Su,"getCanonicalName");function Nu(t){let e=t.version?t.version:eb;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}o(Nu,"SASSignatureValuesSanityCheckAndAutofill");var sg=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=GA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ii||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ii||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-acquireLease",r,async n=>K(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ii||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ii||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=K(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ii||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ii||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return z.withSpan("BlobLeaseClient-releaseLease",e,async r=>K(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ii||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ii||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values ar Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};cp.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Tu=class extends Error{static{o(this,"UsageError")}constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};Tu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var fg=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var HUe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},fL=class{static{o(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=o(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function nte(t,e,r){return HUe(this,void 0,void 0,function*(){var n;let s=new Fa(t),i=s.getBlockBlobClient(),a=new fL((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),B(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new iw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(nte,"uploadCacheArchiveSDK");var ite=w(require("buffer"),1),To=w(require("fs"),1),ote=w(require("stream"),1),ate=w(require("util"),1);var ow=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function aw(t){return t?t>=200&&t<300:!1}o(aw,"isSuccessStatusCode");function VUe(t){return t?t>=500:!0}o(VUe,"isServerErrorStatusCode");function zUe(t){return t?[Nt.BadGateway,Nt.ServiceUnavailable,Nt.GatewayTimeout].includes(t):!1}o(zUe,"isRetryableStatusCode");function $Ue(t){return ow(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o($Ue,"sleep");function ste(t,e,r){return ow(this,arguments,void 0,function*(n,s,i,a=TI,c=vI,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield s()}catch(h){l&&(A=l(h)),f=!0,u=h.message}if(A&&(p=i(A),!VUe(p)))return A;if(p&&(f=zUe(p),u=`Cache service responded with ${p}`),B(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${n} - Error is not retryable`);break}yield $Ue(c),d++}throw Error(`${n} failed: ${u}`)})}o(ste,"retry");function hg(t,e){return ow(this,arguments,void 0,function*(r,n,s=TI,i=vI){return yield ste(r,n,a=>a.statusCode,s,i,a=>{if(a instanceof to)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(hg,"retryTypedResponse");function lp(t,e){return ow(this,arguments,void 0,function*(r,n,s=TI,i=vI){return yield ste(r,n,a=>a.message.statusCode,s,i)})}o(lp,"retryHttpClientResponse");var qs=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function JUe(t,e){return qs(this,void 0,void 0,function*(){yield ate.promisify(ote.pipeline)(t.message,e)})}o(JUe,"pipeResponseToStream");var cw=class{static{o(this,"DownloadProgress")}constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,B(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])B(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(e2e,"printCachesListForDiagnostics");function yL(t,e,r){return xn(this,void 0,void 0,function*(){let n=new Cte.URL(t),s=dte(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield lte(t,e,s):s.concurrentBlobDownloads?yield cte(t,e,s):yield lw(t,e):yield lw(t,e)})}o(yL,"downloadCache");function Bte(t,e,r){return xn(this,void 0,void 0,function*(){let n=EL(),s=PA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield hg("reserveCache",()=>xn(this,void 0,void 0,function*(){return n.postJson(gg("caches"),i)}))})}o(Bte,"reserveCache");function yte(t,e){return`bytes ${t}-${e}/*`}o(yte,"getContentRange");function t2e(t,e,r,n,s){return xn(this,void 0,void 0,function*(){B(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${yte(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":yte(n,s)},a=yield lp(`uploadChunk (start: ${n}, end: ${s})`,()=>xn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!aw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(t2e,"uploadChunk");function r2e(t,e,r,n){return xn(this,void 0,void 0,function*(){let s=eo(r),i=gg(`caches/${e.toString()}`),a=up.openSync(r,"r"),c=hL(n),l=V_("uploadConcurrency",c.uploadConcurrency),u=V_("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>xn(this,void 0,void 0,function*(){for(;A<s;){let p=Math.min(s-A,u),f=A,h=A+p-1;A+=u,yield t2e(t,i,()=>up.createReadStream(r,{fd:a,start:f,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,h)}})))}finally{up.closeSync(a)}})}o(r2e,"uploadFile");function n2e(t,e,r){return xn(this,void 0,void 0,function*(){let n={size:r};return yield hg("commitCache",()=>xn(this,void 0,void 0,function*(){return t.postJson(gg(`caches/${e.toString()}`),n)}))})}o(n2e,"commitCache");function CL(t,e,r,n){return xn(this,void 0,void 0,function*(){if(hL(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield nte(r,e,n)}else{let i=EL();B("Upload cache"),yield r2e(i,t,e,n),B("Commiting cache");let a=eo(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield n2e(i,t,a);if(!aw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(CL,"saveCache");var mre=w(lre(),1),Ht=w(Gt(),1),ds=w(Gt(),1),Du=w(Gt(),1),Ou=w(Gt(),1),Mu=w(Gt(),1);var f1=w(Gt(),1),h1=w(Gt(),1),pre=w(Gt(),1),fre=w(Gt(),1),hre=w(Gt(),1);var d1=w(Gt(),1),A1=w(Gt(),1),ure=w(Gt(),1),dre=w(Gt(),1),Are=w(Gt(),1);var p1=class extends Are.MessageType{static{o(this,"CacheScope$Type")}constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,dre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ure.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?A1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,d1.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,d1.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?A1.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},jw=new p1;var m1=class extends hre.MessageType{static{o(this,"CacheMetadata$Type")}constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:o(()=>jw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,fre.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,pre.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(jw.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?h1.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield v1(r,"create");yield _1(n,t)})}o(k1,"createTar");var Np=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Ri=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Lu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},D1="cache write denied:",e0=class t extends Lu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Cre=_I,t0=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},r0=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ire(t){if(!t||t.length===0)throw new Ri("Path Validation Error: At least one directory or file path is required")}o(Ire,"checkPaths");function O1(t){if(t.length>512)throw new Ri(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ri(`Key Validation Error: ${t} cannot contain commas.`)}o(O1,"checkKey");function M1(){return mg()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(M1,"isFeatureAvailable");function Bre(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){let u=mg();B(`Cache service version: ${u}`),Ire(s);let d=gL();if(!pte(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield EGe(s,i,a,c,l):yield gGe(s,i,a,c,l)})}o(Bre,"restoreCache");function gGe(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Ri("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)O1(f);let A=yield hm(),p="";try{let f;try{f=yield Ite(d,s,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(Cre)?new t0(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=Pg.join(yield pm(),vc(A)),B(`Archive Path: ${p}`),yield yL(f.archiveLocation,p,c),Ia()&&(yield _g(p,A));let h=eo(p);return S(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield P1(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let h=f;if(h.name===Ri.name)throw f;h instanceof to&&typeof h.statusCode=="number"&&h.statusCode>=500?BA(`Failed to restore: ${f.message}`):Je(`Failed to restore: ${f.message}`)}finally{try{yield fm(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(gGe,"restoreCacheV1");function EGe(t,e,r,n){return Np(this,arguments,void 0,function*(s,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new Ri("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)O1(p);let A="";try{let p=T1(),f=yield hm(),h={key:i,restoreKeys:a,version:PA(s,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Cre)?new t0(I):C}if(!g.ok){B(`Cache not found for version ${h.version} of keys: ${d.join(", ")}`);return}if(h.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=Pg.join(yield pm(),vc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield yL(g.signedDownloadUrl,A,c);let E=eo(A);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ia()&&(yield _g(A,f)),yield P1(A,f),S("Cache restored successfully"),g.matchedKey}catch(p){let f=p;if(f.name===Ri.name)throw p;f instanceof to&&typeof f.statusCode=="number"&&f.statusCode>=500?BA(`Failed to restore: ${p.message}`):Je(`Failed to restore: ${p.message}`)}finally{try{A&&(yield fm(A))}catch(p){B(`Failed to delete archive: ${p}`)}}})}o(EGe,"restoreCacheV2");function L1(t,e,r){return Np(this,arguments,void 0,function*(n,s,i,a=!1){let c=mg();B(`Cache service version: ${c}`),Ire(n),O1(s);let l=gL();return fte(l)?c==="v2"?yield CGe(n,s,i,a):yield yGe(n,s,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),B(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}o(L1,"saveCache");function yGe(t,e,r){return Np(this,arguments,void Line truncated
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(n,s,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:h,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:b,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:ce,delimiterDiscovered:Me,delimiterBufPrevious:qe,rawBuffer:Ye,escapeIsQuote:Ce}=this.state;if(!Me&&u){let Ge;if(qe===void 0?Ge=n:qe!==void 0&&n===void 0?Ge=qe:Ge=Buffer.concat([qe,n]),n=void 0,s||Ge.length>u.size)this.options.delimiter=[Buffer.from(Ooe(Ge,this.options.delimiter_auto))],this.state.previousBuf=Ge,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ge;return}}let{previousBuf:tt}=this.state,de;if(tt===void 0)if(n===void 0){a();return}else de=n;else tt!==void 0&&n===void 0?de=tt:de=Buffer.concat([tt,n]);if(ce===!1)if(c===!1)this.state.bomSkipped=!0;else if(de.length<3){if(s===!1){this.state.previousBuf=de;return}}else{for(let Ge in Gp)if(Gp[Ge].compare(de,0,Gp[Ge].length)===0){let Oi=Gp[Ge].length;this.state.bufBytesStart+=Oi,de=de.slice(Oi);let nc=qp({...this.original_options,encoding:Ge});for(let bt in nc)this.options[bt]=nc[bt];({comment:b,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let Gr=de.length,$;for($=0;$<Gr&&!this.__needMoreData($,Gr,s);$++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),I!==-1&&this.info.lines>I){this.state.stop=!0,a();return}this.state.quoting===!1&&D.length===0&&this.__autoDiscoverRecordDelimiter(de,$)&&(D=this.options.record_delimiter);let Ge=de[$];if(h===!0&&Ye.append(Ge),(Ge===zYe||Ge===$Ye)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(N!==null&&this.state.quoting===!0&&this.__isEscape(de,$,Ge)&&$+N.length<Gr)if(Ce){if(this.__isQuote(de,$+N.length)){this.state.escaping=!0,$+=N.length-1;continue}}else{this.state.escaping=!0,$+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(de,$))if(this.state.quoting===!0){let bt=de[$+Q.length],Mi=y&&this.__isCharTrimable(de,$+Q.length),Fn=b!==null&&this.__compareBytes(b,de,$+Q.length,bt),El=this.__isDelimiter(de,$+Q.length,bt),LE=D.length===0?this.__autoDiscoverRecordDelimiter(de,$+Q.length):this.__isRecordDelimiter(bt,de,$+Q.length);if(N!==null&&this.__isEscape(de,$,Ge)&&this.__isQuote(de,$+N.length))$+=N.length-1;else if(!bt||El||LE||Fn||Mi){this.state.quoting=!1,this.state.wasQuoting=!0,$+=Q.length-1;continue}else if(g===!1){let hG=this.__error(new Se("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(bt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(hG!==void 0)return hG}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),$+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let bt=this.__infoField(),Mi=Object.keys(Gp).map(El=>Gp[El].equals(this.state.field.toString())?El:!1).filter(Boolean)[0],Fn=this.__error(new Se("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(bt.column)} at line ${bt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Mi?`(${Mi} bom)`:void 0],this.options,bt,{field:this.state.field}));if(Fn!==void 0)return Fn}}else{this.state.quoting=!0,$+=Q.length-1;continue}if(this.state.quoting===!1){let bt=this.__isRecordDelimiter(Ge,de,$);if(bt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),$+=bt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,$+=bt-1;continue}this.info.bytes=this.state.bufBytesStart+$;let El=this.__onField();if(El!==void 0)return El;this.info.bytes=this.state.bufBytesStart+$+bt;let LE=this.__onRecord(i);if(LE!==void 0)return LE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,$+=bt-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,de,$,Ge)!==0){this.state.commenting=!0;continue}let Mi=this.__isDelimiter(de,$,Ge);if(Mi!==0){this.info.bytes=this.state.bufBytesStart+$;let Fn=this.__onField();if(Fn!==void 0)return Fn;$+=Mi-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Se("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Oi=p===!1||th Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var ms=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=rS(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var Oe=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Pr(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=ms(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Pr(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await Br("powershell",!0),s=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${s}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return Loe.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return aU.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return aU.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Foe.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=tE.default.resolve(e);return tE.default.resolve(r).startsWith(n.endsWith(tE.default.sep)?n:`${n}${tE.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var Ve=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||rE.default.join(Uoe.default.homedir(),".docker")}static configFile(){let e=rE.default.join(t.configDir,"config.json");if(cU.default.existsSync(e))return JSON.parse(cU.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Br("docker",!0).then(e=>(B(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(B(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0 Line truncated
${n}`)},"onRetry")})}static isPullTransientError(e){return/Client\.Timeout exceeded|TLS handshake timeout|i\/o timeout|context deadline exceeded|request canceled|connection reset by peer|connection refused|connection timed out|temporary failure|unexpected EOF|\bEOF\b|server misbehaving/i.test(e)||/\b(500|502|503|504)\b/.test(e)||/\b(service unavailable|bad gateway|gateway timeout|internal server error)\b/i.test(e)}};var qae=w(require("crypto"),1);var nS=require("fs"),Hoe=require("os");var Hp=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,nS.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,nS.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${Hoe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var AU=w(Yoe(),1),Woe=w(yA(),1);var i3e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(a){a(i)})}return o(s,"adopt"),new(r||(r=Promise))(function(i,a){function c(d){try{u(n.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):s(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function joe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(joe,"getAuthString");function Koe(t){return new AU.HttpClient().getAgent(t)}o(Koe,"getProxyAgent");function o3e(t){return new AU.HttpClient().getAgentDispatcher(t)}o(o3e,"getProxyAgentDispatcher");function Xoe(t){let e=o3e(t);return o((n,s)=>i3e(this,void 0,void 0,function*(){return(0,Woe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))}),"proxyFetch")}o(Xoe,"getProxyFetch");function Zoe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Zoe,"getApiBaseUrl");function pU(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}o(pU,"getUserAgentWithOrchestrationId");function Xc(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(Xc,"getUserAgent");function uS(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>uS.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}o(uS,"register");function eae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((i,a)=>Promise.resolve().then(s.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(n=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,s(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>s(c,a)),"hook")),t.registry[r].push({hook:n,orig:s})}o(eae,"addHook");function tae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(tae,"removeHook");var rae=Function.bind,nae=rae.bind(rae);function sae(t,e,r){let n=nae(tae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=nae(eae,null).apply(null,i)})}o(sae,"bindApi");function c3e(){let t=Symbol("Singular"),e={registry:{}},r=uS.bind(null,e,t);return sae(r,e,t),r}o(c3e,"Singular");function l3e(){let t={registry:{}},e=uS.bind(null, Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var opt=class extends Error{constructor(t,e,r){super(npt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},apt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],cpt=["query","method","url"],r0e=/\/api\/v3\/?$/;function lpt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(cpt.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(s).reduce((o,a)=>apt.includes(a)?(o[a]=s[a],o):(o.variables||(o.variables={}),o.variables[a]=s[a],o),{}),n=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return r0e.test(n)&&(i.url=n.replace(r0e,"/api/graphql")),t(i).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new opt(i,a,o.data)}return o.data.data})}function D3(t,e){let r=t.defaults(e);return Object.assign((i,n)=>lpt(r,i,n),{defaults:D3.bind(null,r),endpoint:r.endpoint})}var k7t=D3(Nb,{headers:{"user-agent":`octokit-graphql.js/${ipt} ${vd()}`},method:"POST",url:"/graphql"});function s0e(t){return D3(t,{method:"POST",url:"/graphql"})}var k3="(?:[a-zA-Z0-9_-]+)",i0e="\\.",n0e=new RegExp(`^${k3}${i0e}${k3}${i0e}${k3}$`),upt=n0e.test.bind(n0e);async function hpt(t){let e=upt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}function dpt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function fpt(t,e,r,s){let i=e.endpoint.merge(r,s);return i.headers.authorization=dpt(t),e(i)}var o0e=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(hpt.bind(null,e),{hook:fpt.bind(null,e)})};var M3="7.0.6";var a0e=()=>{},ppt=console.warn.bind(console),Apt=console.error.bind(console);function mpt(t={}){return typeof t.debug!="function"&&(t.debug=a0e),typeof t.info!="function"&&(t.info=a0e),typeof t.warn!="function"&&(t.warn=ppt),typeof t.error!="function"&&(t.error=Apt),t}var c0e=`octokit-core.js/${M3} ${vd()}`,sQ=class{static VERSION=M3;static defaults(e){return class extends this{constructor(...s){let i=s[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new DIe.Collection,s={baseUrl:Nb.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${c0e}`:c0e,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Nb.defaults(s),this.graphql=s0e(this.request).defaults(s),this.log=mpt(e.log),this.hook=r,e.authStrategy){let{authStrategy:n,...o}=e,a=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let n=o0e(e.auth);r.wrap("request",n.hook),this.auth=n}let i=this.constructor;for(let n=0;n<i.plugins.length;++n)Object.assign(this,i.plugins[n](this,e))}request;graphql;log;hook;auth};var L3="17.0.0";var gpt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],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}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria Line truncated
More info: ${c.url}`);let f=c.range&&c.range.length>0?c.range[0]?.start.line:void 0,p=!1;for(let m of o)if(m.remote||m.path.endsWith(l)&&m.content===u){a.push({title:h,message:d,file:m.path,startLine:f}),p=!0;break}p||V(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${l}: ${h}`)}return a}};var Td=class t{buildx;constructor(e){this.buildx=e?.buildx||new Ct}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),s=await Re.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(i=>i.stderr.length>0&&i.exitCode!=0?(V(`Builder.exists cmd err: ${i.stderr.trim()}`),!1):i.exitCode==0).catch(i=>(V(`Builder.exists error: ${i}`),!1));return V(`Builder.exists: ${s}`),s}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),s=["inspect"];e&&s.push(e);let i=await this.buildx.getCommand(s);return await Re.getExecOutput(i.command,i.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return t.parseInspect(n.stdout)})}static parseInspect(e){let r={nodes:[]},s,i={},n,o,a;for(let c of e.trim().split(`
`)){let[l,...u]=c.split(":"),h=l.toLowerCase(),d=u.map(f=>f.trim()).join(":");if(l.length!=0)switch(!0){case h=="name":s=void 0,r.name==null?r.name=d:(n&&i.gcPolicy&&(i.gcPolicy.push(n),n=void 0),i.name&&r.nodes.push(i),i={name:d});break;case h=="driver":s=void 0,r.driver=d;break;case h=="last activity":s=void 0,r.lastActivity=new Date(d);break;case h=="endpoint":s=void 0,i.endpoint=d;break;case h=="driver options":s=void 0,i["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case h=="status":s=void 0,i.status=d;break;case h=="buildkit daemon flags":case h=="flags":s=void 0,i["buildkitd-flags"]=d;break;case h=="buildkit version":case h=="buildkit":s=void 0,i.buildkit=d;break;case h=="platforms":{if(s=void 0,!d)break;let f=[];if(d.includes("*"))for(let p of d.split(", "))p.includes("*")&&f.push(p.replace(/\*/g,""));else f=d.split(", ");i.platforms=f.join(",");break}case h=="features":s="features",i.features={};break;case h=="labels":s="label",i.labels={};break;case h=="devices":s="devices",i.devices=i.devices||[];break;case h.startsWith("gc policy rule#"):s="gcpolicy",i.gcPolicy&&n&&(i.gcPolicy.push(n),n=void 0);break;case h.startsWith("file#"):s="file",a=l.split("#")[1],i.files=i.files||{},i.files[a]="";break;default:switch(s&&s!=="devices"&&i.devices&&o&&(i.devices.push(o),o=void 0),s||""){case"features":{i.features=i.features||{},i.features[l.trim()]=!!d;break}case"label":{i.labels=i.labels||{},i.labels[l.trim()]=d;break}case"devices":{switch(h.trim()){case"name":{i.devices&&o&&i.devices.push(o),o={},o.name=d;break}case"on-demand":{o&&d&&(o.onDemand=d=="true");break}case"automatically allowed":{o&&d&&(o.autoAllow=d=="true");break}case"annotations":{o&&(o.annotations=o.annotations||{});break}default:o&&o.annotations&&(o.annotations[l.trim()]=d)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],n=n||{},h.trim()){case"all":{n.all=d=="true";break}case"filters":{d&&(n.filter=d.split(","));break}case"keep duration":{n.keepDuration=d;break}case"keep bytes":{n.keepBytes=d;break}case"reserved space":{n.reservedSpace=d;break}case"max used space":{n.maxUsedSpace=d;break}case"min free space":{n.minFreeSpace=d;break}}break}case"file":{a&&i.files&&(i.files[a].length>0&&(i.files[a]+=`
`),i.files[a]+=c.replace(/^\s>\s?/,""));break}}}}return o&&i.devices&&i.devices.push(o),n&&i.gcPolicy&&i.gcPolicy.push(n),i.name&&r.nodes.push(i),r}};var Gp=O(require("fs"),1),Y3=O(require("path"),1);var aQ=class t{buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ct,this.iidFilename=`build-iidfile-${wt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${wt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},i=Object.entries(s).filter(([f])=>!r.has(f)),n=wt.parseBoolOrDefault(s["fetch-by-commit"]),o=e?.ref||s.ref||Fi.ref;o.startsWith("refs/")?o.startsWith("refs/pull/")&&wt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(o=o.replace(/\/merge$/g,"/head")):o=`refs/heads/${o}`;let a=`${kt.serverURL}/${Fi.repo.owner}/${Fi.repo.repo}.git`,c=e?.checksum||s.checksum,l=e?.subdir||s.subdir,u=e?.format;if(!u){if(u="fragment",i.length>0)u="query";else if(wt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(u="query")}catch{}}let h=Fi.sha||o;o.startsWith("refs/pull/")&&o.endsWith("/head")&&(h=typeof Fi.payload.pull_request?.head?.sha=="string"?Fi.payload.pull_request.head.sha:o);let d=c||h;if(u==="query"){let f=[`ref=${n||c?o:d}`],p=n?d:c;p&&f.push(`checksum=${p}`),l&&l!=="."&&f.push(`subdir=${l}`);for(let[m,E]of i)f.push(`${m}=${E}`);return`${a}?${f.join("&")}`}return`${a}#${d}${l&&l!=="."?`:${l}`:""}`}getImageIDFilePath(){return Y3.default.join(bt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Gp.default.existsSync(e))return Gp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return Y3.default.join(bt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Gp.default.existsSync(e))return;let r=Gp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,i]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Gp.default.existsSync(i))throw new Error(`secret file ${i} not found`);return[s,i]}let n=bt.tmpName({tmpdir:bt.tmpDir()});return Gp.default.writeFileSync(n,i),[s,n]}static getProvenanceInput(e){let r=Jm(e);if(!r)return r;try{return doe(e)?`builder-id=${kt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${kt.workflowRunURL(!0)}`;let r=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(n=>n.trim())[0]=="builder-id")return e;return`${e},builder-id=${kt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",i="",n="",o=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let a of o){let c=a.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());c[0]==="type"?s=c[1]:c[0]==="repository"?i=c[1]:c[0]==="ghtoken"&&(n=c[1])}return s==="gha"&&(i||(e=`${e},repository=${kt.repository}`),!n&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=uo(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0}return!1}static hasAttestationType(e,r){let s=uo(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of s)for(let[n,o]of i.map(a=>a.split("=").map(c=>c.trim())))if(n=="type"&&o==e)return!0;return!1}static resolveAttestationAttrs(e){let r=uo(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let i of r)for(let n of i)try{let o=wt.parseBool(n);s.push(`disabled=${!o}`)}catch{s.push(n)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),i=e.substring(0,s),n=e.substring(s+1);if(i.length==0||n.length==0)throw new Error(`${e} is not a valid secret`);return r&&pI(n),[i,n]}};var W3=O(require("fs"),1),y0e=O(require("path"),1);var cQ=class t{buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ct,this.metadataFilename=`bake-metadata-${wt.generateRandomString()}.json`}getMetadataFilePath(){return y0e.default.join(bt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!W3.default.existsSync(e))return;let r=W3.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let s=["bake"],i,n=[],o=[...e.files||[],e.source];if(o){for(let c of o.map(l=>l?l.trim():""))if(c.length!=0){if(!wt.isValidRef(c)){n.push(c);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=c}}i&&s.push(i);for(let c of n)s.push("--file",c);if(e.overrides)for(let c of e.overrides)s.push("--set",c);if(e.vars)for(let c of e.vars)s.push("--var",c);if(e.allow)for(let c of e.allow)s.push("--allow",c);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let a=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await Re.getExecOutput(a.command,a.args,r).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(`cannot parse bake definitions: ${c.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(c.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let i=r.target[s];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(n=>t.parseAttestEntry(n))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(n=>t.parseCacheEntry(n))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(n=>t.parseCacheEntry(n))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(n=>t.parseExportEntry(n))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(n=>t.parseSecretEntry(n))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(n=>t.parseSSHEntry(n)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());switch(n){case"type":r.type=o;break;case"disabled":r.disabled=wt.parseBool(o);break;default:r[n]=o}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&s[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of s){let[n,o]=i.toString().split(/(?<=^[^=]+?)=/).map(a=>a.trim());n==="type"?r.type=o:r[n]=o}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=uo(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let n of s){let[o,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(o){case"type":i=a;break;case"id":r.id=a;break;case"source":case"src":r.src=a;break;case"env":r.env=a;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[s,i]=e.split("=",2);return r.id=s,i&&(r.paths=i.split(", Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);V(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let i=s[1].trim();if(i.startsWith("tag: "))return`refs/tags/${i.split(":")[1].trim()}`;if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let o=i.match(/^[^/]+\/[^/]+, (.+)$/);if(o)return`refs/heads/${o[1].trim()}`;let a=i.match(/^[^/]+\/(.+)$/);if(a)return`refs/heads/${a[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Re.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let n=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return n?`refs/heads/${n[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[i]=s.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);if(i)return`refs/tags/${i}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var HPe=require("crypto"),$l=O(require("fs"),1),pf=O(require("path"),1);var bS=O(_b(),1),jl=O(T_e(),1),zPe=O(rW(),1),JE=O(kPe(),1);var tK=O(_b(),1);var LPe=O(Ka(),1);var MPe="application/vnd.oci.empty.v1+json";var Bh=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Re.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(V(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(V(`Cosign.isAvailable error: ${r}`),!1));return V(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Re.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Re.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return V("Cosign.versionSatisfies false: undefined version"),!1;let i=LPe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return V(`Cosign.versionSatisfies ${s} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,s,i,n;for(let o of e.split(/\r?\n/)){let a=o.trim();if(!a.startsWith("{")||!a.endsWith("}"))continue;let c;try{c=JSON.parse(a)}catch{continue}if(c&&Array.isArray(c.errors)&&c.errors.length>0&&(n=c.errors),!r&&c&&Array.isArray(c.manifests)&&c.manifests.length>0){let l=c.manifests[0];l?.artifactType===tK.BUNDLE_V03_MEDIA_TYPE&&typeof l.digest=="string"?r=l.digest:l?.artifactType===MPe&&typeof l.digest=="string"&&(s=l.digest)}if(!i&&c&&c.mediaType===tK.BUNDLE_V03_MEDIA_TYPE&&(i=c),i&&(r||s)){n=void 0;break}}return{bundle:i,signatureManifestDigest:r||s,errors:n}}};var rK=O(require("fs"),1);var TD=class t{buildx;constructor(e){this.buildx=e?.buildx||new Ct}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let s=r.manifests.filter(o=>o.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let i=e.platform,n=new Map;for(let o of r.manifests)o.digest&&n.set(o.digest,o);return s.filter(o=>{let a=o.annotations?.["vnd.docker.reference.digest"];if(!a)return!1;let c=n.get(a);return c?c.platform?.os===i.os&&c.platform?.architecture===i.architecture&&(c.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=bt.tmpName({tmpdir:bt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],n=[];for(let a of e.sources){if(a.startsWith("cwd://")){let c=a.substring(6);c.length>0&&i.push(c);continue}n.push(a)}if(e.tags)for(let a of e.tags)r.push("--tag",a);if(e.platforms)for(let a of e.platforms)r.push("--platform",a);if(e.annotations)for(let a of e.annotations)r.push("--annotation",a);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",s);for(let a of i)r.push("--file",a);for(let a of n)r.push(a);let o=await this.getCreateCommand(r);if(e.skipExec){J(`[command]${o.command} ${o.args.join(" ")}`),J("Skipped create command");return}return await Re.getExecOutput(o.command,o.args,{ignoreReturnCode:!0,silent:e.silent}).then(a=>{if(a.stderr.length>0&&a.exitCode!=0)throw new Error(a.stderr.trim());if(!e.dryRun){if(!rK.default.existsSync(s))return;let c=rK.default.readFileSync(s,{encoding:"utf-8"}).trim();if(c===""||c==="null")return;let l=JSON.parse(c),u=l["containerimage.descriptor"];return u?{digest:l["containerimage.digest"]||u.digest,descriptor:u,imageNames:l["image.name"]?l["image.name"].split(",").map(h=>h.trim()):[]}:void 0}})}async inspect(e,r,s){let i=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(i.command,i.args,s);let n=e.retryLimit??15,o;for(let a=0;a<n;a++)try{return await this.execInspect(i.command,i.args,s)}catch(c){if(o=c,!t.isManifestUnknown Line truncated
${o.message}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100))}throw o??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await Re.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return s(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown|not found: not found)/i.test(e)}};var FPe="application/vnd.in-toto+json";var UPe="https://fulcio.sigstore.dev",qPe="https://rekor.sigstore.dev",GPe="https://timestamp.sigstore.dev",qA="https://search.sigstore.dev";var bDt="slsaprovenance1",Af=class t{cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Bh,this.imageTools=e?.imageTools||new TD}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);J(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.noTransparencyLog(e.noTransparencyLog),n=[];await this.cosign.versionSatisfies(">=3.0.4")?await rd("Creating Sigstore protobuf signing config",async()=>{let o=bt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:bt.tmpDir()}),a=["signing-config","create","--with-default-services=true",`--out=${o}`];i&&a.push("--no-default-rekor=true"),await Re.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),J(JSON.stringify(JSON.parse($l.default.readFileSync(o,{encoding:"utf-8"})),null,2)),n.push(`--signing-config=${o}`)}):(n.push("--use-signing-config"),i&&n.push("--tlog-upload=false"));for(let o of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${o}@${c}`;await rd(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];J(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let h=await Re.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=Bh.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(d.errors&&d.errors.length>0){let p=d.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(`
`)}o(L3e,"_buildMessageForResponseErrors");var F3e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(L3e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},U3e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],q3e=["query","method","url"],Nae=/\/api\/v3\/?$/;function G3e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(q3e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>U3e.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Nae.test(i)&&(s.url=i.replace(Nae,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new F3e(s,c,a.data)}return a.data.data})}o(G3e,"graphql");function yU(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>G3e(r,s,i),"newApi"),{defaults:yU.bind(null,r),endpoint:r.endpoint})}o(yU,"withDefaults");var dkt=yU(oE,{headers:{"user-agent":`octokit-graphql.js/${M3e} ${Xc()}`},method:"POST",url:"/graphql"});function xae(t){return yU(t,{method:"POST",url:"/graphql"})}o(xae,"withCustomRequest");var CU="(?:[a-zA-Z0-9_-]+)",Qae="\\.",Rae=new RegExp(`^${CU}${Qae}${CU}${Qae}${CU}$`),H3e=Rae.test.bind(Rae);async function V3e(t){let e=H3e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(V3e,"auth");function z3e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(z3e,"withAuthorizationPrefix");async function $3e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=z3e(t),e(s)}o($3e,"hook");var Tae=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(V3e.bind(null,e),{hook:$3e.bind(null,e)})},"createTokenAuth2");var IU="7.0.6";var vae=o(()=>{},"noop"),J3e=console.warn.bind(console),Y3e=console.error.bind(console);function W3e(t={}){return typeof t.debug!="function"&&(t.debug=vae),typeof t.info!="function"&&(t.info=vae),typeof t.warn!="function"&&(t.warn=J3e),typeof t.error!="function"&&(t.error=Y3e),t}o(W3e,"createLogger");var _ae=`octokit-core.js/${IU} ${Xc()}`,fS=class{static{o(this,"Octokit")}static VERSION=IU;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new iae.Collection,n={baseUrl:oE.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${_ae}`:_ae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=oE.defaults(n),this.graphql=xae(this.request).defaults(n),this.log=W3e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=Tae(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var BU="17.0.0";var j3e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let f=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:A,message:p,file:g.path,startLine:f}),h=!0;break}h||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var el=class t{static{o(this,"Builder")}buildx;constructor(e){this.buildx=e?.buildx||new Ie}async exists(e){let r=await this.buildx.getCommand(["inspect",e]),n=await Y.getExecOutput(r.command,r.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Builder.exists cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Builder.exists error: ${s}`),!1));return B(`Builder.exists: ${n}`),n}async inspect(e){let r=Object.assign({},process.env,{DEBUG:"1"}),n=["inspect"];e&&n.push(e);let s=await this.buildx.getCommand(n);return await Y.getExecOutput(s.command,s.args,{ignoreReturnCode:!0,silent:!0,env:r}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return t.parseInspect(i.stdout)})}static parseInspect(e){let r={nodes:[]},n,s={},i,a,c;for(let l of e.trim().split(`
`)){let[u,...d]=l.split(":"),A=u.toLowerCase(),p=d.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case A=="name":n=void 0,r.name==null?r.name=p:(i&&s.gcPolicy&&(s.gcPolicy.push(i),i=void 0),s.name&&r.nodes.push(s),s={name:p});break;case A=="driver":n=void 0,r.driver=p;break;case A=="last activity":n=void 0,r.lastActivity=new Date(p);break;case A=="endpoint":n=void 0,s.endpoint=p;break;case A=="driver options":n=void 0,s["driver-opts"]=(p.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":n=void 0,s.status=p;break;case A=="buildkit daemon flags":case A=="flags":n=void 0,s["buildkitd-flags"]=p;break;case A=="buildkit version":case A=="buildkit":n=void 0,s.buildkit=p;break;case A=="platforms":{if(n=void 0,!p)break;let f=[];if(p.includes("*"))for(let h of p.split(", "))h.includes("*")&&f.push(h.replace(/\*/g,""));else f=p.split(", ");s.platforms=f.join(",");break}case A=="features":n="features",s.features={};break;case A=="labels":n="label",s.labels={};break;case A=="devices":n="devices",s.devices=s.devices||[];break;case A.startsWith("gc policy rule#"):n="gcpolicy",s.gcPolicy&&i&&(s.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):n="file",c=u.split("#")[1],s.files=s.files||{},s.files[c]="";break;default:switch(n&&n!=="devices"&&s.devices&&a&&(s.devices.push(a),a=void 0),n||""){case"features":{s.features=s.features||{},s.features[u.trim()]=!!p;break}case"label":{s.labels=s.labels||{},s.labels[u.trim()]=p;break}case"devices":{switch(A.trim()){case"name":{s.devices&&a&&s.devices.push(a),a={},a.name=p;break}case"on-demand":{a&&p&&(a.onDemand=p=="true");break}case"automatically allowed":{a&&p&&(a.autoAllow=p=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=p)}break}case"gcpolicy":{switch(s.gcPolicy=s.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=p=="true";break}case"filters":{p&&(i.filter=p.split(","));break}case"keep duration":{i.keepDuration=p;break}case"keep bytes":{i.keepBytes=p;break}case"reserved space":{i.reservedSpace=p;break}case"max used space":{i.maxUsedSpace=p;break}case"min free space":{i.minFreeSpace=p;break}}break}case"file":{c&&s.files&&(s.files[c].length>0&&(s.files[c]+=`
`),s.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&s.devices&&s.devices.push(a),i&&s.gcPolicy&&s.gcPolicy.push(i),s.name&&r.nodes.push(s),r}};var ju=w(require("fs"),1),PU=w(require("path"),1);var yS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ie,this.iidFilename=`build-iidfile-${Oe.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${Oe.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},s=Object.entries(n).filter(([f])=>!r.has(f)),i=Oe.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||ln.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&Oe.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Xe.serverURL}/${ln.repo.owner}/${ln.repo.repo}.git`,l=e?.checksum||n.checksum,u=e?.subdir||n.subdir,d=e?.format;if(!d){if(d="fragment",s.length>0)d="query";else if(Oe.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=ln.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof ln.payload.pull_request?.head?.sha=="string"?ln.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],h=i?p:l;h&&f.push(`checksum=${h}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of s)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return PU.default.join(De.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(ju.default.existsSync(e))return ju.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return PU.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!ju.default.existsSync(e))return;let r=ju.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,s]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!ju.default.existsSync(s))throw new Error(`secret file ${s} not found`);return[n,s]}let i=De.tmpName({tmpdir:De.tmpDir()});return ju.default.writeFileSync(i,s),[n,i]}static getProvenanceInput(e){let r=Pr(e);if(!r)return r;try{return Zl(e)?`builder-id=${Xe.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Xe.workflowRunURL(!0)}`;let r=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Xe.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",s="",i="",a=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?n=l[1]:l[0]==="repository"?s=l[1]:l[0]==="ghtoken"&&(i=l[1])}return n==="gha"&&(s||(e=`${e},repository=${Xe.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let n=ms(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n){if(s.length==1&&!s[0].startsWith("type="))return e=="local";for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=ms(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let s of n)for(let[i,a]of s.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=ms(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let s of r)for(let i of s)try{let a=Oe.parseBool(i);n.push(`disabled=${!a}`)}catch{n.push(i)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),s=e.substring(0,n),i=e.substring(n+1);if(s.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&Yi(i),[s,i]}};var kU=w(require("fs"),1),zae=w(require("path"),1);var CS=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ie,this.metadataFilename=`bake-metadata-${Oe.generateRandomString()}.json`}getMetadataFilePath(){return zae.default.join(De.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!kU.default.existsSync(e))return;let r=kU.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],s,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Oe.isValidRef(l)){i.push(l);continue}if(s)throw new Error("Only one remote bake definition can be defined");s=l}}s&&n.push(s);for(let l of i)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Y.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${Ie.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let s=r.target[n];s.attest&&Array.isArray(s.attest)&&(s.attest=s.attest.map(i=>t.parseAttestEntry(i))),s["cache-from"]&&Array.isArray(s["cache-from"])&&(s["cache-from"]=s["cache-from"].map(i=>t.parseCacheEntry(i))),s["cache-to"]&&Array.isArray(s["cache-to"])&&(s["cache-to"]=s["cache-to"].map(i=>t.parseCacheEntry(i))),s.output&&Array.isArray(s.output)&&(s.output=s.output.map(i=>t.parseExportEntry(i))),s.secret&&Array.isArray(s.secret)&&(s.secret=s.secret.map(i=>t.parseSecretEntry(i))),s.ssh&&Array.isArray(s.ssh)&&(s.ssh=s.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=Oe.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let s of n){let[i,a]=s.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=ms(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],s="";for(let i of n){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":s=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return s==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,s]=e.split("=",2);return r.id=n,s&&(r.paths=s.split(",")),r}s Line truncated
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);B(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let s=n.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let i=s[1].trim();if(i.startsWith("tag: "))return await t.findDetachedTagRef(i,r,e);if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let c=i.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=i.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await Y.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let s=await t.exec(["tag","--contains","HEAD"],e),[i]=s.split(`
`).map(a=>a.trim()).filter(a=>a.length>0);return i?`refs/tags/${i}`:""}static async findDetachedTagRef(e,r,n){let i=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],n)).split(`
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of i){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(i.length===1)return i[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[s]=n.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);return s}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var ade=require("crypto"),Ko=w(require("fs"),1),Xo=w(require("path"),1);var Sf=w(GU(),1),cde=w(nq(),1),Nf=w(rde(),1);var sde=require("util");var oG=w(GU(),1);var ide=w(Ti(),1);var nde="application/vnd.oci.empty.v1+json";var Ln=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Y.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(B(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(B(`Cosign.isAvailable error: ${r}`),!1));return B(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Y.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Y.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,sde.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let s=r[n].trim();if(s)return s}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return B("Cosign.versionSatisfies false: undefined version"),!1;let s=ide.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return B(`Cosign.versionSatisfies ${n} statisfies ${e}: ${s}`),s}static parseCommandOutput(e){let r,n,s,i;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===oG.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===nde&&typeof u.digest=="string"&&(n=u.digest)}if(!s&&l&&l.mediaType===oG.BUNDLE_V03_MEDIA_TYPE&&(s=l),s&&(r||n)){i=void 0;break}}return{bundle:s,signatureManifestDigest:r||n,errors:i}}};var aG=w(require("fs"),1);var ZN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Ie}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let s=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===s.os&&l.platform?.architecture===s.architecture&&(l.platform?.variant??"")===(s.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=De.tmpName({tmpdir:De.tmpDir(),template:"imagetools-metadata-XXXXXX"}),s=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&s.push(l);continue}i.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of s)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await Y.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!aG.default.existsSync(n))return;let l=aG.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(A=>A.trim()):[]}:void 0}})}async inspect(e,r,n){let s=await this.getInspectCommand([e.nam Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Y.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr.trim());return n(JSON.parse(s.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var wf="https://search.sigstore.dev";var ode="slsaprovenance1",ml=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Ln,this.imageTools=e?.imageTools||new ZN}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await nt(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...s];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await Y.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Ln.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(h=>`- [${h.code}] ${h.message} : ${h.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${p}`)}else throw new Error(`Cosign sign command failed with: ${h.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,bS.bundleFromJSON)(d.bundle));f.tlogID&&J(`Uploaded to Rekor transparency log: ${qA}?logIndex=${f.tlogID}`),J(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...f,imageName:o}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[i,n]of Object.entries(e))await rd(`Verifying signature of ${i}`,async()=>{let o=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!n.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});J(`Signature manifest verified: https://oci.dag.dev/?image=${n.imageName}@${o.signatureManifestDigest}`),s[i]=o});return s}async verifyImageAttestations(e,r){let s={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let n=e.split(":",1)[0];for(let o of i){let a=`${n}@${o}`,c=await this.verifyImageAttestation(a,r);J(`Signature manifest verified: https://oci.dag.dev/?image=${n}@${c.signatureManifestDigest}`),s[a]=c}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){J(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let o=await Re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(o.exitCode!==0)throw new Error(`Cosign verify command failed with: ${o.stderr.trim().split(/\r?\n/).filter(c=>c.length>0).pop()??"unknown error"}`);let a=Bh.parseCommandOutput(o.stderr.trim());return{cosignArgs:s,signatureManifestDigest:a.signatureManifestDigest}}let i=r.retryLimit??15,n;J(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let o=0;o<i;o++){let a=await Re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),c=Bh.parseCommandOutput(a.stderr.trim());if(a.exitCode===0)return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest};if(c.errors&&c.errors.length>0){let l=c.errors.map(u=>`- [${u.code}] ${u.message} : ${u.detail}`).join(`
`);if(n=new Error(`Cosign verify command failed with errors:
${l}`),c.errors.some(u=>u.code==="MANIFEST_UNKNOWN"))J(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${o+1}/${i}...
${l}`),await new Promise(u=>setTimeout(u,Math.pow(2,o)*100));else throw n}else throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(l=>l.length>0).pop()??"unknown error"}`)}throw n}async signProvenanceBlobs(e){let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let s=this.signingEndpoints(e.noTransparencyLog);J(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let i=t.getProvenanceBlobs(e);for(let n of Object.keys(i))await rd(`Signing ${n}`,async()=>{let o=i[n],a=pf.default.join(pf.default.dirname(n),`${e.name??"provenance"}.sigstore.json`),c=t.getProvenanceSubjects(o);if(c.length===0){Do(`No subjects found in provenance ${n}, skip signing.`);return}let l=await t.signPayload({data:o,type:FPe},s),u=t.parseBundle(l);J("Provenance blob signed for:");for(let h of c){let[d,f]=Object.entries(h.digest)[0]||[];J(` - ${h.name} (${d}:${f})`)}u.tlogID&&J(`Attestation signature uploaded to Rekor transparency log: ${qA}?logIndex=${u.tlogID}`),J(`Writing Sigstore bundle to: ${a}`),$l.default.writeFileSync(a,JSON.stringify(u.payload,null,2),{encoding:"utf-8"}),r[n]={...u,bundlePath:a,subjects:c}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,n]of Object.entries(e)){let o=pf.default.dirname(i);await rd(`Verifying signature bundle ${n.bundlePath}`,async()=>{for(let a of n.subjects){let c=pf.default.join(o,a.name);J(`Verifying signed artifact ${c}`);let l=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??bDt];(r.noTransparencyLog||!n.tlogID)&&l.push("--use-signed-timestamps","--insecure-ignore-tlog");let u=await Re.getExecOutput(this.cosign.binPath,[...l,"--bundle",n.bundlePath,c],{ignoreReturnCode:!0});if(u.stderr.length>0&&u.exitCode!=0)throw new Error(u.stderr);s[c]={bundlePath:n.bundlePath,cosignArgs:l}}})}return s}async verifyArtifact(e,r,s){J("Verifying keyless verification bundle signature");let i=JSON.parse($l.default.readFileSync(r,"utf-8")),n=(0,bS.bundleFromJSON)(i);J("Fetching Sigstore TUF trusted root metadata");let o=await zPe.getTrustedRoot(),a=(0,JE.toTrustMaterial)(o);try{J("Verifying artifact signature");let c=(0,JE.toSignedEntity)(n,$l.default.readFileSync(e)),l=t.parseCertificate(n),u=n.verificationMaterial.tlogEntries,h=u.length>0?u[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let p=l.subjectAltName?.replace(/^uri:/i,"");if(p){if(!p.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${p}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new JE.Verifier(a).verify(c,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return V(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:i,certificate:l.toString(),tlogID:h}}catch(c){throw new Error(`Failed to verify artifact signature: ${c}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),J(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:UPe,rekorURL:e?void 0:qPe,tsaServerURL:GPe}}static noTransparencyLog(e){return e??kt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=pf.default.join(e.localExportDir,"provenance.json");if($l.default.existsSync(r))return{[r]:$l.default.readFileSync(r)};let s=$l.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=s.filter(n=>n.isDirectory());if(i.length>0&&i.length===s.length&&i.every(n=>$l.default.existsSync(pf.default.join(e.localExportDir,n.name,"provenance.json")))){let n={};for(let o of i){let a=pf.default.join(e.localExportDir,o.name,"provenance.json");n[a]=$l.default.readFileSync(a)}return n}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(s=>({name:s.name,digest:s.digest}))}static async signPayload(e,r,s,i){let n=[],o=new jl.FulcioSigner({identityProvider:new jl.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:s,retry:i});return r.rekorURL&&n.push(new jl.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:s,retry:i})),r.tsaServerURL&&n.push(new jl.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:s,retry:i})),new jl.DSSEBundleBuilder({signer:o,witnesses:n}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,i=s.length>0?s[0].logIndex:void 0;return{payload:(0,bS.bundleToJSON)(e),certificate:r.toString(),tlogID:i}} Line truncated
${f}`)}else throw new Error(`Cosign sign command failed with: ${Ln.getErrorMessage(d.stderr)}`);let p=t.parseBundle((0,Sf.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,n),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[s,i]of Object.entries(e))await nt(`Verifying signature of ${s}`,async()=>{let a=await this.verifyImageAttestation(s,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),n[s]=a});return n}async verifyImageAttestations(e,r){let n={},s=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(s.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of s){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Ln.getErrorMessage(a.stderr)}`);let c=Ln.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let s=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<s;a++){let c=await Y.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Ln.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${s}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${Ln.getErrorMessage(c.stderr)}`)}throw i}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},s=await this.cosignSigningConfigArgs(n),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await nt(`Signing ${a}`,async()=>{let c=i[a],l=Xo.default.join(Xo.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Je(`No subjects found in provenance ${a}, skip signing.`);return}let d=Xo.default.join(Xo.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",ode,"--bundle",l,...s];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await Y.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Ln.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let g=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${Ln.getErrorMessage(p.stderr)}`);let h=t.parseBundle((0,Sf.bundleFromJSON)(JSON.parse(Ko.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let g of u){let[y,E]=Object.entries(g.digest)[0]||[];S(` - ${g.name} (${y}:${E})`)}h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),S(`Sigstore bundle written to: ${l}`),r[a]={...h,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[s,i]of Object.entries(e)){let a=Xo.default.dirname(s);await nt(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Xo.default.join(a,c.name);S(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??ode];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await Y.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let s=JSON.parse(Ko.default.readFileSync(r,"utf-8")),i=(0,Sf.bundleFromJSON)(s);S("Fetching Sigstore TUF trusted root metadata");let a=await cde.getTrustedRoot({retry:{retries:5}}),c=(0,Nf.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,Nf.toSignedEntity)(i,Ko.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0,f=new Nf.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:s,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Xe.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let s=await this.useRekorV2(e);await nt("Creating Sigstore protobuf signing config",async()=>{let i=De.tmpName({template:"signing-config-XXXXXX.json",tmpdir:De.tmpDir()}),a=["signing-config","create",s?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];n&&a.push("--no-default-rekor=true"),await Y.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Ko.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${wf}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=Xo.default.join(e.localExportDir,"provenance.json");if(Ko.default.existsSync(r))return{[r]:Ko.default.readFileSync(r)};let n=Ko.default.readdirSync(e.localExportDir,{withFileTypes:!0}),s=n.filter(i=>i.isDirectory());if(s.length>0&&s.length===n.length&&s.every(i=>Ko.default.existsSync(Xo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of s){let c=Xo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Ko.default.readFileSync(c)}return i}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,s=n.length>0?n[0].logIndex:void 0;return{payload:(0,Sf.bundleToJSON)(e),certificate:r.toString(),tlogID:s}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new ade.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var ex=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken= Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -253,7 +219,7 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var LD=class t{githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Ct,this.sigstore=e?.sigstore||new Af}async download(e){let r=await t.getDownloadVersion(e.version);V(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);V(`Install.download release tag name: ${s.tag_name}`);let i=await this.vspec(s.tag_name);V(`Install.download vspec: ${i}`);let n=XE.clean(i)||"";if(!XE.valid(n))throw new Error(`Invalid Cosign version "${i}".`);let o=new Cs({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:KE.default.join(cc.default.homedir(),".bin"),cacheFile:cc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),a=await o.find();if(a)return J(`Cosign binary found in ${a}`),a;let c=nK.format(r.downloadURL,i,this.filename());J(`Downloading ${c}`);let l=await Fo(c,void 0,this.githubToken);V(`Install.download htcDownloadPath: ${l}`),e.verifySignature&&XE.satisfies(i,">=3.0.1")&&await this.verifySignature(l,c);let u=await o.save(l,e.skipState);return J(`Cached to ${u}`),u}async build(e,r,s){let i=await this.vspec(e);V(`Install.build vspec: ${i}`);let n=new Cs({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:KE.default.join(cc.default.homedir(),".bin"),cacheFile:cc.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),o=await n.find();if(o)return J(`Cosign binary found in ${o}`),o;let a=KE.default.join(bt.tmpDir(),"cosign-build-cache"),c=await this.buildCommand(e,a),l=await Re.getExecOutput(c.command,c.args,{ignoreReturnCode:!0,input:Buffer.from($Pe)}).then(h=>{if(h.stderr.length>0&&h.exitCode!=0)throw new Error(`build failed with: ${h.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${a}/cosign`}),u=await n.save(l,s);return J(`Cached to ${u}`),u}async install(e,r){r=r||bt.tmpDir();let s=KE.default.join(r,"cosign-bin");wS.default.existsSync(s)||wS.default.mkdirSync(s,{recursive:!0});let i=cc.default.platform()=="win32"?"cosign.exe":"cosign",n=KE.default.join(s,i);return wS.default.copyFileSync(e,n),J("Fixing perms"),wS.default.chmodSync(n,"0755"),xc(s),J("Added Cosign to PATH"),J(`Binary path: ${n}`),n}async buildCommand(e,r){let s=await new Ct({standalone:!0}).isAvailable(),i=await new Ct({standalone:!1}).isAvailable(),n=!1;if(await this.buildx.isStandalone()&&s)V("Install.buildCommand: Buildx standalone found, build with it"),n=!0;else if(!await this.buildx.isStandalone()&&i)V("Install.buildCommand: Buildx plugin found, build with it"),n=!1;else if(s)V("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),n=!0;else if(i)V("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),n=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let o=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&o.push("--secret","id=GIT_AUTH_TOKEN"),o.push("-f-",e),await new Ct({standalone:n}).getCommand(o)}async verifySignature(e,r){let s=`${r}.sigstore.json`;J(`Downloading keyless verification bundle at ${s}`);let i=await Fo(s,void 0,this.githubToken);V(`Install.verifySignature bundlePath: ${i}`);let n=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});J(`Cosign binary signature verified! ${n.tlogID?`${qA}?logIndex=${n.tlogID}`:""}`)}filename(){let e;switch(cc.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=cc.default.arch();break}}let r=cc.default.platform()=="win32"?"windows":cc.default.platform(),s=cc.default.platform()=="win32"?".exe":"";return nK.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!wt.isValidRef(e)){let l=e.replace(/^v+|v+$/g,"");return J(`Use ${l} version spec cache key for ${e}`),l}let[r,s]=e.split("#");s.length==0&&(s="master");let i;s.match(/^[0-9a-fA-F]{40}$/)?i=s:i=await gy.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[n,o]=r.substring(19).split("/"),a=`${n}/${wt.trimSuffix(o,".git")}/${i}`,c=wt.hash(a);return J(`Use ${c} version spec cache key for ${a}`),c}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new kt({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var jPe=O(Ka(),1);var FD=class{binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Re.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCod Line truncated
`;var ax=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Ie,this.sigstore=e?.sigstore||new ml}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let s=await this.vspec(n.tag_name);B(`Install.download vspec: ${s}`);let i=Tf.clean(s)||"";if(!Tf.valid(i))throw new Error(`Invalid Cosign version "${s}".`);let a=new Er({htcName:"cosign-dl-bin",htcVersion:s,baseCacheDir:Rf.default.join(ki.default.homedir(),".bin"),cacheFile:ki.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=uG.format(r.downloadURL,s,this.filename());S(`Downloading ${l}`);let u=await Qs(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Tf.satisfies(s,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,n){let s=await this.vspec(e);B(`Install.build vspec: ${s}`);let i=new Er({htcName:"cosign-build-bin",htcVersion:s,baseCacheDir:Rf.default.join(ki.default.homedir(),".bin"),cacheFile:ki.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=Rf.default.join(De.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await Y.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(ude)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${Ie.getErrorMessage(A.stderr)}`);return`${c}/cosign`}),d=await i.save(u,n);return S(`Cached to ${d}`),d}async install(e,r){r=r||De.tmpDir();let n=Rf.default.join(r,"cosign-bin");kE.default.existsSync(n)||kE.default.mkdirSync(n,{recursive:!0});let s=ki.default.platform()=="win32"?"cosign.exe":"cosign",i=Rf.default.join(n,s);return kE.default.copyFileSync(e,i),S("Fixing perms"),kE.default.chmodSync(i,"0755"),ji(n),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let n=await new Ie({standalone:!0}).isAvailable(),s=await new Ie({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(n)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(s)B("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new Ie({standalone:i}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let s=await Qs(n,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${s}`);let i=await this.sigstore.verifyArtifact(e,s,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${wf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ki.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ki.default.arch();break}}let r=ki.default.platform()=="win32"?"windows":ki.default.platform(),n=ki.default.platform()=="win32"?".exe":"";return uG.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Oe.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let s;n.match(/^[0-9a-fA-F]{40}$/)?s=n:s=await $p.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${Oe.trimSuffix(a,".git")}/${s}`,l=Oe.hash(c);return S(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let s=await new Xe({token:r}).releases("Cosign",e.contentOpts);if(!s[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return s[e.version]}};var dde=w(Ti(),1);var cx=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Y.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr. Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -271,46 +237,8 @@ tmp/lib/tmp.js:
* MIT Licensed
*)
negotiator/index.js:
(*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
imurmurhash/imurmurhash.js:
(**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*)
make-fetch-happen/lib/fetch.js:
make-fetch-happen/lib/fetch.js:
(**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*)
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
(*! js-yaml 5.4.2 https://github.com/nodeca/js-yaml @license MIT *)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ioBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAAULine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+21 -738
View File
@@ -3,12 +3,10 @@ https://www.npmjs.com/package/generate-license-file
The following npm packages may be included in this product:
- @sigstore/bundle@4.0.0
- @sigstore/core@3.1.0
- @sigstore/core@3.2.0
- @sigstore/bundle@5.0.0
- @sigstore/core@4.0.1
- @sigstore/protobuf-specs@0.5.0
- @sigstore/sign@4.1.1
- @sigstore/tuf@4.0.2
- @sigstore/tuf@5.0.0
These packages each contain the following license:
@@ -218,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.90.0
- @docker/actions-toolkit@0.100.0
This package contains the following license:
@@ -1792,11 +1790,12 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- js-yaml@4.1.1
- js-yaml@5.4.1
- js-yaml@5.4.2
This package contains the following license:
These packages each contain the following license:
(The MIT License)
@@ -1822,46 +1821,11 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- negotiator@1.0.0
This package contains the following license:
(The MIT License)
Copyright (c) 2012-2014 Federico Romero
Copyright (c) 2012-2014 Isaac Z. Schlueter
Copyright (c) 2014-2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
- agent-base@7.1.1
- agent-base@7.1.4
- https-proxy-agent@7.0.4
- https-proxy-agent@7.0.6
- socks-proxy-agent@8.0.3
These packages each contain the following license:
@@ -2063,10 +2027,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
The following npm packages may be included in this product:
- jackspeak@2.3.6
- lru-cache@11.2.6
- minipass@7.1.3
- path-scurry@1.11.1
- path-scurry@2.0.2
These packages each contain the following license:
@@ -2130,7 +2091,7 @@ software or this license, under any kind of legal claim.***
The following npm package may be included in this product:
- minimatch@10.2.4
- minimatch@10.2.5
This package contains the following license:
@@ -2238,35 +2199,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
- @npmcli/fs@5.0.0
This package contains the following license:
<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
ISC License
Copyright npm, Inc.
Permission to use, copy, modify, and/or distribute this
software for any purpose with or without fee is hereby
granted, provided that the above copyright notice and this
permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- argparse@2.0.1
@@ -2562,78 +2494,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- glob@13.0.6
This package contains the following license:
All packages under `src/` are licensed according to the terms in
their respective `LICENSE` or `LICENSE.md` files.
The remainder of this project is licensed under the Blue Oak
Model License, as follows:
-----
# Blue Oak Model License
Version 1.0.0
## Purpose
This license gives everyone as much permission to work with
this software as possible, while protecting contributors
from liability.
## Acceptance
In order to receive this license, you must agree to its
rules. The rules of this license are both obligations
under that agreement and conditions to your license.
You must not do anything with this software that triggers
a rule that you cannot or will not follow.
## Copyright
Each contributor licenses you to do everything with this
software that would otherwise infringe that contributor's
copyright in it.
## Notices
You must ensure that everyone who gets a copy of
any part of this software from you, with or without
changes, also gets the text of this license or a link to
<https://blueoakcouncil.org/license/1.0.0>.
## Excuse
If anyone notifies you in writing that you have not
complied with [Notices](#notices), you can keep your
license by taking all practical steps to comply within 30
days after the notice. If you do not do so, your license
ends immediately.
## Patent
Each contributor licenses you to do everything with this
software that would otherwise infringe any patent claims
they can license or become able to license.
## Reliability
No contributor can revoke this license.
## No Liability
***As far as the law allows, this software comes as is,
without any warranty or condition, and no contributor
will be liable to anyone for any damages related to this
software or this license, under any kind of legal claim.***
-----------
The following npm package may be included in this product:
- typescript@3.9.10
@@ -2700,7 +2560,7 @@ END OF TERMS AND CONDITIONS
The following npm package may be included in this product:
- @sigstore/verify@3.1.0
- @sigstore/verify@4.1.2
This package contains the following license:
@@ -2708,39 +2568,6 @@ Apache-2.0
-----------
The following npm package may be included in this product:
- sprintf-js@1.1.3
This package contains the following license:
Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of this software nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------
The following npm package may be included in this product:
- async@3.2.5
@@ -2769,63 +2596,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- iconv-lite@0.7.2
This package contains the following license:
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- ip-address@9.0.5
This package contains the following license:
Copyright (C) 2011 by Beau Gunderson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.3
@@ -3037,34 +2807,6 @@ OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.2
This package contains the following license:
Copyright (c) 2014 IndigoUnited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- archiver-utils@5.0.2
@@ -3171,12 +2913,14 @@ The following npm packages may be included in this product:
- @azure/core-client@1.10.1
- @azure/core-http-compat@2.3.2
- @azure/core-rest-pipeline@1.22.2
- @azure/core-rest-pipeline@1.23.0
- @azure/core-tracing@1.3.1
- @azure/core-util@1.13.1
- @azure/core-xml@1.5.0
- @azure/logger@1.3.0
- @azure/storage-blob@12.31.0
- @typespec/ts-http-runtime@0.3.3
- @typespec/ts-http-runtime@0.3.5
These packages each contain the following license:
@@ -3309,24 +3053,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- http-cache-semantics@4.1.1
This package contains the following license:
Copyright 2016-2018 Kornel Lesiński
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------
The following npm packages may be included in this product:
- emoji-regex@8.0.0
@@ -3386,20 +3112,6 @@ IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- unique-filename@5.0.0
This package contains the following license:
Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- lodash@4.18.1
@@ -3456,183 +3168,12 @@ terms above.
-----------
The following npm package may be included in this product:
- @npmcli/agent@4.0.0
This package contains the following license:
ISC
-----------
The following npm package may be included in this product:
- cacache@20.0.3
This package contains the following license:
ISC License
Copyright (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm packages may be included in this product:
- make-fetch-happen@15.0.4
- make-fetch-happen@15.0.5
These packages each contain the following license:
ISC License
Copyright 2017-2022 (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- ssri@13.0.1
This package contains the following license:
ISC License
Copyright 2021 (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- jsbn@1.1.0
This package contains the following license:
Licensing
---------
This software is covered under the following copyright:
/*
* Copyright (c) 2003-2005 Tom Wu
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
*
* IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
* THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* In addition, the following condition applies:
*
* All redistributions must retain an intact copy of this copyright notice
* and disclaimer.
*/
Address all questions regarding this license to:
Tom Wu
tjw@cs.Stanford.EDU
-----------
The following npm package may be included in this product:
- minizlib@3.1.0
This package contains the following license:
Minizlib was created by Isaac Z. Schlueter.
It is a derivative work of the Node.js project.
"""
Copyright (c) 2017-2023 Isaac Z. Schlueter and Contributors
Copyright (c) 2017-2023 Node.js contributors. All rights reserved.
Copyright (c) 2017-2023 Joyent, Inc. and other Node contributors. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
-----------
The following npm packages may be included in this product:
- @nodable/entities@2.1.0
- binary@0.3.0
- browserify-zlib@0.1.4
- eastasianwidth@0.2.0
- imurmurhash@0.1.4
- is-gzip@1.0.0
- isarray@1.0.0
- xml-naming@0.1.0
@@ -3676,7 +3217,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm packages may be included in this product:
- brace-expansion@1.1.13
- brace-expansion@1.1.18
- brace-expansion@2.0.1
These packages each contain the following license:
@@ -3826,36 +3367,6 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- safer-buffer@2.1.2
This package contains the following license:
MIT License
Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- @octokit/plugin-retry@8.1.0
@@ -3919,8 +3430,8 @@ SOFTWARE.
The following npm packages may be included in this product:
- @tufjs/canonical-json@2.0.0
- @tufjs/models@4.1.0
- tuf-js@4.1.0
- @tufjs/models@5.0.0
- tuf-js@6.0.0
These packages each contain the following license:
@@ -4041,36 +3552,6 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- @npmcli/redact@4.0.0
This package contains the following license:
MIT License
Copyright (c) 2024 npm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- fast-xml-builder@1.2.0
@@ -4121,7 +3602,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm package may be included in this product:
- undici@6.25.0
- undici@6.28.0
This package contains the following license:
@@ -4154,7 +3635,6 @@ The following npm packages may be included in this product:
- ansi-regex@6.0.1
- ansi-styles@6.2.1
- is-stream@2.0.1
- p-map@7.0.4
- string-width@5.1.2
- strip-ansi@7.1.0
- wrap-ansi@7.0.0
@@ -4535,30 +4015,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass@3.3.6
This package contains the following license:
The ISC License
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass@7.1.0
@@ -4583,54 +4039,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass-collect@2.0.1
This package contains the following license:
The ISC License
Copyright (c) 2019-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- proc-log@6.1.0
This package contains the following license:
The ISC License
Copyright (c) GitHub, Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- inherits@2.0.4
@@ -4657,20 +4065,14 @@ PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- fs-minipass@3.0.3
- isexe@2.0.0
- lru-cache@6.0.0
- minimatch@3.1.5
- minipass-flush@1.0.5
- minipass-pipeline@1.2.4
- minipass-sized@2.0.0
- once@1.4.0
- semver@7.5.4
- semver@7.7.3
- semver@7.8.1
- semver@7.8.5
- which@2.0.2
- wrappy@1.0.2
- yallist@4.0.0
These packages each contain the following license:
@@ -4692,30 +4094,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- unique-slug@6.0.0
This package contains the following license:
The ISC License
Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- buffer-crc32@1.0.0
@@ -4810,7 +4188,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@6.2.1
- csv-parse@7.0.2
This package contains the following license:
@@ -4868,64 +4246,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- socks@2.8.3
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2013 Josh Glazebrook
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- smart-buffer@4.2.0
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2013-2017 Josh Glazebrook
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- base64-js@1.5.1
@@ -4958,7 +4278,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- tmp@0.2.5
- tmp@0.2.7
This package contains the following license:
@@ -4994,7 +4314,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.0
- tar-stream@3.2.1
These packages each contain the following license:
@@ -5510,47 +4830,10 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass-fetch@5.0.2
This package contains the following license:
The MIT License (MIT)
Copyright (c) Isaac Z. Schlueter and Contributors
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---
Note: This is a derivative work based on "node-fetch" by David Frank,
modified and distributed under the terms of the MIT license above.
https://github.com/bitinn/node-fetch
-----------
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.0.0
- @actions/cache@6.2.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
+5 -5
View File
@@ -4,7 +4,7 @@
"type": "module",
"main": "src/main.ts",
"scripts": {
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify && yarn run license",
"build": "esbuild src/main.ts --bundle --platform=node --target=node24 --format=cjs --outfile=dist/index.cjs --sourcemap --minify --keep-names && yarn run license",
"lint": "eslint --max-warnings=0 .",
"format": "eslint --fix .",
"test": "vitest run",
@@ -21,11 +21,11 @@
],
"author": "Docker Inc.",
"license": "Apache-2.0",
"packageManager": "yarn@4.9.2",
"packageManager": "yarn@4.15.0",
"dependencies": {
"@actions/core": "^3.0.0",
"@docker/actions-toolkit": "^0.90.0",
"js-yaml": "^4.1.1"
"@actions/core": "^3.0.1",
"@docker/actions-toolkit": "^0.100.0",
"js-yaml": "^5.4.2"
},
"devDependencies": {
"@eslint/js": "^9.39.3",
+3 -14
View File
@@ -52,6 +52,9 @@ export async function getBuilderName(name: string, driver: string): Promise<stri
export async function getCreateArgs(inputs: Inputs, toolkit: Toolkit): Promise<Array<string>> {
const args: Array<string> = ['create', '--name', inputs.name, '--driver', inputs.driver];
if (inputs.driver === 'cloud' && !inputs.version.startsWith('cloud:') && !inputs.version.startsWith('lab:') && !(await toolkit.buildx.versionSatisfies('>=0.37.0-0'))) {
throw new Error(`Docker Build Cloud with official Buildx requires Buildx v0.37.0 or later. Set version to cloud:<version> or lab:<version> to use the legacy Docker Build Cloud release channel.`);
}
if (await toolkit.buildx.versionSatisfies('>=0.3.0')) {
await Util.asyncForEach(inputs.driverOpts, async (driverOpt: string) => {
args.push('--driver-opt', driverOpt);
@@ -116,17 +119,3 @@ export async function getInspectArgs(inputs: Inputs, toolkit: Toolkit): Promise<
function driverSupportsBuildkitdFlags(driver: string): boolean {
return driver == '' || driver == 'docker-container' || driver == 'docker' || driver == 'kubernetes';
}
export function getVersion(inputs: Inputs): string {
const version = inputs.version;
if (inputs.driver === 'cloud') {
if (!version || version === 'latest') {
return 'cloud:latest';
}
if (version.startsWith('cloud:') || version.startsWith('lab:')) {
return version;
}
return `cloud:${version}`;
}
return version;
}
+58 -25
View File
@@ -22,7 +22,6 @@ actionsToolkit.run(
async () => {
const inputs: context.Inputs = await context.getInputs();
stateHelper.setCleanup(inputs.cleanup);
const version = context.getVersion(inputs);
const toolkit = new Toolkit();
const standalone = await toolkit.buildx.isStandalone();
@@ -44,17 +43,17 @@ actionsToolkit.run(
});
let toolPath;
if (Util.isValidRef(version)) {
if (Util.isValidRef(inputs.version)) {
if (standalone) {
throw new Error(`Cannot build from source without the Docker CLI`);
}
await core.group(`Build buildx from source`, async () => {
toolPath = await toolkit.buildxInstall.build(version, !inputs.cacheBinary);
toolPath = await toolkit.buildxInstall.build(inputs.version, !inputs.cacheBinary);
});
} else if (!(await toolkit.buildx.isAvailable()) || version) {
} else if (!(await toolkit.buildx.isAvailable()) || inputs.version || (inputs.driver === 'cloud' && !inputs.version && !(await toolkit.buildx.versionSatisfies('>=0.37.0-0')))) {
await core.group(`Download buildx from GitHub Releases`, async () => {
toolPath = await toolkit.buildxInstall.download({
version: version || 'latest',
version: inputs.version || 'latest',
ghaNoCache: !inputs.cacheBinary
});
});
@@ -91,8 +90,8 @@ actionsToolkit.run(
ignoreReturnCode: true,
silent: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
core.info(`Cannot inspect default docker context: ${res.stderr.trim()}`);
if (res.exitCode != 0) {
core.info(`Cannot inspect default docker context: ${Docker.getErrorMessage(res.stderr)}`);
} else {
try {
const contextInfo = (<Array<ContextInfo>>JSON.parse(res.stdout.trim()))[0];
@@ -113,8 +112,8 @@ actionsToolkit.run(
await Docker.getExecOutput(['context', 'create', tmpDockerContext], {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
core.warning(`Cannot create docker context ${tmpDockerContext}: ${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`);
if (res.exitCode != 0) {
core.warning(`Cannot create docker context ${tmpDockerContext}: ${Docker.getErrorMessage(res.stderr)}`);
} else {
core.info(`Setting builder endpoint to ${tmpDockerContext} context`);
inputs.endpoint = tmpDockerContext;
@@ -125,9 +124,35 @@ actionsToolkit.run(
}
}
let builderExists = false;
if (inputs.driver !== 'docker') {
builderExists = await toolkit.builder.exists(inputs.name);
}
const appendNodes = inputs.append ? (yaml.load(inputs.append) as Node[]) : [];
if (!standalone && inputs.driver == 'docker-container') {
const buildkitImages = new Set<string>();
if (!builderExists && !inputs.endpoint) {
buildkitImages.add(resolveBuildKitImage(inputs.driverOpts));
}
for (const node of appendNodes) {
if (!node.endpoint) {
buildkitImages.add(resolveBuildKitImage(node['driver-opts']));
}
}
if (buildkitImages.size > 0) {
await core.group(`Pulling BuildKit image(s)`, async () => {
for (const image of buildkitImages) {
await Docker.pull(image);
}
});
}
}
if (inputs.driver !== 'docker') {
await core.group(`Creating a new builder instance`, async () => {
if (await toolkit.builder.exists(inputs.name)) {
if (builderExists) {
core.info(`Builder ${inputs.name} already exists, skipping creation`);
} else {
const certsDriverOpts = Buildx.resolveCertsDriverOpts(inputs.driver, inputs.endpoint, {
@@ -142,19 +167,18 @@ actionsToolkit.run(
await Exec.getExecOutput(createCmd.command, createCmd.args, {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error');
if (res.exitCode != 0) {
throw new Error(`Failed to create builder ${inputs.name}: ${Buildx.getErrorMessage(res.stderr)}`);
}
});
}
});
}
if (inputs.append) {
if (appendNodes.length > 0) {
await core.group(`Appending node(s) to builder`, async () => {
let nodeIndex = 1;
const nodes = yaml.load(inputs.append) as Node[];
for (const node of nodes) {
for (const node of appendNodes) {
const certsDriverOpts = Buildx.resolveCertsDriverOpts(inputs.driver, `${node.endpoint}`, {
cacert: process.env[`${context.builderNodeEnvPrefix}_${nodeIndex}_AUTH_TLS_CACERT`],
cert: process.env[`${context.builderNodeEnvPrefix}_${nodeIndex}_AUTH_TLS_CERT`],
@@ -167,8 +191,8 @@ actionsToolkit.run(
await Exec.getExecOutput(appendCmd.command, appendCmd.args, {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(`Failed to append node ${node.name}: ${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`);
if (res.exitCode != 0) {
throw new Error(`Failed to append node ${node.name}: ${Buildx.getErrorMessage(res.stderr)}`);
}
});
nodeIndex++;
@@ -181,8 +205,8 @@ actionsToolkit.run(
await Exec.getExecOutput(inspectCmd.command, inspectCmd.args, {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error');
if (res.exitCode != 0) {
throw new Error(`Failed to boot builder: ${Buildx.getErrorMessage(res.stderr)}`);
}
});
});
@@ -226,8 +250,8 @@ actionsToolkit.run(
await Docker.getExecOutput(['logs', `${stateHelper.containerName}`], {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
core.warning(res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error');
if (res.exitCode != 0) {
core.warning(`Failed to display BuildKit logs: ${Docker.getErrorMessage(res.stderr)}`);
}
});
});
@@ -246,8 +270,8 @@ actionsToolkit.run(
await Exec.getExecOutput(rmCmd.command, rmCmd.args, {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
core.warning(res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error');
if (res.exitCode != 0) {
core.warning(`Failed to remove builder ${stateHelper.builderName}: ${Buildx.getErrorMessage(res.stderr)}`);
}
});
} else {
@@ -261,8 +285,8 @@ actionsToolkit.run(
await Exec.getExecOutput('docker', ['context', 'rm', '-f', stateHelper.tmpDockerContext], {
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
core.warning(`${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`);
if (res.exitCode != 0) {
core.warning(`Failed to remove temp docker context ${stateHelper.tmpDockerContext}: ${Docker.getErrorMessage(res.stderr)}`);
}
});
});
@@ -275,3 +299,12 @@ actionsToolkit.run(
}
}
);
function resolveBuildKitImage(driverOpts: string[] = []): string {
return (
driverOpts
.find(driverOpt => driverOpt.trim().startsWith('image='))
?.trim()
.substring('image='.length) || 'moby/buildkit:buildx-stable-1'
);
}
+348 -255
View File
File diff suppressed because it is too large. Load diff